You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by es...@apache.org on 2012/08/08 19:16:47 UTC
svn commit: r1370844 [2/3] - in
/incubator/openmeetings/trunk/plugins/sugarcrm: ./ dist/ dist/openmeetings/
dist/openmeetings/SugarModules/ dist/openmeetings/SugarModules/language/
dist/openmeetings/SugarModules/language/application/ dist/openmeetings/...
Added: incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/dashletviewdefs.php
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/dashletviewdefs.php?rev=1370844&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/dashletviewdefs.php (added)
+++ incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/dashletviewdefs.php Wed Aug 8 17:16:44 2012
@@ -0,0 +1,44 @@
+<?php
+if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
+/*********************************************************************************
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License") + you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+* ********************************************************************************/
+
+
+
+
+global $current_user;
+
+$dashletData['openmeetingsDashlet']['searchFields'] = array('date_entered' => array('default' => ''),
+ 'date_modified' => array('default' => ''),
+ 'assigned_user_id' => array('type' => 'assigned_user_name',
+ 'default' => $current_user->name));
+$dashletData['openmeetingsDashlet']['columns'] = array( 'name' => array('width' => '40',
+ 'label' => 'LBL_LIST_NAME',
+ 'link' => true,
+ 'default' => true),
+ 'date_entered' => array('width' => '15',
+ 'label' => 'LBL_DATE_ENTERED',
+ 'default' => true),
+ 'date_modified' => array('width' => '15',
+ 'label' => 'LBL_DATE_MODIFIED'),
+ 'created_by' => array('width' => '8',
+ 'label' => 'LBL_CREATED'),
+ 'assigned_user_name' => array('width' => '8',
+ 'label' => 'LBL_LIST_ASSIGNED_USER'),
+ );
\ No newline at end of file
Added: incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/detailviewdefs.php
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/detailviewdefs.php?rev=1370844&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/detailviewdefs.php (added)
+++ incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/detailviewdefs.php Wed Aug 8 17:16:44 2012
@@ -0,0 +1,77 @@
+<?php
+/*********************************************************************************
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License") + you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+* ********************************************************************************/
+
+$module_name = 'openmeetings';
+$viewdefs [$module_name] =
+array (
+ 'DetailView' =>
+ array (
+ 'templateMeta' =>
+ array (
+ 'form' =>
+ array (
+ 'buttons' =>
+ array (
+ 0 => 'EDIT',
+ 1 => 'DUPLICATE',
+ 2 => 'DELETE',
+ 3 => 'FIND_DUPLICATES',
+ ),
+ ),
+ 'maxColumns' => '2',
+ 'widths' =>
+ array (
+ 0 =>
+ array (
+ 'label' => '10',
+ 'field' => '30',
+ ),
+ 1 =>
+ array (
+ 'label' => '10',
+ 'field' => '30',
+ ),
+ ),
+ 'useTabs' => false,
+ 'syncDetailEditViews' => true,
+ ),
+ 'panels' =>
+ array (
+ 'default' =>
+ array (
+ 0 =>
+ array (
+ 0 => 'name',
+ 1 => 'assigned_user_name',
+ ),
+ 1 =>
+ array (
+ 0 => 'description',
+ 1 =>
+ array (
+ 'name' => 'room_link',
+ 'label' => 'LBL_ROOM_LINK',
+ ),
+ ),
+ ),
+ ),
+ ),
+);
+?>
Added: incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/editviewdefs.php
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/editviewdefs.php?rev=1370844&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/editviewdefs.php (added)
+++ incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/editviewdefs.php Wed Aug 8 17:16:44 2012
@@ -0,0 +1,113 @@
+<?php
+/*********************************************************************************
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License") + you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+* ********************************************************************************/
+
+$module_name = 'openmeetings';
+$viewdefs [$module_name] =
+array (
+ 'EditView' =>
+ array (
+ 'templateMeta' =>
+ array (
+ 'maxColumns' => '2',
+ 'widths' =>
+ array (
+ 0 =>
+ array (
+ 'label' => '10',
+ 'field' => '30',
+ ),
+ 1 =>
+ array (
+ 'label' => '10',
+ 'field' => '30',
+ ),
+ ),
+ 'useTabs' => false,
+ 'syncDetailEditViews' => false,
+ ),
+ 'panels' =>
+ array (
+ 'default' =>
+ array (
+ 0 =>
+ array (
+ 0 => 'name',
+ 1 => 'assigned_user_name',
+ ),
+ 1 =>
+ array (
+ 0 =>
+ array (
+ 'name' => 'number_of_partizipants',
+ 'studio' => 'visible',
+ 'label' => 'LBL_NUMBER_OF_PARTIZIPANTS',
+ ),
+ 1 =>
+ array (
+ 'name' => 'room_type_id',
+ 'studio' => 'visible',
+ 'label' => 'LBL_ROOM_TYPE_ID',
+ ),
+ ),
+ 2 =>
+ array (
+ 0 =>
+ array (
+ 'name' => 'is_public',
+ 'label' => 'LBL_IS_PUBLIC',
+ ),
+ 1 =>
+ array (
+ 'name' => 'is_moderated_room',
+ 'label' => 'LBL_IS_MODERATED_ROOM',
+ ),
+ ),
+ 3 =>
+ array (
+ 0 =>
+ array (
+ 'name' => 'allow_user_questions',
+ 'label' => 'LBL_ALLOW_USER_QUESTIONS',
+ ),
+ 1 =>
+ array (
+ 'name' => 'is_audio_only',
+ 'label' => 'LBL_IS_AUDIO_ONLY',
+ ),
+ ),
+ 4 =>
+ array (
+ 0 =>
+ array (
+ 'name' => 'allow_recording',
+ 'label' => 'LBL_ALLOW_RECORDING',
+ ),
+ 1 => '',
+ ),
+ 5 =>
+ array (
+ 0 => 'description',
+ 1 => '',
+ ),
+ ),
+ ),
+ ),
+);
+?>
Added: incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/listviewdefs.php
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/listviewdefs.php?rev=1370844&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/listviewdefs.php (added)
+++ incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/listviewdefs.php Wed Aug 8 17:16:44 2012
@@ -0,0 +1,40 @@
+<?php
+if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
+/*********************************************************************************
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License") + you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+* ********************************************************************************/
+
+
+
+
+$module_name = 'openmeetings';
+$listViewDefs[$module_name] = array(
+ 'NAME' => array(
+ 'width' => '32',
+ 'label' => 'LBL_NAME',
+ 'default' => true,
+ 'link' => true),
+ 'ASSIGNED_USER_NAME' => array(
+ 'width' => '9',
+ 'label' => 'LBL_ASSIGNED_TO_NAME',
+ 'module' => 'Employees',
+ 'id' => 'ASSIGNED_USER_ID',
+ 'default' => true),
+
+);
+?>
Added: incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/metafiles.php
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/metafiles.php?rev=1370844&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/metafiles.php (added)
+++ incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/metafiles.php Wed Aug 8 17:16:44 2012
@@ -0,0 +1,36 @@
+<?php
+/*********************************************************************************
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License") + you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+* ********************************************************************************/
+
+/*
+ * Created on August 2 2007
+ *
+ * To change the template for this generated file go to
+ * Window - Preferences - PHPeclipse - PHP - Code Templates
+ */
+$module_name = 'openmeetings';
+ $metafiles[$module_name] = array(
+ 'detailviewdefs' => 'modules/' . $module_name . '/metadata/detailviewdefs.php',
+ 'editviewdefs' => 'modules/' . $module_name . '/metadata/editviewdefs.php',
+ 'listviewdefs' => 'modules/' . $module_name . '/metadata/listviewdefs.php',
+ 'searchdefs' => 'modules/' . $module_name . '/metadata/searchdefs.php',
+ 'popupdefs' => 'modules/' . $module_name . '/metadata/popupdefs.php',
+ 'searchfields' => 'modules/' . $module_name . '/metadata/SearchFields.php',
+ );
+?>
Added: incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/popupdefs.php
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/popupdefs.php?rev=1370844&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/popupdefs.php (added)
+++ incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/popupdefs.php Wed Aug 8 17:16:44 2012
@@ -0,0 +1,36 @@
+<?php
+if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
+/*********************************************************************************
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License") + you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+* ********************************************************************************/
+
+$module_name = 'openmeetings';
+$object_name = 'openmeetings';
+$_module_name = 'openmeetings';
+$popupMeta = array('moduleMain' => $module_name,
+ 'varName' => $object_name,
+ 'orderBy' => $_module_name.'.name',
+ 'whereClauses' =>
+ array('name' => $_module_name . '.name',
+ ),
+ 'searchInputs'=> array($_module_name. '_number', 'name', 'priority','status'),
+
+ );
+?>
+
+
\ No newline at end of file
Added: incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/quickcreatedefs.php
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/quickcreatedefs.php?rev=1370844&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/quickcreatedefs.php (added)
+++ incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/quickcreatedefs.php Wed Aug 8 17:16:44 2012
@@ -0,0 +1,44 @@
+<?php
+/*********************************************************************************
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License") + you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+* ********************************************************************************/
+
+$module_name = 'openmeetings';
+$viewdefs[$module_name]['QuickCreate'] = array(
+ 'templateMeta' => array('maxColumns' => '2',
+ 'widths' => array(
+ array('label' => '10', 'field' => '30'),
+ array('label' => '10', 'field' => '30')
+ ),
+ ),
+
+
+ 'panels' =>array (
+ 'default' =>
+ array (
+
+ array (
+ 'name',
+ 'assigned_user_name',
+ ),
+ ),
+
+),
+
+);
+?>
\ No newline at end of file
Added: incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/searchdefs.php
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/searchdefs.php?rev=1370844&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/searchdefs.php (added)
+++ incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/searchdefs.php Wed Aug 8 17:16:44 2012
@@ -0,0 +1,45 @@
+<?php
+/*********************************************************************************
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License") + you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+* ********************************************************************************/
+
+/*
+ * Created on May 29, 2007
+ *
+ * To change the template for this generated file go to
+ * Window - Preferences - PHPeclipse - PHP - Code Templates
+ */
+$module_name = 'openmeetings';
+ $searchdefs[$module_name] = array(
+ 'templateMeta' => array(
+ 'maxColumns' => '3',
+ 'maxColumnsBasic' => '4',
+ 'widths' => array('label' => '10', 'field' => '30'),
+ ),
+ 'layout' => array(
+ 'basic_search' => array(
+ 'name',
+ array('name'=>'current_user_only', 'label'=>'LBL_CURRENT_USER_FILTER', 'type'=>'bool'),
+ ),
+ 'advanced_search' => array(
+ 'name',
+ array('name' => 'assigned_user_id', 'label' => 'LBL_ASSIGNED_TO', 'type' => 'enum', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
+ ),
+ ),
+ );
+?>
Added: incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/studio.php
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/studio.php?rev=1370844&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/studio.php (added)
+++ incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/studio.php Wed Aug 8 17:16:44 2012
@@ -0,0 +1,25 @@
+<?php
+/*********************************************************************************
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License") + you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+* ********************************************************************************/
+
+/**
+ * This file adds support for studio
+ */
+
+?>
\ No newline at end of file
Added: incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/subpanels/default.php
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/subpanels/default.php?rev=1370844&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/subpanels/default.php (added)
+++ incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/metadata/subpanels/default.php Wed Aug 8 17:16:44 2012
@@ -0,0 +1,55 @@
+<?php
+if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
+/*********************************************************************************
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License") + you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+* ********************************************************************************/
+
+
+$module_name='openmeetings';
+$subpanel_layout = array(
+ 'top_buttons' => array(
+ array('widget_class' => 'SubPanelTopCreateButton'),
+ array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => $module_name),
+ ),
+
+ 'where' => '',
+
+ 'list_fields' => array(
+ 'name'=>array(
+ 'vname' => 'LBL_NAME',
+ 'widget_class' => 'SubPanelDetailViewLink',
+ 'width' => '45%',
+ ),
+ 'date_modified'=>array(
+ 'vname' => 'LBL_DATE_MODIFIED',
+ 'width' => '45%',
+ ),
+ 'edit_button'=>array(
+ 'widget_class' => 'SubPanelEditButton',
+ 'module' => $module_name,
+ 'width' => '4%',
+ ),
+ 'remove_button'=>array(
+ 'widget_class' => 'SubPanelRemoveButton',
+ 'module' => $module_name,
+ 'width' => '5%',
+ ),
+ ),
+);
+
+?>
\ No newline at end of file
Added: incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings.php
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings.php?rev=1370844&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings.php (added)
+++ incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings.php Wed Aug 8 17:16:44 2012
@@ -0,0 +1,32 @@
+<?PHP
+/*********************************************************************************
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License") + you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+* ********************************************************************************/
+
+/**
+ * THIS CLASS IS FOR DEVELOPERS TO MAKE CUSTOMIZATIONS IN
+ */
+require_once('modules/openmeetings/openmeetings_sugar.php');
+class openmeetings extends openmeetings_sugar {
+
+ function openmeetings(){
+ parent::openmeetings_sugar();
+ }
+
+}
+?>
\ No newline at end of file
Added: incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings_gateway/lib/openmeetings_rest_service.php
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings_gateway/lib/openmeetings_rest_service.php?rev=1370844&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings_gateway/lib/openmeetings_rest_service.php (added)
+++ incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings_gateway/lib/openmeetings_rest_service.php Wed Aug 8 17:16:44 2012
@@ -0,0 +1,117 @@
+<?php
+/*********************************************************************************
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License") + you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+* ********************************************************************************/
+
+/*
+ * Created on 03.01.2012 by eugen.schwert@gmail.com
+ *
+ *
+ */
+
+class openmeetings_rest_service {
+
+ function call($request){
+ // This will allow you to view errors in the browser
+ // Note: set "display_errors" to 0 in production
+ //ini_set('display_errors',1);
+
+ // Report all PHP errors (notices, errors, warnings, etc.)
+ //error_reporting(E_ALL);
+
+ // URI used for making REST call. Each Web Service uses a unique URL.
+ //$request
+
+ // Initialize the session by passing the request as a parameter
+ $session = curl_init($request);
+
+
+ // Set curl options by passing session and flags
+ // CURLOPT_HEADER allows us to receive the HTTP header
+ curl_setopt($session, CURLOPT_HEADER, true);
+
+ // CURLOPT_RETURNTRANSFER will return the response
+ curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
+
+ // Make the request
+ $response = curl_exec($session);
+
+ // Close the curl session
+ curl_close($session);
+
+ // Confirm that the request was transmitted to the OpenMeetings! Image Search Service
+ if(!$response) {
+ die("Request OpenMeetings! OpenMeetings Service failed and no response was returned.");
+ }
+
+ // Create an array to store the HTTP response codes
+ $status_code = array();
+
+ // Use regular expressions to extract the code from the header
+ preg_match('/\d\d\d/', $response, $status_code);
+
+ // Check the HTTP Response code and display message if status code is not 200 (OK)
+ switch( $status_code[0] ) {
+ case 200:
+ // Success
+ break;
+ case 503:
+ die('Your call to OpenMeetings Web Services failed and returned an HTTP status of 503.
+ That means: Service unavailable. An internal problem prevented us from returning'.
+ ' data to you.');
+ break;
+ case 403:
+ die('Your call to OpenMeetings Web Services failed and returned an HTTP status of 403.
+ That means: Forbidden. You do not have permission to access this resource, or are over'.
+ ' your rate limit.');
+ break;
+ case 400:
+ // You may want to fall through here and read the specific XML error
+ die('Your call to OpenMeetings Web Services failed and returned an HTTP status of 400.
+ That means: Bad request. The parameters passed to the service did not match as expected.
+ The exact error is returned in the XML response.');
+ break;
+ default:
+ die('Your call to OpenMeetings Web Services returned an unexpected HTTP status of: ' . $status_code[0]);
+ }
+
+ // Get the XML from the response, bypassing the header
+ if (!($xml = strstr($response, '<ns'))) {
+ $xml = null;
+ }
+
+ // Create a SimpleXML object with XML response
+ $simple_xml = simplexml_load_string($xml, "SimpleXMLElement", 0,"http://services.axis.openmeetings.org", true);
+
+ return $simple_xml;
+ }
+
+
+
+ function getError(){
+
+
+ }
+
+ function fault(){
+
+
+ }
+}
+
+?>
\ No newline at end of file
Added: incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings_gateway/openmeetingsRoomManagament.php
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings_gateway/openmeetingsRoomManagament.php?rev=1370844&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings_gateway/openmeetingsRoomManagament.php (added)
+++ incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings_gateway/openmeetingsRoomManagament.php Wed Aug 8 17:16:44 2012
@@ -0,0 +1,494 @@
+<?php
+/*********************************************************************************
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License") + you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+* ********************************************************************************/
+
+if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
+
+require_once("openmeetings_gateway.php");
+
+global $current_user;
+global $system_config;
+
+
+class openmeetingsRoomManagament {
+
+
+ function displayAdminError($errorString){
+ $output = '<p class="error">' . $errorString .'</p>';
+ return $output;
+ }
+
+ function getRoomHash(&$focus, $event) {
+
+ global $current_user;
+ $becomemoderator = 1;
+
+ $openmeetings_gateway = new openmeetings_gateway();
+
+
+ if ($openmeetings_gateway->openmeetings_loginuser()) {
+
+ $roomid = $openmeetings_gateway->openmeetings_createroomwithmod($test);
+
+ $roomhash = $openmeetings_gateway->openmeetings_setUserObjectAndGenerateRoomHash($current_user->user_name,$current_user->first_name,
+ $current_user->last_name,$current_user->picture,$current_user->email1,/*$current_user->id,*/100 ,"openmeetings", $focus->openmeetings_roomid_c, 1, 1);
+ echo "room id: $roomid";
+ echo "room hash: $roomhash ";
+
+ }
+ }
+
+ function createRoomWithMod(&$focus, $event) {
+ global $sugar_config;
+
+
+ //if ($focus->openmeetings_roomname_c == "" && $focus->is_openmeetings_c == true){
+
+ $openmeetings_gateway = new openmeetings_gateway();
+ if ($openmeetings_gateway->openmeetings_loginuser()) {
+
+ $openmeetings->name = "SUGARCRM_MEETINGROOM_".$focus->id;
+ $openmeetings->roomtypes_id = 1;
+ $openmeetings->comment = 'Created by SOAP-Gateway for SUGARCM Platform';
+ $openmeetings->numberOfPartizipants = 100;
+ $openmeetings->ispublic = false;
+ $openmeetings->appointment = false;
+ $openmeetings->isDemoRoom = false;
+ $openmeetings->demoTime = 0;
+ $openmeetings->isModeratedRoom = true;
+
+ $roomid = $openmeetings_gateway->openmeetings_createroomwithmod($openmeetings);
+ $focus->room_id = $roomid;
+
+ //$focus->openmeetings_roomname_c = "";
+ //$focus->openmeetings_roomname_c = $sugar_config[site_url]."/index.php?module=Openmeetings&action=room_entrance&roomid=".$focus->openmeetings_roomid_c;
+
+ $focus->room_link = $sugar_config[site_url]."/index.php?module=openmeetings&action=room_entrance&roomid=".$focus->room_id;
+
+ } else {
+ echo "Could not login User to OpenMeetings, check your OpenMeetings Module Configuration";
+ //$this->displayAdminError("Errorr");
+ /*
+ echo "<pre>";
+ print_r($focus);
+ echo "</pre>";
+ exit();
+ */
+ exit();
+ //$focus->room_link = "Could not login User to OpenMeetings, check your OpenMeetings Module Configuration";
+ //$focus->room_link = $this->displayAdminError(translate('LBL_ERORR_LOGIN', 'openmeetings'));
+
+ }
+ //}
+ }
+
+
+ function addUpdateRoomWithModerationExternalTypeAndTopBarOption(&$focus, $event) {
+ global $sugar_config;
+ if(isset($focus->room_id)){
+
+ $openmeetings_gateway = new openmeetings_gateway();
+ if ($openmeetings_gateway->openmeetings_loginuser()) {
+
+ $openmeetings = '';
+
+
+ $openmeetings->room_id = $focus->room_id;
+ $openmeetings->name = $focus->name;
+ $openmeetings->roomtypes_id = $focus->room_type_id;
+ $openmeetings->comment = $focus->description;
+ $openmeetings->numberOfPartizipants = $focus->number_of_partizipants;
+ $openmeetings->ispublic = $focus->is_public;
+ $openmeetings->appointment = 0;
+ $openmeetings->isDemoRoom = 0;
+ $openmeetings->demoTime = "";
+ $openmeetings->isModeratedRoom = $focus->is_moderated_room;
+ $openmeetings->allowUserQuestions = $focus->allow_user_questions;
+
+ //future options not implemented in openmeetings_gateway
+ $openmeetings->isAudioOnly = $focus->is_audio_only;
+ $openmeetings->allowRecording = $focus->allow_recording;
+ $openmeetings->waitForRecording = false;
+ $openmeetings->hideTopBar = true;
+ $openmeetings->externalRoomType = 'SugarCRM';
+
+ $roomid = $openmeetings_gateway->updateRoomWithModerationAndQuestions($openmeetings);
+
+ //$focus->room_link = $sugar_config[site_url]."/index.php?module=openmeetings&action=room_entrance&roomid=".$focus->room_id;
+
+ return $roomid;
+ } else {
+ echo "Could not login User to OpenMeetings, check your OpenMeetings Module Configuration";
+ }
+
+ }else{
+
+ $openmeetings_gateway = new openmeetings_gateway();
+ if ($openmeetings_gateway->openmeetings_loginuser()) {
+ //global $sugar_config;
+ $openmeetings = '';
+
+ $openmeetings->name = $focus->name;
+ $openmeetings->roomtypes_id = $focus->room_type_id;
+ $openmeetings->comment = $focus->description;
+ $openmeetings->numberOfPartizipants = $focus->number_of_partizipants;
+ $openmeetings->ispublic = $focus->is_public;
+ $openmeetings->appointment = 0;
+ $openmeetings->isDemoRoom = 0;
+ $openmeetings->demoTime = "";
+ $openmeetings->isModeratedRoom = $focus->is_moderated_room;
+
+ $openmeetings->allowUserQuestions = $focus->allow_user_questions;
+ $openmeetings->isAudioOnly = $focus->is_audio_only;
+ $openmeetings->allowRecording = $focus->allow_recording;
+
+ //future options
+ $openmeetings->waitForRecording = false;
+ $openmeetings->hideTopBar = true;
+ $openmeetings->externalRoomType = 'SugarCRM';
+
+ $room_id = $openmeetings_gateway->openmeetings_addRoomWithModerationExternalTypeAndTopBarOption($openmeetings);
+
+ $focus->room_id = $room_id;
+ $focus->room_link = $sugar_config[site_url]."/index.php?module=openmeetings&action=room_entrance&roomid=".$room_id;
+
+ return $room_id;
+
+
+ } else {
+ echo "Could not login User to OpenMeetings, check your OpenMeetings Module Configuration";
+ }
+ }
+ }
+
+/*
+ function createMyRoomWithMod(&$focus, $event) {
+ global $sugar_config;
+
+
+
+ if ($sugar_config->openmeetings_username == "" & $focus->openmeetings_my_roomid_c == ""){
+
+ $openmeetings_gateway = new openmeetings_gateway();
+ if ($openmeetings_gateway->openmeetings_loginuser()) {
+
+ $roomid = $openmeetings_gateway->openmeetings_createroomwithmod($test);
+ //$focus->openmeetings_roomid_c = $roomid;
+
+ //$focus->openmeetings_roomname_c = "";
+ //$focus->openmeetings_my_room_c = $sugar_config[site_url]."/index.php?module=Openmeetings&action=room_entrance&roomid=".$roomid;
+
+ $focus->openmeetings_my_roomid_c = $roomid;
+ $focus->save(false);
+
+ } else {
+ echo "Could not login User to OpenMeetings, check your OpenMeetings Module Configuration";
+ exit();
+ }
+ }
+ }
+
+*/
+
+ function createMyRoomWithMod() {
+ global $sugar_config;
+ global $current_user;
+
+ $openmeetings_gateway = new openmeetings_gateway();
+ if ($openmeetings_gateway->openmeetings_loginuser()) {
+
+ /* 'name' => 'SUGARCM_ROOM',
+ 'roomtypes_id' => 1,
+ 'comment' => 'Created by SOAP-Gateway for SUGARCM Platform',
+ 'numberOfPartizipants' => 100,
+ 'ispublic' => false,
+ 'appointment' => false,
+ 'isDemoRoom' => false,
+ 'demoTime' => 0,
+ 'isModeratedRoom' => $isModeratedRoom
+ */
+
+ $openmeetings->name = "SUGARCRM_MY_ROOM_".$current_user->id;
+ $openmeetings->roomtypes_id = 1;
+ $openmeetings->comment = 'Created by SOAP-Gateway for SUGARCM Platform';
+ $openmeetings->numberOfPartizipants = 100;
+ $openmeetings->ispublic = false;
+ $openmeetings->appointment = false;
+ $openmeetings->isDemoRoom = false;
+ $openmeetings->demoTime = 0;
+ $openmeetings->isModeratedRoom = true;
+
+ $roomid = $openmeetings_gateway->openmeetings_createroomwithmod($openmeetings);
+
+ return $roomid;
+
+ } else {
+ echo "Could not login User to OpenMeetings, check your OpenMeetings Module Configuration";
+ //exit();
+ }
+ }
+
+
+ function getInvitationHash(&$focus, $event) {
+
+
+ //echo "<pre>";
+ //print_r($_POST);
+ //echo $_REQUEST['send_invites'];
+ //print_r($focus);
+ //print_r($focus->conf_op0b58nigs_ida);
+ //print_r($focus->openmeetings_meetings->beans[$focus->conf_op0b58nigs_ida]->room_link);
+ //exit;
+
+ //echo "</pre>";
+
+ global $sugar_config;
+ global $system_config;
+ global $timedate;
+ global $current_user;
+
+
+ $dateStart = $focus->date_start;
+ $timeFromat = $timedate->get_date_time_format();
+ $toTimeFormat = $timedate->get_db_date_time_format();
+
+
+ $date_start_in_db_fmt = DateTime::createFromFormat($toTimeFormat, $dateStart);
+ $date_start_in_db_fmt_str= $date_start_in_db_fmt->format($toTimeFormat);
+
+ $startDateString = $date_start_in_db_fmt->format('d.m.Y'); //dd.mm.yyyy
+ $startTimeString = $date_start_in_db_fmt->format('H:i');
+
+
+ $date_start_timestamp= strtotime($date_start_in_db_fmt_str);
+ $date_end_timestamp = $date_start_timestamp + (( $focus->duration_hours * 3600 )+ ($focus->duration_minutes * 60));
+
+ $endDateString = date("d.m.Y", $date_end_timestamp); //dd.mm.yyyy
+ $endTimeString = date("H:i", $date_end_timestamp);
+
+/*
+echo '<pre>';
+
+echo "startDateString ".$startDateString;
+echo "\n";
+
+echo "startTimeString ".$startTimeString;
+echo "\n";
+echo "endDateString ". $endDateString;
+echo "\n";
+echo "endTimeString ". $endTimeString;
+echo "\n";
+exit();
+
+echo '</pre>';
+*/
+ //!empty($focus->conf_op0b58nigs_ida
+ if (!empty($focus->conf_op0b58nigs_ida) && isset($_REQUEST['send_invites']) && $_REQUEST['send_invites'] == 1){
+
+ //work in sugar 2.3
+ //$room_id = $focus->openmeetings_meetings->beans[$focus->conf_op0b58nigs_ida]->room_id;
+
+ $sql = "select room_id from openmeetings where id = '" . $focus->conf_op0b58nigs_ida ."'";
+
+ $result = $focus->db->query($sql, true);
+ $row = $focus->db->fetchByAssoc($result);
+ $room_id = $row['room_id'];
+
+ //$_POST['send_invites'] = 0;
+ $_REQUEST['send_invites'] = '0';
+
+ $openmeetings_gateway = new openmeetings_gateway();
+ if ($openmeetings_gateway->openmeetings_loginuser()) {
+
+ $admin = new Administration();
+ $admin->retrieveSettings();
+
+ global $changeNotify;
+ $changeNotify = false;
+ if($admin->settings['notify_on']) {
+ $changeNotify = true;
+ $admin->saveSetting('notify','on', 0);
+ }
+ //$notify_user = $focus->get_notification_recipients();
+
+ $descriptionTemp = $focus->description;
+
+ foreach($focus->users_arr as $user_id) {
+ $notify_user = new User();
+ $notify_user->retrieve($user_id);
+ $notify_user->new_assigned_user_name = $notify_user->full_name;
+ $GLOBALS['log']->info("Notifications: recipient is $notify_user->new_assigned_user_name");
+
+ $invitation_hash = $openmeetings_gateway->getInvitationHash($notify_user->name, $room_id, false, "123", 2, $startDateString, $startTimeString, $endDateString, $endTimeString);
+
+ $notify_user->online_meeting_url_temp = "http://".$system_config->settings[info_openmeetings_url].":".
+ $system_config->settings[info_openmeetings_http_port].
+ "/openmeetings/?" .
+ "invitationHash=" .$invitation_hash;
+
+
+ //$admin = new Administration();
+ //$admin->retrieveSettings();
+
+ $focus->description = $descriptionTemp;
+ $tempInvitationHash = "";
+ $tempInvitationHash = translate('LBL_EMAIL_TEXT', 'openmeetings')." ". $notify_user->online_meeting_url_temp;
+ $focus->description = $focus->description." ".$tempInvitationHash;
+
+ $focus->send_assignment_notifications($notify_user, $admin);
+ }
+
+
+ foreach($focus->contacts_arr as $contact_id) {
+ $notify_user = new Contact();
+ $notify_user->retrieve($contact_id);
+ $notify_user->new_assigned_user_name = $notify_user->name;
+ $GLOBALS['log']->info("Notifications: recipient is $notify_user->new_assigned_user_name");
+
+ $invitation_hash = $openmeetings_gateway->getInvitationHash($notify_user->name, $room_id, false, "123", 2, $startDateString, $startTimeString, $endDateString, $endTimeString);
+
+ $notify_user->online_meeting_url_temp = "http://".$system_config->settings[info_openmeetings_url].":".
+ $system_config->settings[info_openmeetings_http_port].
+ "/openmeetings/?" .
+ "invitationHash=" .$invitation_hash;
+
+
+ //$admin = new Administration();
+ //$admin->retrieveSettings();
+
+ $focus->description = $descriptionTemp;
+ $tempInvitationHash = "";
+ $tempInvitationHash = translate('LBL_EMAIL_TEXT', 'openmeetings')." ". $notify_user->online_meeting_url_temp;
+ $focus->description = $focus->description." ".$tempInvitationHash;
+
+ $focus->send_assignment_notifications($notify_user, $admin);
+ }
+
+ foreach($focus->leads_arr as $lead_id) {
+ $notify_user = new Lead();
+ $notify_user->retrieve($lead_id);
+ $notify_user->new_assigned_user_name = $notify_user->full_name;
+ $GLOBALS['log']->info("Notifications: recipient is $notify_user->new_assigned_user_name");
+
+ $invitation_hash = $openmeetings_gateway->getInvitationHash($notify_user->name, $room_id, false, "123", 2, $startDateString, $startTimeString, $endDateString, $endTimeString);
+
+ $notify_user->online_meeting_url_temp = "http://".$system_config->settings[info_openmeetings_url].":".
+ $system_config->settings[info_openmeetings_http_port].
+ "/openmeetings/?" .
+ "invitationHash=" .$invitation_hash;
+
+
+ //$admin = new Administration();
+ //$admin->retrieveSettings();
+
+ $focus->description = $descriptionTemp;
+ $tempInvitationHash = "";
+ $tempInvitationHash = translate('LBL_EMAIL_TEXT', 'openmeetings')." ". $notify_user->online_meeting_url_temp;
+ $focus->description = $focus->description." ".$tempInvitationHash;
+
+ $focus->send_assignment_notifications($notify_user, $admin);
+
+ }
+
+ $focus->description = $descriptionTemp;
+
+ //return;
+ //echo "send invites: ". $_REQUEST['send_invites'];
+ //exit();
+
+ } else {
+ echo "Could not login User to OpenMeetings, check your OpenMeetings Module Configuration";
+ //exit();
+ }
+ }
+ }
+
+
+
+
+function sendInvitationHash(&$focus, $event) {
+ global $sugar_config;
+ global $system_config;
+ global $current_user;
+
+
+ if ($focus->room_id){
+
+ $openmeetings_gateway = new openmeetings_gateway();
+ if ($openmeetings_gateway->openmeetings_loginuser()) {
+
+ foreach($focus->contacts_arr as $contact_id) {
+ $notify_user = new Contact();
+ $notify_user->retrieve($contact_id);
+
+ $result = $openmeetings_gateway->openmeetings_sendInvitationHash($current_user->name,
+ "message", "http://".$system_config->settings[info_openmeetings_url].":"
+ .$system_config->settings[info_openmeetings_http_port]."/openmeetings/",
+ $notify_user->email1, "Openmeeting Invetation: ".$focus->name,
+ $focus->openmeetings_roomid_c, "", false, "123", 1, "$focus->date_start",
+ "$focus->time_start", "$focus->date_end", "$focus->time_end",
+ $system_config->settings[info_openmeetings_language], true);
+
+
+ }
+
+
+ } else {
+ echo "Could not login User to OpenMeetings, check your OpenMeetings Module Configuration";
+ //exit();
+ }
+ }
+ }
+
+
+ function setNotification(&$focus, $event) {
+
+ global $changeNotify;
+ $admin = new Administration();
+ $admin->retrieveSettings();
+
+ if($changeNotify) {
+ $admin->saveSetting('notify','on', 1);
+ }
+ }
+
+
+ function deleteRoom (&$focus, $event){
+
+ $openmeetings_gateway = new openmeetings_gateway();
+ if ($openmeetings_gateway->openmeetings_loginuser()) {
+
+ $openmeetings = new stdClass;
+
+ $openmeetings->room_id = $focus->room_id;
+ $roomid = $openmeetings_gateway->deleteRoom($openmeetings);
+ return $roomid;
+
+ } else {
+ echo "Could not login User to OpenMeetings, check your OpenMeetings Module Configuration";
+
+ }
+
+
+ }
+
+}
+
+
+?>
Added: incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings_gateway/openmeetings_gateway.php
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings_gateway/openmeetings_gateway.php?rev=1370844&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings_gateway/openmeetings_gateway.php (added)
+++ incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings_gateway/openmeetings_gateway.php Wed Aug 8 17:16:44 2012
@@ -0,0 +1,562 @@
+<?php
+/*********************************************************************************
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License") + you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+* ********************************************************************************/
+if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
+
+require_once('lib/openmeetings_rest_service.php');
+
+
+class openmeetings_gateway {
+
+ var $session_id = "";
+
+ function var_to_str($in)
+ {
+ if(is_bool($in))
+ {
+ if($in)
+ return "true";
+ else
+ return "false";
+ }
+ else
+ return $in;
+ }
+
+
+ /**
+ * TODO: Get Error Service and show detailed Error Message
+ */
+
+ function openmeetings_loginuser() {
+ global $current_user;
+ global $system_config;
+
+ $restService = new openmeetings_rest_service();
+
+ $response = $restService->call("http://".$system_config->settings['info_openmeetings_url'].":".$system_config->settings['info_openmeetings_http_port']."/openmeetings/services/UserService/getSession");
+
+ // Confirm that the request was transmitted to the OpenMeetings!
+ if(!$response->asXML()) {
+ die("Request to OpenMeetings og! OpenMeetings Service failed and no response was returned.");
+ }
+
+ if ($restService->getError()) {
+ echo '<h2>Fault (Expect - The request contains an invalid SOAP body)</h2><pre>'; print_r($result); echo '</pre>';
+ } else {
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Error</h2><pre>' . $err . '</pre>';
+ } else {
+ //echo '<h2>Result</h2><pre>'; print_r($result); echo '</pre>';
+ $this->session_id = $sid = $response->children('ns', true)->return->children('ax24', true)->session_id;
+
+ $username = $system_config->settings['info_openmeetings_username'];
+ $userpass = $system_config->settings['info_openmeetings_password'];
+ $result = $restService->call("http://".$system_config->settings['info_openmeetings_url'].":".$system_config->settings['info_openmeetings_http_port']."/openmeetings/services/UserService/loginUser?SID=".$this->session_id."&username=".$username."&userpass=".$userpass);
+
+ if ($restService->getError()) {
+ echo '<h2>Fault (Expect - The request contains an invalid SOAP body)</h2><pre>'; print_r($result); echo '</pre>';
+ } else {
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Error</h2><pre>' . $err . '</pre>';
+ } else {
+ //echo '<h2>Result</h2><pre>'; print_r($result); echo '</pre>';
+ $returnValue = $result->children('ns', true)->return[0];
+ //print_r($result->children('ns', true)->return[0]);
+ //exit;
+ //echo '<h2>returnValue</h2><pre>'; printf($returnValue); echo '</pre>';
+ }
+ }
+ }
+ }
+ if ($returnValue>0){
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+
+ function openmeetings_createroomwithmod($openmeetings) {
+ global $current_user;
+ global $system_config;
+
+ $restService = new openmeetings_rest_service();
+ //echo $restService."<br/>";
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
+ echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>';
+ exit();
+ }
+
+ $result = $restService->call("http://".$system_config->settings['info_openmeetings_url'].
+ ":".$system_config->settings['info_openmeetings_http_port'].
+ "/openmeetings/services/RoomService/addRoomWithModerationQuestionsAndAudioType?" .
+ "SID=".$this->session_id.
+ "&name=".$openmeetings->name.
+ "&roomtypes_id=".$openmeetings->roomtypes_id.
+ "&comment=".$openmeetings->comment.
+ "&numberOfPartizipants=".$openmeetings->numberOfPartizipants.
+ "&ispublic=".$openmeetings->ispublic.
+ "&appointment=".$openmeetings->appointment.
+ "&isDemoRoom=".$openmeetings->isDemoRoom.
+ "&demoTime=".$openmeetings->demoTime.
+ "&isModeratedRoom=".$openmeetings->isModeratedRoom.
+ "&allowUserQuestions=true" .
+ "&isAudioOnly=false");
+
+ //$result = $client_roomService->call('addRoomWithModeration',$params);
+ if ($restService->fault) {
+ echo '<h2>Fault (Expect - The request contains an invalid SOAP body)</h2><pre>'; print_r($result); echo '</pre>';
+ } else {
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Error</h2><pre>' . $err . '</pre>';
+ } else {
+ //echo '<h2>Result</h2><pre>'; print_r($result["return"]); echo '</pre>';
+ return $result->children('ns', true)->return[0]; //$result["return"];
+ }
+ }
+ return -1;
+ }
+
+ function openmeetings_addRoomWithModerationExternalTypeAndTopBarOption($openmeetings) {
+ global $current_user;
+ global $system_config;
+
+ $restService = new openmeetings_rest_service();
+ //echo $client_roomService."<br/>";
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
+ echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>';
+ exit();
+ }
+
+ $result = $restService->call("http://".$system_config->settings['info_openmeetings_url'].
+ ":".$system_config->settings['info_openmeetings_http_port'].
+ "/openmeetings/services/RoomService/addRoomWithModerationExternalTypeAndTopBarOption?" .
+ "SID=".$this->session_id.
+ "&name=".urlencode($openmeetings->name).
+ "&roomtypes_id=".$openmeetings->roomtypes_id.
+ "&comment=".urlencode($openmeetings->comment).
+ "&numberOfPartizipants=".$openmeetings->numberOfPartizipants.
+ "&ispublic=".$this->var_to_str($openmeetings->ispublic).
+ "&appointment=".$this->var_to_str($openmeetings->appointment).
+ "&isDemoRoom=".$this->var_to_str($openmeetings->isDemoRoom).
+ "&demoTime=".$openmeetings->demoTime.
+ "&isModeratedRoom=".$this->var_to_str($openmeetings->isModeratedRoom).
+ "&externalRoomType=".$openmeetings->externalRoomType.
+ "&allowUserQuestions=" .$this->var_to_str($openmeetings->allowUserQuestions).
+ "&isAudioOnly=".$this->var_to_str($openmeetings->isAudioOnly).
+ "&waitForRecording=false".
+ "&allowRecording=".$this->var_to_str($openmeetings->allowRecording).
+ "&hideTopBar=false");
+
+
+ if ($restService->fault) {
+ echo '<h2>Fault (Expect - The request contains an invalid SOAP body)</h2><pre>'; print_r($result); echo '</pre>';
+ } else {
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Error</h2><pre>' . $err . '</pre>';
+ } else {
+ //echo '<h2>Result</h2><pre>'; print_r($result["return"]); echo '</pre>';
+ //return $result["return"];
+ return $result->children('ns', true)->return[0];
+ }
+ }
+ return -1;
+ }
+
+ function updateRoomWithModerationAndQuestions($openmeetings) {
+ global $current_user;
+ global $system_config;
+
+ $restService = new openmeetings_rest_service();
+ //echo $client_roomService."<br/>";
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
+ echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>';
+ exit();
+ }
+
+ $result = $restService->call("http://".$system_config->settings['info_openmeetings_url'].
+ ":".$system_config->settings['info_openmeetings_http_port'].
+ "/openmeetings/services/RoomService/updateRoomWithModerationAndQuestions?" .
+ "SID=".$this->session_id.
+ "&room_id=".$openmeetings->room_id.
+ "&name=".urlencode($openmeetings->name).
+ "&roomtypes_id=".$openmeetings->roomtypes_id.
+ "&comment=".urlencode($openmeetings->comment).
+ "&numberOfPartizipants=".$openmeetings->numberOfPartizipants.
+ "&ispublic=".$this->var_to_str($openmeetings->ispublic).
+ "&appointment=".$this->var_to_str($openmeetings->appointment).
+ "&isDemoRoom=".$this->var_to_str($openmeetings->isDemoRoom).
+ "&demoTime=".$openmeetings->demoTime.
+ "&isModeratedRoom=".$this->var_to_str($openmeetings->isModeratedRoom).
+ "&allowUserQuestions=".$this->var_to_str($openmeetings->allowUserQuestions));
+
+ if ($restService->fault) {
+ echo '<h2>Fault (Expect - The request contains an invalid SOAP body)</h2><pre>'; print_r($result); echo '</pre>';
+ //print_r($params);
+ //exit();
+ } else {
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Error</h2><pre>' . $err . '</pre>';
+ } else {
+ //echo '<h2>Result</h2><pre>'; print_r($result["return"]); echo '</pre>';
+ //return $result["return"];
+ return $result->children('ns', true)->return[0];
+ }
+ }
+ return -1;
+
+ }
+
+ function deleteRoom($openmeetings) {
+ global $current_user;
+ global $system_config;
+
+ //echo $client_roomService."<br/>";
+ $restService = new openmeetings_rest_service();
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
+ echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>';
+ exit();
+ }
+ /*
+ $params = array(
+ 'SID' => $this->session_id,
+ 'rooms_id' => $openmeetings->room_id
+
+ );
+
+ $result = $client_roomService->call('deleteRoom',$params);
+ */
+
+
+ $result = $restService->call("http://".$system_config->settings['info_openmeetings_url'].
+ ":".$system_config->settings['info_openmeetings_http_port'].
+ "/openmeetings/services/RoomService/deleteRoom?" .
+ "SID=".$this->session_id.
+ "&rooms_id=".$openmeetings->room_id);
+
+ if ($restService->fault) {
+ echo '<h2>Fault (Expect - The request contains an invalid SOAP body)</h2><pre>'; print_r($result); echo '</pre>';
+ } else {
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Error</h2><pre>' . $err . '</pre>';
+ } else {
+ //echo '<h2>Result</h2><pre>'; print_r($result["return"]); echo '</pre>';
+ //return $result["return"];
+ return $result->children('ns', true)->return[0];
+ }
+ }
+ return -1;
+ }
+
+ /*
+ * Usage if this Method will work if you have no need to simulate always the same user in
+ * OpenMeetings, if you want to do this check the next method that also remembers the
+ * ID of the external User
+ *
+ *
+ */
+ function openmeetings_setUserObject($username, $firstname, $lastname, $profilePictureUrl, $email) {
+ global $current_user;
+ global $system_config;
+
+ $restService = new nusoap_client("http://".$system_config->settings[info_openmeetings_url].":".$system_config->settings[info_openmeetings_http_port]."/openmeetings/services/UserService?wsdl", true);
+
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
+ echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>';
+ exit();
+ }
+ $params = array(
+ 'SID' => $this->session_id,
+ 'username' => $username,
+ 'firstname' => $firstname,
+ 'lastname' => $lastname,
+ 'profilePictureUrl' => $profilePictureUrl,
+ 'email' => $email
+ );
+ $result = $restService->call('setUserObject',$params);
+ if ($client_roomService->fault) {
+ echo '<h2>Fault (Expect - The request contains an invalid SOAP body)</h2><pre>'; print_r($result); echo '</pre>';
+ } else {
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Error</h2><pre>' . $err . '</pre>';
+ } else {
+ //echo '<h2>Result</h2><pre>'; print_r($result["return"]); echo '</pre>';
+ return $result["return"];
+ }
+ }
+ return -1;
+ }
+
+ /**
+ * Sets the User Id and remembers the User,
+ * the value for $systemType is any Flag but usually should always be the same,
+ * it only has a reason if you have more then one external Systems, so the $userId will not
+ * be unique, then you can use the $systemType to give each system its own scope
+ *
+ * so a unique external user is always the pair of: $userId + $systemType
+ *
+ * in this case the $systemType is 'moodle'
+ *
+ */
+ function openmeetings_setUserObjectWithExternalUser($username, $firstname, $lastname, $profilePictureUrl, $email, $userId, $systemType) {
+ global $current_user;
+ global $system_config;
+
+ $restService = new nusoap_client("http://".$system_config->settings[info_openmeetings_url].":".$system_config->settings[info_openmeetings_http_port]."/openmeetings/services/UserService?wsdl", true);
+
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
+ echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>';
+ exit();
+ }
+ $params = array(
+ 'SID' => $this->session_id,
+ 'username' => $username,
+ 'firstname' => $firstname,
+ 'lastname' => $lastname,
+ 'profilePictureUrl' => $profilePictureUrl,
+ 'email' => $email,
+ 'externalUserId' => $userId,
+ 'externalUserType' => $systemType
+ );
+ $result = $restService->call('setUserObjectWithExternalUser',$params);
+ if ($client_roomService->fault) {
+ echo '<h2>Fault (Expect - The request contains an invalid SOAP body)</h2><pre>'; print_r($result); echo '</pre>';
+ } else {
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Error</h2><pre>' . $err . '</pre>';
+ } else {
+ //echo '<h2>Result</h2><pre>'; print_r($result["return"]); echo '</pre>';
+ return $result["return"];
+ }
+ }
+ return -1;
+ }
+
+ function openmeetings_setUserObjectAndGenerateRoomHash($username,
+ $firstname,
+ $lastname,
+ $profilePictureUrl,
+ $email,
+ $externalUserId,
+ $externalUserType,
+ $room_id,
+ $becomeModeratorAsInt,
+ $showAudioVideoTestAsInt) {
+
+ global $current_user;
+ global $system_config;
+
+ $restService = new openmeetings_rest_service();
+
+ $result = $restService->call("http://".$system_config->settings['info_openmeetings_url'].
+ ":".$system_config->settings['info_openmeetings_http_port'].
+ "/openmeetings/services/UserService/setUserObjectAndGenerateRoomHash?" .
+ "SID=".$this->session_id.
+ "&username=".$username.
+ "&firstname=".$firstname.
+ "&lastname=".$lastname.
+ "&profilePictureUrl=".$profilePictureUrl.
+ "&email=".$email.
+ "&externalUserId=".$externalUserId.
+ "&externalUserType=".$externalUserType.
+ "&room_id=".$room_id.
+ "&becomeModeratorAsInt=".$becomeModeratorAsInt.
+ "&showAudioVideoTestAsInt=".$showAudioVideoTestAsInt);
+
+
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
+ echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>';
+ exit();
+ }
+
+ if ($restService->getError()) {
+ echo '<h2>Fault (Expect - The request contains an invalid SOAP body)</h2><pre>'; print_r($result); echo '</pre>';
+ } else {
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Error</h2><pre>' . $err . '</pre>';
+ } else {
+ //echo '<h2>Result</h2><pre>'; print_r($result["return"]); echo '</pre>';
+ return $result->children('ns', true)->return[0];
+
+ }
+ }
+ return -1;
+ }
+
+ function openmeetings_sendInvitationHash($username, $message, $baseurl, $email, $subject, $room_id, $conferencedomain, $isPasswordProtected, $invitationpass, $valid, $validFromDate, $validFromTime, $validToDate, $validToTime, $language_id, $sendMail) {
+ global $current_user;
+ global $system_config;
+
+ $restService = new nusoap_client("http://".$system_config->settings[info_openmeetings_url].":".$system_config->settings[info_openmeetings_http_port]."/openmeetings/services/RoomService?wsdl", true);
+
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
+ echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>';
+ exit();
+ }
+ $params = array(
+ 'SID' => $this->session_id,
+ 'username' => $username,
+ 'message' => $message,
+ 'baseurl' => $baseurl,
+ 'email' => $email,
+ 'subject' => $subject,
+ 'room_id' => $room_id,
+ 'conferencedomain' => $conferencedomain,
+ 'isPasswordProtected' => $isPasswordProtected,
+ 'invitationpass' => $invitationpass,
+ 'valid'=> $valid,
+ 'validFromDate' => $validFromDate,
+ 'validFromTime' => $validFromTime,
+ 'validToDate' => $validToDate,
+ 'validToTime' => $validToTime,
+ 'language_id' => $language_id,
+ 'sendMail' => $sendMail
+ );
+ $result = $restService->call('sendInvitationHash', $params);
+ if ($restService->fault) {
+ echo '<h2>Fault (Expect - The request contains an invalid SOAP body)</h2><pre>'; print_r($result); echo '</pre>';
+ } else {
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Error</h2><pre>' . $err . '</pre>';
+ } else {
+ //echo '<h2>Result</h2><pre>'; print_r($result["return"]); echo '</pre>';
+ return $result["return"];
+ }
+ }
+ return -1;
+ }
+
+ function sendInvitationHashWithDateObject($username, $message, $baseurl, $email, $subject, $room_id, $conferencedomain, $isPasswordProtected, $invitationpass, $valid, $fromDate, $toDate, $language_id, $sendMail) {
+ global $current_user;
+ global $system_config;
+
+ $restService = new nusoap_client("http://".$system_config->settings[info_openmeetings_url].":".$system_config->settings[info_openmeetings_http_port]."/openmeetings/services/RoomService?wsdl", true);
+
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
+ echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>';
+ exit();
+ }
+ $params = array(
+ 'SID' => $this->session_id,
+ 'username' => $username,
+ 'message' => $message,
+ 'baseurl' => $baseurl,
+ 'email' => $email,
+ 'subject' => $subject,
+ 'room_id' => $room_id,
+ 'conferencedomain' => $conferencedomain,
+ 'isPasswordProtected' => $isPasswordProtected,
+ 'invitationpass' => $invitationpass,
+ 'valid'=> $valid,
+ 'fromDate' => $fromDate,
+ 'toDate' => $toDate,
+ 'language_id' => $language_id,
+ 'sendMail' => $sendMail
+ );
+ $result = $restService->call('sendInvitationHash', $params);
+ if ($restService->fault) {
+ echo '<h2>Fault (Expect - The request contains an invalid SOAP body)</h2><pre>'; print_r($result); echo '</pre>';
+ } else {
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Error</h2><pre>' . $err . '</pre>';
+ } else {
+ //echo '<h2>Result</h2><pre>'; print_r($result["return"]); echo '</pre>';
+ return $result["return"];
+ }
+ }
+ return -1;
+ }
+
+function getInvitationHash($username, $room_id, $isPasswordProtected, $invitationpass, $valid, $validFromDate, $validFromTime, $validToDate, $validToTime) {
+ global $current_user;
+ global $system_config;
+
+ $restService = new openmeetings_rest_service();
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
+ echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>';
+ exit();
+ }
+
+ $result = $restService->call("http://".$system_config->settings['info_openmeetings_url'].
+ ":".$system_config->settings['info_openmeetings_http_port'].
+ "/openmeetings/services/RoomService/getInvitationHash?" .
+ "SID=".$this->session_id.
+ "&username=".urlencode($username).
+ "&room_id=".$room_id.
+ "&isPasswordProtected=".$this->var_to_str($isPasswordProtected).
+ "&invitationpass=".$invitationpass.
+ "&valid=".$valid.
+ "&validFromDate=".$validFromDate.
+ "&validFromTime=".$validFromTime.
+ "&validToDate=".$validToDate.
+ "&validToTime=".$validToTime);
+
+
+ if ($restService->fault) {
+ echo '<h2>Fault (Expect - The request contains an invalid SOAP body)</h2><pre>'; print_r($result); echo '</pre>';
+ } else {
+ $err = $restService->getError();
+ if ($err) {
+ echo '<h2>Error</h2><pre>' . $err . '</pre>';
+ } else {
+ //echo '<h2>Result</h2><pre>'; print_r($result["return"]); echo '</pre>';
+ //return $result["return"];
+ return $result->children('ns', true)->return[0];
+ }
+ }
+ return -1;
+ }
+
+
+
+}
+
+?>
Added: incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings_sugar.php
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings_sugar.php?rev=1370844&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings_sugar.php (added)
+++ incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/openmeetings_sugar.php Wed Aug 8 17:16:44 2012
@@ -0,0 +1,71 @@
+<?PHP
+/*********************************************************************************
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License") + you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+* ********************************************************************************/
+
+/**
+ * THIS CLASS IS GENERATED BY MODULE BUILDER
+ * PLEASE DO NOT CHANGE THIS CLASS
+ * PLACE ANY CUSTOMIZATIONS IN openmeetings
+ */
+
+
+class openmeetings_sugar extends Basic {
+ var $new_schema = true;
+ var $module_dir = 'openmeetings';
+ var $object_name = 'openmeetings';
+ var $table_name = 'openmeetings';
+ var $importable = false;
+ var $disable_row_level_security = true ; // to ensure that modules created and deployed under CE will continue to function under team security if the instance is upgraded to PRO
+ var $id;
+ var $name;
+ var $date_entered;
+ var $date_modified;
+ var $modified_user_id;
+ var $modified_by_name;
+ var $created_by;
+ var $created_by_name;
+ var $description;
+ var $deleted;
+ var $created_by_link;
+ var $modified_user_link;
+ var $assigned_user_id;
+ var $assigned_user_name;
+ var $assigned_user_link;
+ var $is_public;
+ var $is_moderated_room;
+ var $allow_user_questions;
+ var $is_audio_only;
+ var $allow_recording;
+ var $room_id;
+ var $room_link;
+ var $room_type_id;
+ var $number_of_partizipants;
+ function openmeetings_sugar(){
+ parent::Basic();
+ }
+
+ function bean_implements($interface){
+ switch($interface){
+ case 'ACL': return true;
+ }
+ return false;
+}
+
+}
+?>
\ No newline at end of file
Added: incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/room_entrance.php
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/room_entrance.php?rev=1370844&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/room_entrance.php (added)
+++ incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/room_entrance.php Wed Aug 8 17:16:44 2012
@@ -0,0 +1,121 @@
+<?php
+/*********************************************************************************
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License") + you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+* ********************************************************************************/
+
+if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
+
+require_once("openmeetings_gateway/openmeetings_gateway.php");
+//require_once("modules/Meetings/Meeting.php");
+
+global $current_user;
+global $system_config;
+
+
+//echo '<pre>';
+//print_r($current_user);
+//echo '</pre>';
+
+//echo '<pre>';
+//print_r($GLOBALS);
+//print_r($system_config);
+//echo "info: $system_config->settings->info_openmeetings_username";
+//echo "info username from system_config:".$system_config->settings[info_openmeetings_username];
+//echo '</pre>';
+
+
+$openmeetings_gateway = new openmeetings_gateway();
+
+
+
+if ($openmeetings_gateway->openmeetings_loginuser()) {
+
+ $picture = $current_user->picture;
+ $first_name = $current_user->first_name;
+ $last_name = $current_user->last_name;
+ if(empty($picture)) {
+ $picture = "none";
+ }
+ if(empty($first_name)) {
+ $first_name = "none";
+ }
+ if(empty($last_name)) {
+ $last_name = "none";
+ }
+ $roomhash = $openmeetings_gateway->openmeetings_setUserObjectAndGenerateRoomHash(
+ $current_user->user_name,
+ $first_name,
+ $last_name,
+ $picture,
+ $current_user->email1,
+ $current_user->id,
+ "SugarCRM",
+ $_REQUEST['roomid'],
+ 1,
+ 1
+ );
+
+
+ if (!empty($roomhash)) {
+
+ $iframe_d = "http://".$system_config->settings['info_openmeetings_url'].":".
+ $system_config->settings['info_openmeetings_http_port'].
+ "/openmeetings/?" .
+ "scopeRoomId=" . $_REQUEST['roomid'] .
+ "&secureHash=" .$roomhash.
+ "&language=".$system_config->settings['info_openmeetings_language'].
+ "&lzproxied=solo";
+
+
+ printf("<iframe src='%s' width='%s' height='600px' />",$iframe_d,
+ "100%");
+/*
+*/
+ //echo "\n<p>\n";
+ //echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME']."Openmeetings", true);
+ //echo "\n</p>\n";
+
+ /*
+ global $theme;
+ global $app_list_strings;
+ $theme_path="themes/".$theme."/";
+ $image_path=$theme_path."images/";
+ require_once($theme_path.'layout_utils.php');
+
+
+ $xtpl=new XTemplate ('modules/Openmeetings/DetailView.html');
+ $xtpl->assign("MOD", $mod_strings);
+ $xtpl->assign("APP", $app_strings);
+
+ $xtpl->assign("THEME", $theme);
+ $xtpl->assign("GRIDLINE", $gridline);
+ $xtpl->assign("IMAGE_PATH", $image_path);$xtpl->assign("PRINT_URL", "index.php?".$GLOBALS['request_string']);
+ $xtpl->assign("ID", $focus->id);
+ $xtpl->assign("USER_NAME", $focus->user_name);
+ $xtpl->assign("FULL_NAME", $focus->full_name);
+ $xtpl->assign("IFRAME", $iframe_d);
+
+ $xtpl->parse('main');
+ $xtpl->out('main');
+ */
+ }
+ } else {
+ echo "Could not login User to OpenMeetings, check your OpenMeetings Module Configuration";
+ exit();
+ }
+?>
Added: incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/vardefs.php
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/vardefs.php?rev=1370844&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/vardefs.php (added)
+++ incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/modules/openmeetings/vardefs.php Wed Aug 8 17:16:44 2012
@@ -0,0 +1,201 @@
+<?php
+/*********************************************************************************
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License") + you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+* ********************************************************************************/
+
+$dictionary['openmeetings'] = array(
+ 'table'=>'openmeetings',
+ 'audited'=>true,
+ 'duplicate_merge'=>true,
+ 'fields'=>array (
+ 'is_public' =>
+ array (
+ 'required' => false,
+ 'name' => 'is_public',
+ 'vname' => 'LBL_IS_PUBLIC',
+ 'type' => 'bool',
+ 'massupdate' => 0,
+ 'comments' => '',
+ 'help' => '',
+ 'importable' => 'true',
+ 'duplicate_merge' => 'disabled',
+ 'duplicate_merge_dom_value' => '0',
+ 'audited' => false,
+ 'reportable' => true,
+ 'len' => '255',
+ 'size' => '20',
+ ),
+ 'is_moderated_room' =>
+ array (
+ 'required' => false,
+ 'name' => 'is_moderated_room',
+ 'vname' => 'LBL_IS_MODERATED_ROOM',
+ 'type' => 'bool',
+ 'massupdate' => 0,
+ 'comments' => '',
+ 'help' => '',
+ 'importable' => 'true',
+ 'duplicate_merge' => 'disabled',
+ 'duplicate_merge_dom_value' => '0',
+ 'audited' => false,
+ 'reportable' => true,
+ 'len' => '255',
+ 'size' => '20',
+ ),
+ 'allow_user_questions' =>
+ array (
+ 'required' => false,
+ 'name' => 'allow_user_questions',
+ 'vname' => 'LBL_ALLOW_USER_QUESTIONS',
+ 'type' => 'bool',
+ 'massupdate' => 0,
+ 'comments' => '',
+ 'help' => '',
+ 'importable' => 'true',
+ 'duplicate_merge' => 'disabled',
+ 'duplicate_merge_dom_value' => '0',
+ 'audited' => false,
+ 'reportable' => true,
+ 'len' => '255',
+ 'size' => '20',
+ ),
+ 'is_audio_only' =>
+ array (
+ 'required' => false,
+ 'name' => 'is_audio_only',
+ 'vname' => 'LBL_IS_AUDIO_ONLY',
+ 'type' => 'bool',
+ 'massupdate' => 0,
+ 'comments' => '',
+ 'help' => '',
+ 'importable' => 'true',
+ 'duplicate_merge' => 'disabled',
+ 'duplicate_merge_dom_value' => '0',
+ 'audited' => false,
+ 'reportable' => true,
+ 'len' => '255',
+ 'size' => '20',
+ ),
+ 'allow_recording' =>
+ array (
+ 'required' => false,
+ 'name' => 'allow_recording',
+ 'vname' => 'LBL_ALLOW_RECORDING',
+ 'type' => 'bool',
+ 'massupdate' => 0,
+ 'comments' => '',
+ 'help' => '',
+ 'importable' => 'true',
+ 'duplicate_merge' => 'disabled',
+ 'duplicate_merge_dom_value' => '0',
+ 'audited' => false,
+ 'reportable' => true,
+ 'len' => '255',
+ 'size' => '20',
+ ),
+ 'room_id' =>
+ array (
+ 'required' => false,
+ 'name' => 'room_id',
+ 'vname' => 'LBL_ROOM_ID',
+ 'type' => 'int',
+ 'massupdate' => 0,
+ 'comments' => '',
+ 'help' => '',
+ 'importable' => 'true',
+ 'duplicate_merge' => 'disabled',
+ 'duplicate_merge_dom_value' => '0',
+ 'audited' => false,
+ 'reportable' => true,
+ 'len' => '255',
+ 'size' => '20',
+ 'enable_range_search' => false,
+ 'disable_num_format' => '',
+ ),
+ 'room_link' =>
+ array (
+ 'required' => false,
+ 'name' => 'room_link',
+ 'vname' => 'LBL_ROOM_LINK',
+ 'type' => 'url',
+ 'massupdate' => 0,
+ 'comments' => '',
+ 'help' => '',
+ 'importable' => 'true',
+ 'duplicate_merge' => 'disabled',
+ 'duplicate_merge_dom_value' => '0',
+ 'audited' => false,
+ 'reportable' => true,
+ 'len' => '255',
+ 'size' => '20',
+ 'dbType' => 'varchar',
+ 'gen' => '',
+ 'link_target' => '_self',
+ ),
+ 'room_type_id' =>
+ array (
+ 'required' => false,
+ 'name' => 'room_type_id',
+ 'vname' => 'LBL_ROOM_TYPE_ID',
+ 'type' => 'enum',
+ 'massupdate' => 0,
+ 'default' => '1',
+ 'comments' => '',
+ 'help' => '',
+ 'importable' => 'true',
+ 'duplicate_merge' => 'disabled',
+ 'duplicate_merge_dom_value' => '0',
+ 'audited' => false,
+ 'reportable' => true,
+ 'len' => 100,
+ 'size' => '20',
+ 'options' => 'room_type_list',
+ 'studio' => 'visible',
+ 'dependency' => false,
+ ),
+ 'number_of_partizipants' =>
+ array (
+ 'required' => false,
+ 'name' => 'number_of_partizipants',
+ 'vname' => 'LBL_NUMBER_OF_PARTIZIPANTS',
+ 'type' => 'enum',
+ 'massupdate' => 0,
+ 'default' => '2',
+ 'comments' => '',
+ 'help' => '',
+ 'importable' => 'true',
+ 'duplicate_merge' => 'disabled',
+ 'duplicate_merge_dom_value' => '0',
+ 'audited' => false,
+ 'reportable' => true,
+ 'len' => 100,
+ 'size' => '20',
+ 'options' => 'number_of_partizipants_list',
+ 'studio' => 'visible',
+ 'dependency' => false,
+ ),
+),
+ 'relationships'=>array (
+),
+ 'optimistic_locking'=>true,
+ 'unified_search'=>true,
+ );
+if (!class_exists('VardefManager')){
+ require_once('include/SugarObjects/VardefManager.php');
+}
+VardefManager::createVardef('openmeetings','openmeetings', array('basic','assignable'));
\ No newline at end of file
Added: incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/relationships/language/Meetings.php
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/relationships/language/Meetings.php?rev=1370844&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/relationships/language/Meetings.php (added)
+++ incubator/openmeetings/trunk/plugins/sugarcrm/dist/openmeetings/SugarModules/relationships/language/Meetings.php Wed Aug 8 17:16:44 2012
@@ -0,0 +1,21 @@
+<?php
+/*********************************************************************************
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License") + you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+* ********************************************************************************/
+//THIS FILE IS AUTO GENERATED, DO NOT MODIFY
+$mod_strings['LBL_openmeetings_MEETINGS_FROM_openmeetings_TITLE'] = 'OpenMeetings';