2 if(!defined('sugarEntry'))define('sugarEntry', true);
3 /*********************************************************************************
4 * SugarCRM Community Edition is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
7 * This program is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU Affero General Public License version 3 as published by the
9 * Free Software Foundation with the addition of the following permission added
10 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
14 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
19 * You should have received a copy of the GNU Affero General Public License along with
20 * this program; if not, see http://www.gnu.org/licenses or write to the Free
21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
27 * The interactive user interfaces in modified source and object code versions
28 * of this program must display Appropriate Legal Notices, as required under
29 * Section 5 of the GNU Affero General Public License version 3.
31 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32 * these Appropriate Legal Notices must retain the display of the "Powered by
33 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34 * technical reasons, the Appropriate Legal Notices must display the words
35 * "Powered by SugarCRM".
36 ********************************************************************************/
39 require_once('service/v3/registry.php');
41 class registry_v3_1 extends registry_v3 {
44 * This method registers all the functions on the service class
47 protected function registerFunction()
49 $GLOBALS['log']->info('Begin: registry->registerFunction');
50 parent::registerFunction();
52 $this->serviceClass->registerFunction(
54 array('session'=>'xsd:string', 'module_name'=>'xsd:string', 'id'=>'xsd:string', 'select_fields'=>'tns:select_fields','link_name_to_fields_array'=>'tns:link_names_to_fields_array','track_view'=>'xsd:boolean'),
55 array('return'=>'tns:get_entry_result_version2'));
57 $this->serviceClass->registerFunction(
59 array('session'=>'xsd:string', 'module_name'=>'xsd:string', 'ids'=>'tns:select_fields', 'select_fields'=>'tns:select_fields', 'link_name_to_fields_array'=>'tns:link_names_to_fields_array','track_view'=>'xsd:boolean'),
60 array('return'=>'tns:get_entry_result_version2'));
62 $this->serviceClass->registerFunction(
64 array('session'=>'xsd:string', 'module_name'=>'xsd:string', 'query'=>'xsd:string', 'order_by'=>'xsd:string','offset'=>'xsd:int', 'select_fields'=>'tns:select_fields', 'link_name_to_fields_array'=>'tns:link_names_to_fields_array', 'max_results'=>'xsd:int', 'deleted'=>'xsd:int', 'favorites'=>'xsd:boolean'),
65 array('return'=>'tns:get_entry_list_result_version2'));
67 $this->serviceClass->registerFunction(
69 array('session'=>'xsd:string','search_string'=>'xsd:string', 'modules'=>'tns:select_fields', 'offset'=>'xsd:int', 'max_results'=>'xsd:int','unified_search_only'=>'xsd:boolean'),
70 array('return'=>'tns:return_search_result'));
72 $this->serviceClass->registerFunction(
73 'get_available_modules',
74 array('session'=>'xsd:string','filter'=>'xsd:string'),
75 array('return'=>'tns:module_list'));
77 $this->serviceClass->registerFunction(
78 'get_module_fields_md5',
79 array('session'=>'xsd:string', 'module_names'=>'tns:select_fields'),
80 array('return'=>'tns:md5_results'));
84 * This method registers all the complex types
87 protected function registerTypes()
89 parent::registerTypes();
91 $this->serviceClass->registerType(
99 array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'xsd:string[]')
105 $this->serviceClass->registerType(
112 'modules'=>array('name'=>'modules', 'type'=>'tns:module_list_array'),
116 $this->serviceClass->registerType(
124 array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'tns:module_list_entry[]')
126 'tns:module_list_entry'
129 $this->serviceClass->registerType(
136 'module_key'=>array('name'=>'module_key', 'type'=>'xsd:string'),
137 'module_label'=>array('name'=>'module_label', 'type'=>'xsd:string'),
138 'acls'=>array('name'=>'acls', 'type'=>'tns:acl_list'),
142 $this->serviceClass->registerType(
150 array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'tns:acl_list_entry[]')
155 $this->serviceClass->registerType(
162 'action'=>array('name'=>'action', 'type'=>'xsd:string'),
163 'access'=>array('name'=>'access', 'type'=>'xsd:string'),
167 $this->serviceClass->registerType(
168 'get_entry_list_result_version2',
174 'result_count' => array('name'=>'result_count', 'type'=>'xsd:int'),
175 'total_count' => array('name'=>'total_count', 'type'=>'xsd:int'),
176 'next_offset' => array('name'=>'next_offset', 'type'=>'xsd:int'),
177 'entry_list' => array('name' =>'entry_list', 'type'=>'tns:entry_list'),
178 'relationship_list' => array('name' =>'relationship_list', 'type'=>'tns:link_lists'),
182 $this->serviceClass->registerType(
189 'module_name'=>array('name'=>'module_name', 'type'=>'xsd:string'),
190 'module_name'=>array('name'=>'table_name', 'type'=>'xsd:string'),
191 'module_fields'=>array('name'=>'module_fields', 'type'=>'tns:field_list'),
192 'link_fields'=>array('name'=>'link_fields', 'type'=>'tns:link_field_list'),
196 //From v2_1, can't extend from this class because of versioning.
197 $this->serviceClass->registerType(
204 'link_list'=>array('name'=>'link_list', 'type'=>'tns:link_list'),
207 $this->serviceClass->registerType(
215 array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'tns:link_list2[]')
220 $this->serviceClass->registerType(
228 array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'tns:link_value2[]')
233 $this->serviceClass->registerType(
240 'link_value'=>array('name'=>'link_value', 'type'=>'tns:link_value'),
244 $this->serviceClass->registerType(
252 array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:field_list2[]')
256 $this->serviceClass->registerType(
263 "field_list"=>array('name'=>'field_list', 'type'=>'tns:field_list'),
266 $this->serviceClass->registerType(
274 array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'tns:entry_list2[]')
278 $this->serviceClass->registerType(
285 "entry_list"=>array('name'=>'entry_list', 'type'=>'tns:entry_list'),