|
dolibarr 24.0.0-beta
|
Class to common sellist field. More...


Public Member Functions | |
| getOptionsParams ($options) | |
| Get all parameters in the options. | |
| getSqlFieldInfo ($fullField) | |
| Get sql info of the full field. | |
| getOptions ($fieldInfos, $key, $addEmptyValue=false, $reload=false, $selectedValues=array()) | |
| Get list of options. | |
Public Member Functions inherited from CommonField | |
| __construct ($db) | |
| Constructor. | |
| clearErrors () | |
| clear errors | |
| errorsToString ($separator=', ') | |
| Method to output saved errors. | |
| isEmptyValue ($fieldInfos, $value, $emptyValues=null) | |
| Check if the value is deemed as empty. | |
| printInputSearchField ($fieldInfos, $key, $value, $keyPrefix='', $keySuffix='', $moreCss='', $moreAttrib='') | |
| Return HTML string to put an input search field into a page. | |
| printInputField ($fieldInfos, $key, $value, $keyPrefix='', $keySuffix='', $moreCss='', $moreAttrib='') | |
| Return HTML string to put an input field into a page. | |
| printOutputField ($fieldInfos, $key, $value, $keyPrefix='', $keySuffix='', $moreCss='', $moreAttrib='') | |
| Return HTML string to show a field into a page. | |
| getInputCss ($fieldInfos, $moreCss='', $defaultCss='minwidth400') | |
| Get input CSS. | |
| verifyFieldValue ($fieldInfos, $key, $value) | |
| Verify if the field value is valid. | |
| verifyPostFieldValue ($fieldInfos, $key, $keyPrefix='', $keySuffix='') | |
| Verify if the field value from GET/POST is valid. | |
| getPostFieldValue ($fieldInfos, $key, $defaultValue=null, $keyPrefix='', $keySuffix='') | |
| Get field value from GET/POST. | |
| getPostSearchFieldValue ($fieldInfos, $key, $defaultValue=null, $keyPrefix='', $keySuffix='') | |
| Get search field value from GET/POST. | |
| sqlFilterSearchField ($fieldInfos, $key, $value) | |
| Get sql filter for search field. | |
Additional Inherited Members | |
Static Public Member Functions inherited from CommonField | |
| static | setForm (&$form) |
| Set form used for print the field. | |
| static | setValidator (&$validator) |
| Set validator used for check the field value. | |
Class to common sellist field.
Definition at line 31 of file commonsellistfield.class.php.
| CommonSellistField::getOptions | ( | $fieldInfos, | |
| $key, | |||
| $addEmptyValue = false, | |||
| $reload = false, | |||
| $selectedValues = array() ) |
Get list of options.
| FieldInfos | $fieldInfos | Array of properties for field to show |
| string | $key | Key of field |
| bool | $addEmptyValue | Add also empty value if needed |
| bool | $reload | Force reload options |
| string|array<int,string> | $selectedValues Only selected values |
Reimplemented in ChkbxlstField, and SellistField.
Definition at line 205 of file commonsellistfield.class.php.
References $conf, $object, dol_syslog(), getDolGlobalInt(), getOptionsParams(), and string.
| CommonSellistField::getOptionsParams | ( | $options | ) |
Get all parameters in the options.
| array<string,mixed> | $options Options of the field |
Definition at line 74 of file commonsellistfield.class.php.
References getSqlFieldInfo(), and string.
Referenced by getOptions(), ChkbxlstField\printOutputField(), SellistField\printOutputField(), ChkbxlstField\verifyFieldValue(), and SellistField\verifyFieldValue().
| CommonSellistField::getSqlFieldInfo | ( | $fullField | ) |
Get sql info of the full field.
| string | $fullField | Full field (ex: p.test AS label or f(a,b,c) AS label) |
Definition at line 175 of file commonsellistfield.class.php.
Referenced by getOptionsParams().