dolibarr 25.0.0-alpha
dict.php File Reference

Page to administer dictionary data tables. More...

Go to the source code of this file.

Functions

 dictFieldLabel ($value, $tabname='', $tablib='')
 Return the label of a field of a dictionary, translated, to use as title of a column.
 
 dictFieldList ($fieldlist, $obj=null, $tabname='', $context='')
 Show fields in insert/edit mode.
 

Detailed Description

Page to administer dictionary data tables.

Definition in file dict.php.

Function Documentation

◆ dictFieldLabel()

dictFieldLabel ( $value,
$tabname = '',
$tablib = '' )

Return the label of a field of a dictionary, translated, to use as title of a column.

Parameters
string$valueName of field (for example: code, label, taux, country, ...)
string$tabnameName of dictionary table (example: c_tva)
string$tablibLabel key of dictionary (example: DictionaryVAT)
Returns
string Label of field translated

Definition at line 2787 of file dict.php.

◆ dictFieldList()

dictFieldList ( $fieldlist,
$obj = null,
$tabname = '',
$context = '' )

Show fields in insert/edit mode.

Parameters
string[]$fieldlistArray of fields
?Object$objIf we show a particular record, obj is filled with record fields
string$tabnameName of SQL table
''|'add'|'edit'|'hide'$context 'add'=Output field for the "add form", 'edit'=Output field for the "edit form", 'hide'=Output field for the "add form" but we don't want it to be rendered
Returns
string '' or value of entity into table

Definition at line 3005 of file dict.php.

References $mysoc.