]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Roles/vardefs.php
Release 6.5.0
[Github/sugarcrm.git] / modules / Roles / vardefs.php
1 <?php
2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4  * SugarCRM Community Edition is a customer relationship management program developed by
5  * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
6  * 
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.
13  * 
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
17  * details.
18  * 
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
22  * 02110-1301 USA.
23  * 
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.
26  * 
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.
30  * 
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  ********************************************************************************/
37
38 $dictionary['Role'] = array('table' => 'roles'
39                                ,'fields' => array (
40   'id' =>
41   array (
42     'name' => 'id',
43     'vname' => 'LBL_ID',
44     'required'=>true,
45     'type' => 'id',
46     'reportable'=>false,
47   ),
48    'date_entered' =>
49   array (
50     'name' => 'date_entered',
51     'vname' => 'LBL_DATE_ENTERED',
52     'type' => 'datetime',
53     'required'=>true
54   ),
55   'date_modified' =>
56   array (
57     'name' => 'date_modified',
58     'vname' => 'LBL_DATE_MODIFIED',
59     'type' => 'datetime',
60     'required'=>true,
61   ),
62     'modified_user_id' =>
63   array (
64     'name' => 'modified_user_id',
65     'rname' => 'user_name',
66     'id_name' => 'modified_user_id',
67     'vname' => 'LBL_MODIFIED',
68     'type' => 'assigned_user_name',
69     'table' => 'modified_user_id_users',
70     'isnull' => 'false',
71     'dbType' => 'id',
72     'required'=> false,
73     'len' => 36,
74     'reportable'=>true,
75   ),
76     'created_by' =>
77   array (
78     'name' => 'created_by',
79     'rname' => 'user_name',
80     'id_name' => 'created_by',
81     'vname' => 'LBL_CREATED',
82     'type' => 'assigned_user_name',
83     'table' => 'created_by_users',
84     'isnull' => 'false',
85     'dbType' => 'id',
86     'len' => 36,
87   ),
88    'name' =>
89   array (
90     'name' => 'name',
91     'type' => 'varchar',
92     'vname' => 'LBL_NAME',
93     'len' => 150,
94     'importable' => 'required',
95   ),
96    'description' =>
97   array (
98     'name' => 'description',
99     'vname' => 'LBL_DESCRIPTION',
100     'type' => 'text',
101   ),
102   'modules' =>
103   array (
104     'name' => 'modules',
105     'vname' => 'LBL_MODULES',
106     'type' => 'text',
107   ),
108   'deleted' =>
109   array (
110     'name' => 'deleted',
111     'vname' => 'LBL_DELETED',
112     'type' => 'bool',
113     'reportable'=>false,
114   ),
115   'users' =>
116   array (
117         'name' => 'users',
118     'type' => 'link',
119     'relationship' => 'roles_users',
120     'source'=>'non-db',
121         'vname'=>'LBL_USERS',
122   ),
123 )
124 , 'indices' => array (
125        array('name' =>'rolespk', 'type' =>'primary', 'fields'=>array('id')),
126        array('name' =>'idx_role_id_del', 'type' =>'index', 'fields'=>array('id', 'deleted')),
127                                                    )
128
129                             );
130 ?>