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
34 * @link http://galette.tuxfamily.org
35 * @since 0.7.2.8 - 2012-12-18
38 use Galette\Entity\FieldsConfig
;
39 use Galette\Entity\FieldsCategories
;
41 $members_fields = array(
43 'label' => _T("Member number:"),
46 'visible' => FieldsConfig
::NOBODY
,
48 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
,
49 'list_visible' => true,
53 'label' => _T("Status:"),
54 'propname' => 'status',
56 'visible' => FieldsConfig
::STAFF
,
58 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
,
59 'list_visible' => true,
63 'label' => _T("Name:"),
66 'visible' => FieldsConfig
::USER_WRITE
,
68 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
70 'prenom_adh' => array(
71 'label' => _T("First name:"),
72 'propname' => 'surname',
74 'visible' => FieldsConfig
::USER_WRITE
,
76 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
78 'societe_adh' => array(
79 'label' => _T("Company:"),
80 'propname' => 'company_name',
82 'visible' => FieldsConfig
::USER_WRITE
,
84 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
86 'pseudo_adh' => array(
87 'label' => _T("Nickname:"),
88 'propname' => 'nickname',
90 'visible' => FieldsConfig
::USER_WRITE
,
92 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
,
93 'list_visible' => true,
97 'label' => _T("Title:"),
98 'propname' => 'title',
100 'visible' => FieldsConfig
::USER_WRITE
,
102 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
105 'label' => _T("Birth date:"),
106 'propname' => 'birthdate',
108 'visible' => FieldsConfig
::USER_WRITE
,
110 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
113 'label' => _T("Gender:"),
114 'propname' => 'gender',
116 'visible' => FieldsConfig
::USER_WRITE
,
118 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
120 'adresse_adh' => array(
121 'label' => _T("Address:"),
122 'propname' => 'address',
124 'visible' => FieldsConfig
::USER_WRITE
,
126 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
128 /** TODO remove second address... */
129 'adresse2_adh' => array(
130 'label' => _T("Address (continuation)"),
131 'propname' => 'address_continuation',
133 'visible' => FieldsConfig
::USER_WRITE
,
135 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
138 'label' => _T("Zip Code:"),
139 'propname' => 'zipcode',
141 'visible' => FieldsConfig
::USER_WRITE
,
143 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
145 'ville_adh' => array(
146 'label' => _T("City:"),
147 'propname' => 'town',
149 'visible' => FieldsConfig
::USER_WRITE
,
151 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
154 'label' => _T("Country:"),
155 'propname' => 'country',
157 'visible' => FieldsConfig
::USER_WRITE
,
159 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
162 'label' => _T("Phone:"),
163 'propname' => 'phone',
165 'visible' => FieldsConfig
::USER_WRITE
,
167 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
170 'label' => _T("Mobile phone:"),
173 'visible' => FieldsConfig
::USER_WRITE
,
175 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
177 'email_adh' => array(
178 'label' => _T("E-Mail:"),
179 'propname' => 'email',
181 'visible' => FieldsConfig
::USER_WRITE
,
183 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
186 'label' => _T("Website:"),
187 'propname' => 'website',
189 'visible' => FieldsConfig
::USER_WRITE
,
191 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
194 'label' => _T("ICQ:"),
197 'visible' => FieldsConfig
::NOBODY
,
199 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
202 'label' => _T("MSN:"),
205 'visible' => FieldsConfig
::NOBODY
,
207 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
209 'jabber_adh' => array(
210 'label' => _T("Jabber:"),
211 'propname' => 'jabber',
213 'visible' => FieldsConfig
::USER_WRITE
,
215 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
218 'label' => _T("Other information (admin):"),
219 'propname' => 'others_infos_admin',
221 'visible' => FieldsConfig
::STAFF
,
223 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
225 'info_public_adh' => array(
226 'label' => _T("Other information:"),
227 'propname' => 'others_infos',
229 'visible' => FieldsConfig
::USER_WRITE
,
231 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
234 'label' => _T("Profession:"),
237 'visible' => FieldsConfig
::USER_WRITE
,
239 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
241 'login_adh' => array(
242 'label' => _T("Username:"),
243 'propname' => 'login',
245 'visible' => FieldsConfig
::USER_WRITE
,
247 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
250 'label' => _T("Password:"),
251 'propname' => 'password',
253 'visible' => FieldsConfig
::USER_WRITE
,
255 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
257 'date_crea_adh' => array(
258 'label' => _T("Creation date:"),
259 'propname' => 'creation_date',
261 'visible' => FieldsConfig
::STAFF
,
263 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
265 'date_modif_adh' => array(
266 'label' => _T("Modification date:"),
267 'propname' => 'modification_date',
269 'visible' => FieldsConfig
::USER_WRITE
,
271 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
,
272 'list_visible' => true,
275 'activite_adh' => array(
276 'label' => _T("Account:"),
277 'propname' => 'active',
279 'visible' => FieldsConfig
::STAFF
,
281 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
283 'bool_admin_adh' => array(
284 'label' => _T("Galette Admin:"),
285 'propname' => 'admin',
287 'visible' => FieldsConfig
::ADMIN
,
289 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
291 'bool_exempt_adh' => array(
292 'label' => _T("Freed of dues:"),
293 'propname' => 'due_free',
295 'visible' => FieldsConfig
::STAFF
,
297 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
299 'bool_display_info' => array(
300 'label' => _T("Be visible in the members list:"),
301 'propname' => 'appears_in_list',
303 'visible' => FieldsConfig
::USER_WRITE
,
305 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
307 'date_echeance' => array(
308 'label' => _T("Due date:"),
309 'propname' => 'due_date',
311 'visible' => FieldsConfig
::STAFF
,
313 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
315 'pref_lang' => array(
316 'label' => _T("Language:"),
317 'propname' => 'language',
319 'visible' => FieldsConfig
::USER_WRITE
,
321 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
323 'lieu_naissance' => array(
324 'label' => _T("Birthplace:"),
325 'propname' => 'birth_place',
327 'visible' => FieldsConfig
::USER_WRITE
,
329 'category' => FieldsCategories
::ADH_CATEGORY_IDENTITY
332 'label' => _T("Id GNUpg (GPG):"),
333 'propname' => 'gnupgid',
335 'visible' => FieldsConfig
::USER_WRITE
,
337 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
339 'fingerprint' => array(
340 'label' => _T("fingerprint:"),
341 'propname' => 'fingerprint',
343 'visible' => FieldsConfig
::NOBODY
,
345 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
347 'parent_id' => array(
348 'label' => _T("Parent:"),
349 'propname' => 'parent',
351 'visible' => FieldsConfig
::NOBODY
,
353 'category' => FieldsCategories
::ADH_CATEGORY_CONTACT
355 'list_adh_name' => array(
356 'label' => _T("Name"),
357 'propname' => 'sname',
359 'visible' => FieldsConfig
::NOBODY
,
360 'position' => -1, //not a db field
361 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
,
362 'list_visible' => true,
365 'list_adh_contribstatus' => array(
366 'label' => _T("State of dues"),
367 'propname' => 'contribstatus',
369 'visible' => FieldsConfig
::NOBODY
,
370 'position' => -1, //not a db field
371 'category' => FieldsCategories
::ADH_CATEGORY_GALETTE
,
372 'list_visible' => true,