dolibarr 24.0.0-beta
fieldinfos.class.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3 * Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
4 * Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
5 * Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
6 * Copyright (C) 2009-2012 Laurent Destailleur <eldy@users.sourceforge.net>
7 * Copyright (C) 2009-2012 Regis Houssin <regis.houssin@inodbox.com>
8 * Copyright (C) 2013 Florian Henry <forian.henry@open-concept.pro>
9 * Copyright (C) 2015 Charles-Fr BENKE <charles.fr@benke.fr>
10 * Copyright (C) 2016 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
11 * Copyright (C) 2017 Nicolas ZABOURI <info@inovea-conseil.com>
12 * Copyright (C) 2018-2022 Frédéric France <frederic.france@netlogic.fr>
13 * Copyright (C) 2022 Antonin MARCHAL <antonin@letempledujeu.fr>
14 *
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 3 of the License, or
18 * (at your option) any later version.
19 *
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with this program. If not, see <https://www.gnu.org/licenses/>.
27 */
28
40{
44 public $object = null;
45
49 public $mode = '';
50
54 public $fieldType = self::FIELD_TYPE_OBJECT;
55
59 public $key = '';
60
75 public $originType = '';
76
80 public $type = '';
81
85 public $nameInClass = null;
86
90 public $nameInTable = null;
91
95 public $label = '';
96
100 public $langFile = '';
101
105 public $picto = '';
106
110 public $position = 0;
111
115 public $required = false;
116
120 public $visible = true;
121
125 public $showOnHeader = false;
126
130 public $editable = true;
131
135 public $alwaysEditable = null;
136
140 public $defaultValue = '';
141
145 public $minLength = null;
146
150 public $maxLength = null;
151
155 public $minValue = null;
156
160 public $maxValue = null;
161
165 public $size = '';
166
170 public $options = array();
171
175 public $emptyValues = array();
176
180 public $getPostCheck = '';
181
185 public $css = '';
186
190 public $tdCss = '';
191
195 public $viewCss = '';
196
200 public $listCss = '';
201
205 public $inputPlaceholder = '';
206
210 public $help = '';
211
215 public $comment = '';
216
220 public $aiPrompt = '';
221
225 public $showOnComboBox = false;
226
230 public $printable = false;
231
235 public $showintooltip = false;
236
240 public $emptyOnClone = false;
241
245 public $unique = false;
246
250 public $computed = '';
251
255 public $validateField = false;
256
260 public $copyToClipboard = 0;
261
265 public $inputDisabled = false;
266
270 public $inputAutofocus = false;
271
275 public $multiInput = false;
276
280 public $listHelp = '';
281
285 public $listTotalizable = false;
286
290 public $listChecked = true;
291
295 public $sqlAlias = null;
296
300 public $optionsSqlDependencyValue = null;
301
305 public $optionsSqlPage = null;
306
310 public $optionsSqlOffset = null;
311
315 public $optionsSqlLimit = null;
316
320 public $getNameUrlParams = null;
321
325 public $otherParams = array();
326
327
328 const FIELD_TYPE_OBJECT = 0;
329 const FIELD_TYPE_EXTRA_FIELD = 1;
330}
Class to stock field infos.