]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/EAPM/vardefs.php
Release 6.2.0beta4
[Github/sugarcrm.git] / modules / EAPM / vardefs.php
1 <?php
2 /*********************************************************************************
3  * SugarCRM is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
5  * 
6  * This program is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Affero General Public License version 3 as published by the
8  * Free Software Foundation with the addition of the following permission added
9  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10  * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
11  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
12  * 
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
16  * details.
17  * 
18  * You should have received a copy of the GNU Affero General Public License along with
19  * this program; if not, see http://www.gnu.org/licenses or write to the Free
20  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  * 02110-1301 USA.
22  * 
23  * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
24  * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
25  * 
26  * The interactive user interfaces in modified source and object code versions
27  * of this program must display Appropriate Legal Notices, as required under
28  * Section 5 of the GNU Affero General Public License version 3.
29  * 
30  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31  * these Appropriate Legal Notices must retain the display of the "Powered by
32  * SugarCRM" logo. If the display of the logo is not reasonably feasible for
33  * technical reasons, the Appropriate Legal Notices must display the words
34  * "Powered by SugarCRM".
35  ********************************************************************************/
36
37 $dictionary['EAPM'] = array(
38         'table'=>'eapm',
39         'audited'=>true,
40         'fields'=>array (
41   'password' =>
42   array (
43     'required' => true,
44     'name' => 'password',
45     'vname' => 'LBL_PASSWORD',
46     'type' => 'encrypt',
47         'dbtype' => 'varchar',
48     'massupdate' => 0,
49     'comments' => '',
50     'help' => '',
51     'importable' => 'true',
52     'duplicate_merge' => 'disabled',
53     'duplicate_merge_dom_value' => '0',
54     'audited' => false,
55     'reportable' => false,
56     'len' => '255',
57     'size' => '20',
58   ),
59   'url' =>
60   array (
61     'required' => true,
62     'name' => 'url',
63     'vname' => 'LBL_URL',
64     'type' => 'varchar',
65     'massupdate' => 0,
66     'comments' => '',
67     'help' => '',
68     'importable' => 'true',
69     'duplicate_merge' => 'disabled',
70     'duplicate_merge_dom_value' => '0',
71     'audited' => false,
72     'reportable' => true,
73     'len' => '255',
74     'size' => '20',
75   ),
76   'application' =>
77   array (
78     'required' => true,
79     'name' => 'application',
80     'vname' => 'LBL_APPLICATION',
81     'type' => 'enum',
82     'massupdate' => 0,
83     'comments' => '',
84     'help' => '',
85     'importable' => 'true',
86     'duplicate_merge' => 'disabled',
87     'duplicate_merge_dom_value' => '0',
88     'audited' => false,
89     'reportable' => true,
90     'len' => 100,
91     'size' => '20',
92     'function' => 'getEAPMExternalApiDropDown',
93     'studio' => 'visible',
94     'default' => 'webex',
95   ),
96   'name' =>
97   array (
98     'name' => 'name',
99     'vname' => 'LBL_NAME',
100     'type' => 'name',
101     'dbType' => 'varchar',
102     'len' => '255',
103     'unified_search' => true,
104 //    'required' => true,
105     'importable' => 'required',
106     'massupdate' => 0,
107     'comments' => '',
108     'help' => '',
109     'duplicate_merge' => 'disabled',
110     'duplicate_merge_dom_value' => '0',
111     'audited' => false,
112     'reportable' => true,
113     'size' => '20',
114   ),
115           'api_data' =>
116           array (
117             'name' => 'api_data',
118             'vname' => 'LBL_API_DATA',
119             'type' => 'text',
120             'comment' => 'Any API data that the external API may wish to store on a per-user basis',
121             'rows' => 6,
122             'cols' => 80,
123           ),
124           'consumer_key' => array(
125                 'name' => 'consumer_key',
126             'type' => 'varchar',
127             'vname' => 'LBL_API_CONSKEY',
128 //        'required' => true,
129         'importable' => 'required',
130         'massupdate' => 0,
131         'audited' => false,
132         'reportable' => false,
133         'studio' => 'hidden',
134           ),
135           'consumer_secret' => array(
136                 'name' => 'consumer_secret',
137             'type' => 'varchar',
138             'vname' => 'LBL_API_CONSSECRET',
139 //        'required' => true,
140         'importable' => 'required',
141         'massupdate' => 0,
142         'audited' => false,
143         'reportable' => false,
144         'studio' => 'hidden',
145           ),
146           'oauth_token' => array(
147                 'name' => 'oauth_token',
148             'type' => 'varchar',
149             'vname' => 'LBL_API_OAUTHTOKEN',
150         'importable' => false,
151         'massupdate' => 0,
152         'audited' => false,
153         'reportable' => false,
154         'required' => false,
155             'dbtype' => 'varchar',
156         'studio' => 'hidden',
157           ),
158           'oauth_secret' => array(
159                 'name' => 'oauth_secret',
160             'type' => 'varchar',
161             'vname' => 'LBL_API_OAUTHSECRET',
162         'importable' => false,
163         'massupdate' => 0,
164         'audited' => false,
165         'reportable' => false,
166         'required' => false,
167             'dbtype' => 'varchar',
168         'studio' => 'hidden',
169           ),
170           'validated' => array(
171         'required' => false,
172         'name' => 'validated',
173         'vname' => 'LBL_VALIDATED',
174         'type' => 'bool',
175             'default' => false,
176           ),
177           'active' => array(
178         'required' => false,
179         'name' => 'active',
180         'vname' => 'LBL_ACTIVE',
181         'type' => 'bool',
182             'default' => true,
183           ),
184
185 ),
186         'relationships'=>array (
187     ),
188     'indices' => array(
189         array(
190                 'name' => 'idx_app_active',
191                 'type' => 'index',
192                 'fields'=> array('assigned_user_id', 'application', 'active'),
193         ),
194 ),
195         'optimistic_locking'=>true,
196 );
197 if (!class_exists('VardefManager')){
198         require_once('include/SugarObjects/VardefManager.php');
199 }
200 VardefManager::createVardef('EAPM','EAPM', array('basic','assignable'));