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


Public Member Functions | |
| 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='') | |
| 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. | |
| getOptions ($fieldInfos, $key, $addEmptyValue=false, $reload=false, $selectedValues=array()) | |
| Get list of options. | |
Public Member Functions inherited from CommonSellistField | |
| getOptionsParams ($options) | |
| Get all parameters in the options. | |
| getSqlFieldInfo ($fullField) | |
| Get sql info of the full field. | |
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. | |
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 sellist field.
Definition at line 31 of file sellistfield.class.php.
| SellistField::getInputCss | ( | $fieldInfos, | |
| $moreCss = '', | |||
| $defaultCss = '' ) |
Get input CSS.
| FieldInfos | $fieldInfos | Properties of the field |
| string | $moreCss | Value for css to define style/length of field. |
| string | $defaultCss | Default value for css to define style/length of field. |
Reimplemented from CommonField.
Definition at line 173 of file sellistfield.class.php.
Referenced by printInputField(), and printInputSearchField().
| SellistField::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 from CommonSellistField.
Definition at line 302 of file sellistfield.class.php.
Referenced by printInputField(), printInputSearchField(), and printOutputField().
| SellistField::getPostFieldValue | ( | $fieldInfos, | |
| $key, | |||
| $defaultValue = null, | |||
| $keyPrefix = '', | |||
| $keySuffix = '' ) |
Get field value from GET/POST.
| FieldInfos | $fieldInfos | Properties of the field |
| string | $key | Key of field |
| mixed | $defaultValue | Preselected value to show (for date type it must be in timestamp format, for amount or price it must be a php numeric value, for array type must be array) |
| string | $keyPrefix | Prefix string to add into name and id of field (can be used to avoid duplicate names) |
| string | $keySuffix | Suffix string to add into name and id of field (can be used to avoid duplicate names) |
Reimplemented from CommonField.
Definition at line 232 of file sellistfield.class.php.
References GETPOST().
| SellistField::getPostSearchFieldValue | ( | $fieldInfos, | |
| $key, | |||
| $defaultValue = null, | |||
| $keyPrefix = '', | |||
| $keySuffix = '' ) |
Get search field value from GET/POST.
| FieldInfos | $fieldInfos | Properties of the field |
| string | $key | Key of field |
| mixed | $defaultValue | Preselected value to show (for date type it must be in timestamp format, for amount or price it must be a php numeric value, for array type must be array) |
| string | $keyPrefix | Prefix string to add into name and id of field (can be used to avoid duplicate names) |
| string | $keySuffix | Suffix string to add into name and id of field (can be used to avoid duplicate names) |
Reimplemented from CommonField.
Definition at line 256 of file sellistfield.class.php.
References GETPOST().
| SellistField::printInputField | ( | $fieldInfos, | |
| $key, | |||
| $value, | |||
| $keyPrefix = '', | |||
| $keySuffix = '', | |||
| $moreCss = '', | |||
| $moreAttrib = '' ) |
Return HTML string to put an input field into a page.
| FieldInfos | $fieldInfos | Properties of the field |
| string | $key | Key of field |
| mixed | $value | Preselected value to show (for date type it must be in timestamp format, for amount or price it must be a php numeric value, for array type must be array) |
| string | $keyPrefix | Prefix string to add into name and id of field (can be used to avoid duplicate names) |
| string | $keySuffix | Suffix string to add into name and id of field (can be used to avoid duplicate names) |
| string | $moreCss | Value for css to define style/length of field. |
| string | $moreAttrib | To add more attributes on html input tag |
Reimplemented from CommonField.
Definition at line 83 of file sellistfield.class.php.
References $conf, dolPrintHTMLForAttribute(), getDolGlobalString(), getInputCss(), getOptions(), CommonField\isEmptyValue(), and string.
| SellistField::printInputSearchField | ( | $fieldInfos, | |
| $key, | |||
| $value, | |||
| $keyPrefix = '', | |||
| $keySuffix = '', | |||
| $moreCss = '', | |||
| $moreAttrib = '' ) |
Return HTML string to put an input search field into a page.
| FieldInfos | $fieldInfos | Properties of the field |
| string | $key | Key of field |
| mixed | $value | Preselected value to show (for date type it must be in timestamp format, for amount or price it must be a php numeric value, for array type must be array) |
| string | $keyPrefix | Prefix string to add into name and id of field (can be used to avoid duplicate names) |
| string | $keySuffix | Suffix string to add into name and id of field (can be used to avoid duplicate names) |
| string | $moreCss | Value for css to define style/length of field. |
| string | $moreAttrib | To add more attributes on html input tag |
Reimplemented from CommonField.
Definition at line 51 of file sellistfield.class.php.
References $conf, getDolGlobalString(), getInputCss(), and getOptions().
| SellistField::printOutputField | ( | $fieldInfos, | |
| $key, | |||
| $value, | |||
| $keyPrefix = '', | |||
| $keySuffix = '', | |||
| $moreCss = '', | |||
| $moreAttrib = '' ) |
Return HTML string to show a field into a page.
| FieldInfos | $fieldInfos | Properties of the field |
| string | $key | Key of field |
| mixed | $value | Preselected value to show (for date type it must be in timestamp format, for amount or price it must be a php numeric value, for array type must be array) |
| string | $keyPrefix | Prefix string to add into name and id of field (can be used to avoid duplicate names) |
| string | $keySuffix | Suffix string to add into name and id of field (can be used to avoid duplicate names) |
| string | $moreCss | Value for css to define style/length of field. |
| string | $moreAttrib | To add more attributes on html input tag |
Reimplemented from CommonField.
Definition at line 138 of file sellistfield.class.php.
References $c, getOptions(), CommonSellistField\getOptionsParams(), img_object(), CommonField\isEmptyValue(), and string.
| SellistField::sqlFilterSearchField | ( | $fieldInfos, | |
| $key, | |||
| $value ) |
Get sql filter for search field.
| FieldInfos | $fieldInfos | Properties of the field |
| string | $key | Key of field |
| mixed | $value | Preselected value to show (for date type it must be in timestamp format, for amount or price it must be a php numeric value, for array type must be array) |
Reimplemented from CommonField.
Definition at line 278 of file sellistfield.class.php.
| SellistField::verifyFieldValue | ( | $fieldInfos, | |
| $key, | |||
| $value ) |
Verify if the field value is valid.
| FieldInfos | $fieldInfos | Properties of the field |
| string | $key | Key of field |
| mixed | $value | Value to check (for date type it must be in timestamp format, for amount or price it must be a php numeric value, for array type must be array) |
Reimplemented from CommonField.
Definition at line 187 of file sellistfield.class.php.
References CommonSellistField\getOptionsParams(), and CommonField\isEmptyValue().
Referenced by verifyPostFieldValue().
| SellistField::verifyPostFieldValue | ( | $fieldInfos, | |
| $key, | |||
| $keyPrefix = '', | |||
| $keySuffix = '' ) |
Verify if the field value from GET/POST is valid.
| FieldInfos | $fieldInfos | Properties of the field |
| string | $key | Key of field |
| string | $keyPrefix | Prefix string to add into name and id of field (can be used to avoid duplicate names) |
| string | $keySuffix | Suffix string to add into name and id of field (can be used to avoid duplicate names) |
Reimplemented from CommonField.
Definition at line 212 of file sellistfield.class.php.
References GETPOST(), and verifyFieldValue().