]> git.agnieray.net Git - galette.git/blob - galette/includes/fields_defs/members_fields.php
e72196cc76f0f4960d25f2a2237004e2829eb101
[galette.git] / galette / includes / fields_defs / members_fields.php
1 <?php
2
3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4
5 /**
6 * Member's table fields declarations
7 *
8 * PHP version 5
9 *
10 * Copyright © 2012-2014 The Galette Team
11 *
12 * This file is part of Galette (http://galette.tuxfamily.org).
13 *
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.
18 *
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.
23 *
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/>.
26 *
27 * @category Functions
28 * @package Galette
29 *
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 * @version SVN: $Id$
34 * @link http://galette.tuxfamily.org
35 * @since 0.7.2.8 - 2012-12-18
36 */
37
38 use Galette\Entity\FieldsConfig;
39 use Galette\Entity\FieldsCategories;
40
41 $members_fields = array(
42 'id_adh' => array(
43 'label' => _T("Member number:"),
44 'propname' => 'id',
45 'required' => false,
46 'visible' => FieldsConfig::NOBODY,
47 'position' => 0,
48 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY,
49 'list_visible' => true,
50 'list_position' => 0
51 ),
52 'id_statut' => array(
53 'label' => _T("Status:"),
54 'propname' => 'status',
55 'required' => false,
56 'visible' => FieldsConfig::STAFF,
57 'position' => 27,
58 'category' => FieldsCategories::ADH_CATEGORY_GALETTE,
59 'list_visible' => true,
60 'list_position' => 3
61 ),
62 'nom_adh' => array(
63 'label' => _T("Name:"),
64 'propname' => 'name',
65 'required' => true,
66 'visible' => FieldsConfig::USER_WRITE,
67 'position' => 3,
68 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
69 ),
70 'prenom_adh' => array(
71 'label' => _T("First name:"),
72 'propname' => 'surname',
73 'required' => false,
74 'visible' => FieldsConfig::USER_WRITE,
75 'position' => 4,
76 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
77 ),
78 'societe_adh' => array(
79 'label' => _T("Company:"),
80 'propname' => 'company_name',
81 'required' => false,
82 'visible' => FieldsConfig::USER_WRITE,
83 'position' => 5,
84 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
85 ),
86 'pseudo_adh' => array(
87 'label' => _T("Nickname:"),
88 'propname' => 'nickname',
89 'required' => false,
90 'visible' => FieldsConfig::USER_WRITE,
91 'position' => 6,
92 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY,
93 'list_visible' => true,
94 'list_position' => 2
95 ),
96 'titre_adh' => array(
97 'label' => _T("Title:"),
98 'propname' => 'title',
99 'required' => false,
100 'visible' => FieldsConfig::USER_WRITE,
101 'position' => 1,
102 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
103 ),
104 'ddn_adh' => array(
105 'label' => _T("Birth date:"),
106 'propname' => 'birthdate',
107 'required' => false,
108 'visible' => FieldsConfig::USER_WRITE,
109 'position' => 7,
110 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
111 ),
112 'sexe_adh' => array(
113 'label' => _T("Gender:"),
114 'propname' => 'gender',
115 'required' => false,
116 'visible' => FieldsConfig::USER_WRITE,
117 'position' => 2,
118 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
119 ),
120 'adresse_adh' => array(
121 'label' => _T("Address:"),
122 'propname' => 'address',
123 'required' => true,
124 'visible' => FieldsConfig::USER_WRITE,
125 'position' => 11,
126 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
127 ),
128 /** TODO remove second address... */
129 'adresse2_adh' => array(
130 'label' => _T("Address (continuation)"),
131 'propname' => 'address_continuation',
132 'required' => false,
133 'visible' => FieldsConfig::USER_WRITE,
134 'position' => 12,
135 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
136 ),
137 'cp_adh' => array(
138 'label' => _T("Zip Code:"),
139 'propname' => 'zipcode',
140 'required' => true,
141 'visible' => FieldsConfig::USER_WRITE,
142 'position' => 13,
143 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
144 ),
145 'ville_adh' => array(
146 'label' => _T("City:"),
147 'propname' => 'town',
148 'required' => true,
149 'visible' => FieldsConfig::USER_WRITE,
150 'position' => 14,
151 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
152 ),
153 'pays_adh' => array(
154 'label' => _T("Country:"),
155 'propname' => 'country',
156 'required' => false,
157 'visible' => FieldsConfig::USER_WRITE,
158 'position' => 15,
159 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
160 ),
161 'tel_adh' => array(
162 'label' => _T("Phone:"),
163 'propname' => 'phone',
164 'required' => false,
165 'visible' => FieldsConfig::USER_WRITE,
166 'position' => 16,
167 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
168 ),
169 'gsm_adh' => array(
170 'label' => _T("Mobile phone:"),
171 'propname' => 'gsm',
172 'required' => false,
173 'visible' => FieldsConfig::USER_WRITE,
174 'position' => 17,
175 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
176 ),
177 'email_adh' => array(
178 'label' => _T("E-Mail:"),
179 'propname' => 'email',
180 'required' => false,
181 'visible' => FieldsConfig::USER_WRITE,
182 'position' => 18,
183 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
184 ),
185 'url_adh' => array(
186 'label' => _T("Website:"),
187 'propname' => 'website',
188 'required' => false,
189 'visible' => FieldsConfig::USER_WRITE,
190 'position' => 19,
191 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
192 ),
193 'icq_adh' => array(
194 'label' => _T("ICQ:"),
195 'propname' => 'icq',
196 'required' => false,
197 'visible' => FieldsConfig::NOBODY,
198 'position' => 20,
199 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
200 ),
201 'msn_adh' => array(
202 'label' => _T("MSN:"),
203 'propname' => 'msn',
204 'required' => false,
205 'visible' => FieldsConfig::NOBODY,
206 'position' => 22,
207 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
208 ),
209 'jabber_adh' => array(
210 'label' => _T("Jabber:"),
211 'propname' => 'jabber',
212 'required' => false,
213 'visible' => FieldsConfig::USER_WRITE,
214 'position' => 21,
215 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
216 ),
217 'info_adh' => array(
218 'label' => _T("Other information (admin):"),
219 'propname' => 'others_infos_admin',
220 'required' => false,
221 'visible' => FieldsConfig::STAFF,
222 'position' => 33,
223 'category' => FieldsCategories::ADH_CATEGORY_GALETTE
224 ),
225 'info_public_adh' => array(
226 'label' => _T("Other information:"),
227 'propname' => 'others_infos',
228 'required' => false,
229 'visible' => FieldsConfig::USER_WRITE,
230 'position' => 34,
231 'category' => FieldsCategories::ADH_CATEGORY_GALETTE
232 ),
233 'prof_adh' => array(
234 'label' => _T("Profession:"),
235 'propname' => 'job',
236 'required' => false,
237 'visible' => FieldsConfig::USER_WRITE,
238 'position' => 9,
239 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
240 ),
241 'login_adh' => array(
242 'label' => _T("Username:"),
243 'propname' => 'login',
244 'required' => true,
245 'visible' => FieldsConfig::USER_WRITE,
246 'position' => 30,
247 'category' => FieldsCategories::ADH_CATEGORY_GALETTE
248 ),
249 'mdp_adh' => array(
250 'label' => _T("Password:"),
251 'propname' => 'password',
252 'required' => true,
253 'visible' => FieldsConfig::USER_WRITE,
254 'position' => 31,
255 'category' => FieldsCategories::ADH_CATEGORY_GALETTE
256 ),
257 'date_crea_adh' => array(
258 'label' => _T("Creation date:"),
259 'propname' => 'creation_date',
260 'required' => false,
261 'visible' => FieldsConfig::STAFF,
262 'position' => 32,
263 'category' => FieldsCategories::ADH_CATEGORY_GALETTE
264 ),
265 'date_modif_adh' => array(
266 'label' => _T("Modification date:"),
267 'propname' => 'modification_date',
268 'required' => false,
269 'visible' => FieldsConfig::USER_WRITE,
270 'position' => 35,
271 'category' => FieldsCategories::ADH_CATEGORY_GALETTE,
272 'list_visible' => true,
273 'list_position' => 5
274 ),
275 'activite_adh' => array(
276 'label' => _T("Account:"),
277 'propname' => 'active',
278 'required' => false,
279 'visible' => FieldsConfig::STAFF,
280 'position' => 26,
281 'category' => FieldsCategories::ADH_CATEGORY_GALETTE
282 ),
283 'bool_admin_adh' => array(
284 'label' => _T("Galette Admin:"),
285 'propname' => 'admin',
286 'required' => false,
287 'visible' => FieldsConfig::ADMIN,
288 'position' => 28,
289 'category' => FieldsCategories::ADH_CATEGORY_GALETTE
290 ),
291 'bool_exempt_adh' => array(
292 'label' => _T("Freed of dues:"),
293 'propname' => 'due_free',
294 'required' => false,
295 'visible' => FieldsConfig::STAFF,
296 'position' => 29,
297 'category' => FieldsCategories::ADH_CATEGORY_GALETTE
298 ),
299 'bool_display_info' => array(
300 'label' => _T("Be visible in the members list:"),
301 'propname' => 'appears_in_list',
302 'required' => false,
303 'visible' => FieldsConfig::USER_WRITE,
304 'position' => 25,
305 'category' => FieldsCategories::ADH_CATEGORY_GALETTE
306 ),
307 'date_echeance' => array(
308 'label' => _T("Due date:"),
309 'propname' => 'due_date',
310 'required' => false,
311 'visible' => FieldsConfig::STAFF,
312 'position' => 36,
313 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
314 ),
315 'pref_lang' => array(
316 'label' => _T("Language:"),
317 'propname' => 'language',
318 'required' => false,
319 'visible' => FieldsConfig::USER_WRITE,
320 'position' => 10,
321 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
322 ),
323 'lieu_naissance' => array(
324 'label' => _T("Birthplace:"),
325 'propname' => 'birth_place',
326 'required' => false,
327 'visible' => FieldsConfig::USER_WRITE,
328 'position' => 8,
329 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
330 ),
331 'gpgid' => array(
332 'label' => _T("Id GNUpg (GPG):"),
333 'propname' => 'gnupgid',
334 'required' => false,
335 'visible' => FieldsConfig::USER_WRITE,
336 'position' => 23,
337 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
338 ),
339 'fingerprint' => array(
340 'label' => _T("fingerprint:"),
341 'propname' => 'fingerprint',
342 'required' => false,
343 'visible' => FieldsConfig::NOBODY,
344 'position' => 24,
345 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
346 ),
347 'parent_id' => array(
348 'label' => _T("Parent:"),
349 'propname' => 'parent',
350 'required' => false,
351 'visible' => FieldsConfig::NOBODY,
352 'position' => 25,
353 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
354 ),
355 'list_adh_name' => array(
356 'label' => _T("Name"),
357 'propname' => 'sname',
358 'required' => false,
359 'visible' => FieldsConfig::NOBODY,
360 'position' => -1, //not a db field
361 'category' => FieldsCategories::ADH_CATEGORY_GALETTE,
362 'list_visible' => true,
363 'list_position' => 1
364 ),
365 'list_adh_contribstatus' => array(
366 'label' => _T("State of dues"),
367 'propname' => 'contribstatus',
368 'required' => false,
369 'visible' => FieldsConfig::NOBODY,
370 'position' => -1, //not a db field
371 'category' => FieldsCategories::ADH_CATEGORY_GALETTE,
372 'list_visible' => true,
373 'list_position' => 4
374 )
375 );