]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/SugarFeed/vardefs.php
Release 6.2.0
[Github/sugarcrm.git] / modules / SugarFeed / vardefs.php
1 <?php
2 /*********************************************************************************
3  * SugarCRM Community Edition 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['SugarFeed'] = array(
38         'table'=>'sugarfeed',
39         'audited'=>false,
40         'fields'=>array (
41          'name' => 
42   array (
43     'name' => 'name',
44     'type' => 'name',
45     'dbType' => 'varchar',
46     'vname' => 'LBL_NAME',
47     'len' => 255,
48     'comment' => 'Name of the feed',
49     'unified_search' => true,
50     'audited' => true,
51     'merge_filter' => 'selected',  //field will be enabled for merge and will be a part of the default search criteria..other valid values for this property are enabled and disabled, default value is disabled.
52                             //property value is case insensitive.
53   ),
54    'description' => 
55   array (
56     'name' => 'description',
57     'type' => 'name',
58     'dbType' => 'varchar',
59     'vname' => 'LBL_NAME',
60     'len' => 255,
61     'comment' => 'Name of the feed',
62     'unified_search' => true,
63     'audited' => true,
64     'merge_filter' => 'selected',  //field will be enabled for merge and will be a part of the default search criteria..other valid values for this property are enabled and disabled, default value is disabled.
65                             //property value is case insensitive.
66   ),
67   
68     'related_module' => 
69   array (
70     'name' => 'related_module',
71     'type' => 'varchar',
72     'vname' => 'LBL_NAME',
73     'len' => 100,
74     'comment' => 'related module',
75     'unified_search' => true,
76     'audited' => false,
77     'merge_filter' => 'selected',  //field will be enabled for merge and will be a part of the default search criteria..other valid values for this property are enabled and disabled, default value is disabled.
78                             //property value is case insensitive.
79   ),
80    'related_id' => 
81   array (
82     'name' => 'related_id',
83     'type' => 'id',
84     'vname' => 'LBL_NAME',
85     'len' => 36,
86     'comment' => 'related module',
87     'unified_search' => true,
88     'audited' => false,
89     'merge_filter' => 'selected',  //field will be enabled for merge and will be a part of the default search criteria..other valid values for this property are enabled and disabled, default value is disabled.
90                             //property value is case insensitive.
91   ),
92          'link_url' => 
93   array (
94     'name' => 'link_url',
95     'type' => 'varchar',
96     'vname' => 'LBL_NAME',
97     'len' => 255,
98     'comment' => 'Name of the feed',
99     'unified_search' => true,
100     'audited' => false,
101     'merge_filter' => 'selected',  //field will be enabled for merge and will be a part of the default search criteria..other valid values for this property are enabled and disabled, default value is disabled.
102                             //property value is case insensitive.
103   ),
104          'link_type' => 
105   array (
106     'name' => 'link_type',
107     'type' => 'varchar',
108     'vname' => 'LBL_NAME',
109     'len' => 30,
110     'comment' => 'Name of the feed',
111     'unified_search' => true,
112     'audited' => false,
113     'merge_filter' => 'selected',  //field will be enabled for merge and will be a part of the default search criteria..other valid values for this property are enabled and disabled, default value is disabled.
114                             //property value is case insensitive.
115   ),
116          
117 ),
118         'relationships'=>array (
119     ),
120
121     'indices' => array (
122         array('name' => 'sgrfeed_date', 
123               'type'=>'index',
124               'fields'=>array('date_entered',
125                               'deleted',
126                   )),
127     ),
128
129         'optimistic_lock'=>true,
130 );
131
132 VardefManager::createVardef('SugarFeed','SugarFeed', array('basic',
133 'assignable'));