|
dolibarr 18.0.8
|
This class help to create item for class formSetup. More...
Public Member Functions | |
| __construct ($confKey) | |
| Constructor. | |
| loadValueFromConf () | |
| load conf value from databases | |
| reloadValueFromConf () | |
| reload conf value from databases is an aliase of loadValueFromConf | |
| saveConfValue () | |
| Save const value based on htdocs/core/actions_setmoduleoptions.inc.php. | |
| setSaveCallBack (callable $callBack) | |
| Set an override function for saving data. | |
| setValueFromPostCallBack (callable $callBack) | |
| Set an override function for get data from post. | |
| setValueFromPost () | |
| Save const value based on htdocs/core/actions_setmoduleoptions.inc.php. | |
| getHelpText () | |
| Get help text or generate it. | |
| getNameText () | |
| Get field name text or generate it. | |
| generateInputField () | |
| generate input field | |
| generateInputFieldText () | |
| generatec default input field | |
| generateInputFieldTextarea () | |
| generate input field for textarea | |
| generateInputFieldHtml () | |
| generate input field for html | |
| generateInputFieldCategories () | |
| generate input field for categories | |
| generateInputFieldEmailTemplate () | |
| generate input field for email template selector | |
| generateInputFieldSecureKey () | |
| generate input field for secure key | |
| generateInputFieldMultiSelect () | |
| generateInputFieldSelect () | |
| generateInputFieldSelectUser () | |
| getType () | |
| get the type : used for old module builder setup conf style conversion and tests because this two class will quickly evolve it's important to not set or get directly $this->type (will be protected) so this method exist to be sure we can manage evolution easily | |
| setTypeFromTypeString ($type) | |
| set the type from string : used for old module builder setup conf style conversion and tests because this two class will quickly evolve it's important to not set directly $this->type (will be protected) so this method exist to be sure we can manage evolution easily | |
| setErrors ($errors) | |
| Add error. | |
| generateOutputField () | |
| generateOutputField | |
| generateOutputFieldMultiSelect () | |
| generateOutputFieldMultiSelect | |
| generateOutputFieldColor () | |
| generateOutputFieldColor | |
| generateInputFieldColor () | |
| generateInputFieldColor | |
| generateOutputFieldSelect () | |
| generateOutputFieldSelect | |
| generateOutputFieldSelectUser () | |
| generateOutputFieldSelectUser | |
| setAsString () | |
| Set type of input as string. | |
| setAsColor () | |
| Set type of input as color. | |
| setAsTextarea () | |
| Set type of input as textarea. | |
| setAsHtml () | |
| Set type of input as html editor. | |
| setAsEmailTemplate ($templateType) | |
| Set type of input as emailtemplate selector. | |
| setAsThirdpartyType () | |
| Set type of input as thirdparty_type selector. | |
| setAsYesNo () | |
| Set type of input as Yes. | |
| setAsSecureKey () | |
| Set type of input as secure key. | |
| setAsProduct () | |
| Set type of input as product. | |
| setAsCategory ($catType) | |
| Set type of input as a category selector TODO add default value. | |
| setAsTitle () | |
| Set type of input as a simple title. | |
| setAsMultiSelect ($fieldOptions) | |
| Set type of input as a simple title. | |
| setAsSelect ($fieldOptions) | |
| Set type of input as a simple title. | |
| setAsSelectUser () | |
| Set type of input as a simple title. | |
Public Attributes | |
| $nameText = false | |
| $helpText = '' | |
| $fieldValue | |
| $defaultFieldValue = null | |
| $rank = 0 | |
| $saveCallBack | |
| $setValueFromPostCallBack | |
This class help to create item for class formSetup.
Definition at line 576 of file html.formsetup.class.php.
| FormSetupItem::__construct | ( | $confKey | ) |
Constructor.
| string | $confKey | the conf key used in database |
Definition at line 653 of file html.formsetup.class.php.
References loadValueFromConf().
| FormSetupItem::generateInputField | ( | ) |
generate input field
Definition at line 821 of file html.formsetup.class.php.
References type.
| FormSetupItem::generateInputFieldCategories | ( | ) |
generate input field for categories
Definition at line 925 of file html.formsetup.class.php.
References img_picto(), and type.
| FormSetupItem::generateInputFieldColor | ( | ) |
| FormSetupItem::generateInputFieldEmailTemplate | ( | ) |
generate input field for email template selector
Definition at line 942 of file html.formsetup.class.php.
References type.
| FormSetupItem::generateInputFieldHtml | ( | ) |
generate input field for html
Definition at line 913 of file html.formsetup.class.php.
| FormSetupItem::generateInputFieldMultiSelect | ( | ) |
Definition at line 993 of file html.formsetup.class.php.
| FormSetupItem::generateInputFieldSecureKey | ( | ) |
generate input field for secure key
Definition at line 974 of file html.formsetup.class.php.
References dolJSToSetRandomPassword(), and GETPOST().
| FormSetupItem::generateInputFieldSelect | ( | ) |
Definition at line 1007 of file html.formsetup.class.php.
| FormSetupItem::generateInputFieldSelectUser | ( | ) |
Definition at line 1015 of file html.formsetup.class.php.
| FormSetupItem::generateInputFieldText | ( | ) |
generatec default input field
Definition at line 891 of file html.formsetup.class.php.
| FormSetupItem::generateInputFieldTextarea | ( | ) |
generate input field for textarea
Definition at line 901 of file html.formsetup.class.php.
References dol_htmlentities().
| FormSetupItem::generateOutputField | ( | ) |
generateOutputField
Definition at line 1072 of file html.formsetup.class.php.
References dol_nl2br(), and type.
| FormSetupItem::generateOutputFieldColor | ( | ) |
| FormSetupItem::generateOutputFieldMultiSelect | ( | ) |
generateOutputFieldMultiSelect
Definition at line 1169 of file html.formsetup.class.php.
| FormSetupItem::generateOutputFieldSelect | ( | ) |
| FormSetupItem::generateOutputFieldSelectUser | ( | ) |
generateOutputFieldSelectUser
Definition at line 1228 of file html.formsetup.class.php.
| FormSetupItem::getHelpText | ( | ) |
Get help text or generate it.
Definition at line 801 of file html.formsetup.class.php.
| FormSetupItem::getNameText | ( | ) |
Get field name text or generate it.
Definition at line 811 of file html.formsetup.class.php.
| FormSetupItem::getType | ( | ) |
get the type : used for old module builder setup conf style conversion and tests because this two class will quickly evolve it's important to not set or get directly $this->type (will be protected) so this method exist to be sure we can manage evolution easily
Definition at line 1027 of file html.formsetup.class.php.
| FormSetupItem::loadValueFromConf | ( | ) |
load conf value from databases
Definition at line 675 of file html.formsetup.class.php.
Referenced by __construct().
| FormSetupItem::reloadValueFromConf | ( | ) |
reload conf value from databases is an aliase of loadValueFromConf
Definition at line 692 of file html.formsetup.class.php.
| FormSetupItem::saveConfValue | ( | ) |
Save const value based on htdocs/core/actions_setmoduleoptions.inc.php.
Definition at line 703 of file html.formsetup.class.php.
References dolibarr_set_const(), and type.
| FormSetupItem::setAsCategory | ( | $catType | ) |
Set type of input as a category selector TODO add default value.
| int | $catType | Type of category ('customer', 'supplier', 'contact', 'product', 'member'). Old mode (0, 1, 2, ...) is deprecated. |
Definition at line 1348 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsColor | ( | ) |
Set type of input as color.
Definition at line 1257 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsEmailTemplate | ( | $templateType | ) |
Set type of input as emailtemplate selector.
| string | $templateType | email template type |
Definition at line 1291 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsHtml | ( | ) |
Set type of input as html editor.
Definition at line 1279 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsMultiSelect | ( | $fieldOptions | ) |
Set type of input as a simple title.
No data to store
| array | $fieldOptions | A table of field options |
Definition at line 1372 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsProduct | ( | ) |
Set type of input as product.
Definition at line 1335 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsSecureKey | ( | ) |
Set type of input as secure key.
Definition at line 1324 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsSelect | ( | $fieldOptions | ) |
Set type of input as a simple title.
No data to store
| array | $fieldOptions | A table of field options |
Definition at line 1388 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsSelectUser | ( | ) |
Set type of input as a simple title.
No data to store
Definition at line 1403 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsString | ( | ) |
Set type of input as string.
Definition at line 1246 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsTextarea | ( | ) |
Set type of input as textarea.
Definition at line 1268 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsThirdpartyType | ( | ) |
Set type of input as thirdparty_type selector.
Definition at line 1302 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsTitle | ( | ) |
Set type of input as a simple title.
No data to store
Definition at line 1359 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsYesNo | ( | ) |
Set type of input as Yes.
Definition at line 1313 of file html.formsetup.class.php.
References type.
| FormSetupItem::setErrors | ( | $errors | ) |
Add error.
| array | string | $errors | the error text |
Definition at line 1054 of file html.formsetup.class.php.
| FormSetupItem::setSaveCallBack | ( | callable | $callBack | ) |
Set an override function for saving data.
| callable | $callBack | a callable function |
Definition at line 742 of file html.formsetup.class.php.
| FormSetupItem::setTypeFromTypeString | ( | $type | ) |
set the type from string : used for old module builder setup conf style conversion and tests because this two class will quickly evolve it's important to not set directly $this->type (will be protected) so this method exist to be sure we can manage evolution easily
| string | $type | possible values based on old module builder setup : 'string', 'textarea', 'category:'.Categorie\TYPE_CUSTOMER', 'emailtemplate', 'thirdparty_type' |
Definition at line 1041 of file html.formsetup.class.php.
References type.
| FormSetupItem::setValueFromPost | ( | ) |
Save const value based on htdocs/core/actions_setmoduleoptions.inc.php.
Definition at line 761 of file html.formsetup.class.php.
| FormSetupItem::setValueFromPostCallBack | ( | callable | $callBack | ) |
Set an override function for get data from post.
| callable | $callBack | a callable function |
Definition at line 752 of file html.formsetup.class.php.