3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
6 * Member's table fields declarations
10 * Copyright © 2012-2014 The Galette Team
12 * This file is part of Galette (http://galette.tuxfamily.org).
14 * Galette is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
19 * Galette is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with Galette. If not, see <http://www.gnu.org/licenses/>.
30 * @author Johan Cwiklinski <johan@x-tnd.be>
31 * @copyright 2012-2014 The Galette Team
32 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
33 * @link http://galette.tuxfamily.org
34 * @since 0.7.2.8 - 2012-12-18
37 use Galette\Entity\FieldsConfig
;
38 use Galette\Entity\FieldsCategories
;
40 $members_fields = array(
42 'label' => _T("Member id:"),
45 'visible' => FieldsConfig
::NOBODY
,
47 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
,
48 'list_visible' => true,
52 'label' => _T("Status:"),
53 'propname' => 'status',
55 'visible' => FieldsConfig
::STAFF
,
57 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
,
58 'list_visible' => true,
62 'label' => _T("Name:"),
65 'visible' => FieldsConfig
::USER_WRITE
,
67 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
69 'prenom_adh' => array(
70 'label' => _T("First name:"),
71 'propname' => 'surname',
73 'visible' => FieldsConfig
::USER_WRITE
,
75 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
77 'societe_adh' => array(
78 'label' => _T("Company:"),
79 'propname' => 'company_name',
81 'visible' => FieldsConfig
::USER_WRITE
,
83 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
85 'pseudo_adh' => array(
86 'label' => _T("Nickname:"),
87 'propname' => 'nickname',
89 'visible' => FieldsConfig
::USER_WRITE
,
91 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
,
92 'list_visible' => true,
96 'label' => _T("Title:"),
97 'propname' => 'title',
99 'visible' => FieldsConfig
::USER_WRITE
,
101 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
104 'label' => _T("Birth date:"),
105 'propname' => 'birthdate',
107 'visible' => FieldsConfig
::USER_WRITE
,
109 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
112 'label' => _T("Gender:"),
113 'propname' => 'gender',
115 'visible' => FieldsConfig
::USER_WRITE
,
117 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
119 'adresse_adh' => array(
120 'label' => _T("Address:"),
121 'propname' => 'address',
123 'visible' => FieldsConfig
::USER_WRITE
,
125 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
127 /** TODO remove second address... */
128 'adresse2_adh' => array(
129 'label' => _T("Address (continuation)"),
130 'propname' => 'address_continuation',
132 'visible' => FieldsConfig
::USER_WRITE
,
134 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
137 'label' => _T("Zip Code:"),
138 'propname' => 'zipcode',
140 'visible' => FieldsConfig
::USER_WRITE
,
142 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
144 'ville_adh' => array(
145 'label' => _T("City:"),
146 'propname' => 'town',
148 'visible' => FieldsConfig
::USER_WRITE
,
150 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
153 'label' => _T("Country:"),
154 'propname' => 'country',
156 'visible' => FieldsConfig
::USER_WRITE
,
158 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
161 'label' => _T("Phone:"),
162 'propname' => 'phone',
164 'visible' => FieldsConfig
::USER_WRITE
,
166 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
169 'label' => _T("Mobile phone:"),
172 'visible' => FieldsConfig
::USER_WRITE
,
174 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
176 'email_adh' => array(
177 'label' => _T("E-Mail:"),
178 'propname' => 'email',
180 'visible' => FieldsConfig
::USER_WRITE
,
182 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
185 'label' => _T("Other information (admin):"),
186 'propname' => 'others_infos_admin',
188 'visible' => FieldsConfig
::STAFF
,
190 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
192 'info_public_adh' => array(
193 'label' => _T("Other information:"),
194 'propname' => 'others_infos',
196 'visible' => FieldsConfig
::USER_WRITE
,
198 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
201 'label' => _T("Profession:"),
204 'visible' => FieldsConfig
::USER_WRITE
,
206 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
208 'login_adh' => array(
209 'label' => _T("Username:"),
210 'propname' => 'login',
212 'visible' => FieldsConfig
::USER_WRITE
,
214 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
217 'label' => _T("Password:"),
218 'propname' => 'password',
220 'visible' => FieldsConfig
::USER_WRITE
,
222 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
224 'date_crea_adh' => array(
225 'label' => _T("Creation date:"),
226 'propname' => 'creation_date',
228 'visible' => FieldsConfig
::STAFF
,
230 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
232 'date_modif_adh' => array(
233 'label' => _T("Modification date:"),
234 'propname' => 'modification_date',
236 'visible' => FieldsConfig
::USER_WRITE
,
238 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
,
239 'list_visible' => true,
242 'activite_adh' => array(
243 'label' => _T("Account:"),
244 'propname' => 'active',
246 'visible' => FieldsConfig
::STAFF
,
248 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
250 'bool_admin_adh' => array(
251 'label' => _T("Galette Admin:"),
252 'propname' => 'admin',
254 'visible' => FieldsConfig
::ADMIN
,
256 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
258 'bool_exempt_adh' => array(
259 'label' => _T("Freed of dues:"),
260 'propname' => 'due_free',
262 'visible' => FieldsConfig
::STAFF
,
264 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
266 'bool_display_info' => array(
267 'label' => _T("Be visible in the members list:"),
268 'propname' => 'appears_in_list',
270 'visible' => FieldsConfig
::USER_WRITE
,
272 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
274 'date_echeance' => array(
275 'label' => _T("Due date:"),
276 'propname' => 'due_date',
278 'visible' => FieldsConfig
::STAFF
,
280 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
282 'pref_lang' => array(
283 'label' => _T("Language:"),
284 'propname' => 'language',
286 'visible' => FieldsConfig
::USER_WRITE
,
288 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
290 'lieu_naissance' => array(
291 'label' => _T("Birthplace:"),
292 'propname' => 'birth_place',
294 'visible' => FieldsConfig
::USER_WRITE
,
296 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
299 'label' => _T("Id GNUpg (GPG):"),
300 'propname' => 'gnupgid',
302 'visible' => FieldsConfig
::USER_WRITE
,
304 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
306 'fingerprint' => array(
307 'label' => _T("fingerprint:"),
308 'propname' => 'fingerprint',
310 'visible' => FieldsConfig
::NOBODY
,
312 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
314 'parent_id' => array(
315 'label' => _T("Parent:"),
316 'propname' => 'parent',
318 'visible' => FieldsConfig
::NOBODY
,
320 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
323 'label' => _T("Member number:"),
324 'propname' => 'number',
326 'visible' => FieldsConfig
::MANAGER
,
328 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
330 'list_adh_name' => array(
331 'label' => _T("Name"),
332 'propname' => 'sname',
334 'visible' => FieldsConfig
::NOBODY
,
335 'position' => -1, //not a db field
336 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
,
337 'list_visible' => true,
340 'list_adh_contribstatus' => array(
341 'label' => _T("State of dues"),
342 'propname' => 'contribstatus',
344 'visible' => FieldsConfig
::NOBODY
,
345 'position' => -1, //not a db field
346 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
,
347 'list_visible' => true,