|
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 573 of file html.formsetup.class.php.
| FormSetupItem::__construct | ( | $confKey | ) |
Constructor.
| string | $confKey | the conf key used in database |
Definition at line 650 of file html.formsetup.class.php.
References loadValueFromConf().
| FormSetupItem::generateInputField | ( | ) |
generate input field
Definition at line 818 of file html.formsetup.class.php.
References type.
| FormSetupItem::generateInputFieldCategories | ( | ) |
generate input field for categories
Definition at line 922 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 939 of file html.formsetup.class.php.
References type.
| FormSetupItem::generateInputFieldHtml | ( | ) |
generate input field for html
Definition at line 910 of file html.formsetup.class.php.
| FormSetupItem::generateInputFieldMultiSelect | ( | ) |
Definition at line 990 of file html.formsetup.class.php.
| FormSetupItem::generateInputFieldSecureKey | ( | ) |
generate input field for secure key
Definition at line 971 of file html.formsetup.class.php.
References dolJSToSetRandomPassword(), and GETPOST().
| FormSetupItem::generateInputFieldSelect | ( | ) |
Definition at line 1004 of file html.formsetup.class.php.
| FormSetupItem::generateInputFieldSelectUser | ( | ) |
Definition at line 1012 of file html.formsetup.class.php.
| FormSetupItem::generateInputFieldText | ( | ) |
generatec default input field
Definition at line 888 of file html.formsetup.class.php.
| FormSetupItem::generateInputFieldTextarea | ( | ) |
generate input field for textarea
Definition at line 898 of file html.formsetup.class.php.
References dol_htmlentities().
| FormSetupItem::generateOutputField | ( | ) |
generateOutputField
Definition at line 1069 of file html.formsetup.class.php.
References dol_nl2br(), and type.
| FormSetupItem::generateOutputFieldColor | ( | ) |
| FormSetupItem::generateOutputFieldMultiSelect | ( | ) |
generateOutputFieldMultiSelect
Definition at line 1166 of file html.formsetup.class.php.
| FormSetupItem::generateOutputFieldSelect | ( | ) |
| FormSetupItem::generateOutputFieldSelectUser | ( | ) |
generateOutputFieldSelectUser
Definition at line 1225 of file html.formsetup.class.php.
| FormSetupItem::getHelpText | ( | ) |
Get help text or generate it.
Definition at line 798 of file html.formsetup.class.php.
| FormSetupItem::getNameText | ( | ) |
Get field name text or generate it.
Definition at line 808 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 1024 of file html.formsetup.class.php.
| FormSetupItem::loadValueFromConf | ( | ) |
load conf value from databases
Definition at line 672 of file html.formsetup.class.php.
Referenced by __construct().
| FormSetupItem::reloadValueFromConf | ( | ) |
reload conf value from databases is an aliase of loadValueFromConf
Definition at line 689 of file html.formsetup.class.php.
| FormSetupItem::saveConfValue | ( | ) |
Save const value based on htdocs/core/actions_setmoduleoptions.inc.php.
Definition at line 700 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 1345 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsColor | ( | ) |
Set type of input as color.
Definition at line 1254 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 1288 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsHtml | ( | ) |
Set type of input as html editor.
Definition at line 1276 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 1369 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsProduct | ( | ) |
Set type of input as product.
Definition at line 1332 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsSecureKey | ( | ) |
Set type of input as secure key.
Definition at line 1321 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 1385 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 1400 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsString | ( | ) |
Set type of input as string.
Definition at line 1243 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsTextarea | ( | ) |
Set type of input as textarea.
Definition at line 1265 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsThirdpartyType | ( | ) |
Set type of input as thirdparty_type selector.
Definition at line 1299 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 1356 of file html.formsetup.class.php.
References type.
| FormSetupItem::setAsYesNo | ( | ) |
Set type of input as Yes.
Definition at line 1310 of file html.formsetup.class.php.
References type.
| FormSetupItem::setErrors | ( | $errors | ) |
Add error.
| array | string | $errors | the error text |
Definition at line 1051 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 739 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 1038 of file html.formsetup.class.php.
References type.
| FormSetupItem::setValueFromPost | ( | ) |
Save const value based on htdocs/core/actions_setmoduleoptions.inc.php.
Definition at line 758 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 749 of file html.formsetup.class.php.