dolibarr 19.0.3
|
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 () | |
generateInputFieldMultiSelect | |
generateInputFieldSelect () | |
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 582 of file html.formsetup.class.php.
FormSetupItem::__construct | ( | $confKey | ) |
Constructor.
string | $confKey | the conf key used in database |
Definition at line 659 of file html.formsetup.class.php.
References loadValueFromConf().
FormSetupItem::generateInputField | ( | ) |
generate input field
Definition at line 838 of file html.formsetup.class.php.
References type.
FormSetupItem::generateInputFieldCategories | ( | ) |
generate input field for categories
Definition at line 947 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 964 of file html.formsetup.class.php.
References type.
FormSetupItem::generateInputFieldHtml | ( | ) |
generate input field for html
Definition at line 935 of file html.formsetup.class.php.
FormSetupItem::generateInputFieldMultiSelect | ( | ) |
generateInputFieldMultiSelect
Definition at line 1019 of file html.formsetup.class.php.
FormSetupItem::generateInputFieldSecureKey | ( | ) |
generate input field for secure key
Definition at line 998 of file html.formsetup.class.php.
References dolJSToSetRandomPassword(), and GETPOST().
FormSetupItem::generateInputFieldSelect | ( | ) |
FormSetupItem::generateInputFieldSelectUser | ( | ) |
Definition at line 1043 of file html.formsetup.class.php.
FormSetupItem::generateInputFieldText | ( | ) |
generatec default input field
Definition at line 909 of file html.formsetup.class.php.
FormSetupItem::generateInputFieldTextarea | ( | ) |
generate input field for textarea
Definition at line 922 of file html.formsetup.class.php.
References dol_htmlentities().
FormSetupItem::generateOutputField | ( | ) |
generateOutputField
Definition at line 1100 of file html.formsetup.class.php.
References dol_nl2br(), and type.
FormSetupItem::generateOutputFieldColor | ( | ) |
FormSetupItem::generateOutputFieldMultiSelect | ( | ) |
generateOutputFieldMultiSelect
Definition at line 1197 of file html.formsetup.class.php.
FormSetupItem::generateOutputFieldSelect | ( | ) |
FormSetupItem::generateOutputFieldSelectUser | ( | ) |
generateOutputFieldSelectUser
Definition at line 1256 of file html.formsetup.class.php.
FormSetupItem::getHelpText | ( | ) |
Get help text or generate it.
Definition at line 812 of file html.formsetup.class.php.
FormSetupItem::getNameText | ( | ) |
Get field name text or generate it.
Definition at line 825 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 1055 of file html.formsetup.class.php.
FormSetupItem::loadValueFromConf | ( | ) |
load conf value from databases
Definition at line 682 of file html.formsetup.class.php.
Referenced by __construct().
FormSetupItem::reloadValueFromConf | ( | ) |
reload conf value from databases is an aliase of loadValueFromConf
Definition at line 700 of file html.formsetup.class.php.
FormSetupItem::saveConfValue | ( | ) |
Save const value based on htdocs/core/actions_setmoduleoptions.inc.php.
Definition at line 711 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 1376 of file html.formsetup.class.php.
References type.
FormSetupItem::setAsColor | ( | ) |
Set type of input as color.
Definition at line 1285 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 1319 of file html.formsetup.class.php.
References type.
FormSetupItem::setAsHtml | ( | ) |
Set type of input as html editor.
Definition at line 1307 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 1400 of file html.formsetup.class.php.
References type.
FormSetupItem::setAsProduct | ( | ) |
Set type of input as product.
Definition at line 1363 of file html.formsetup.class.php.
References type.
FormSetupItem::setAsSecureKey | ( | ) |
Set type of input as secure key.
Definition at line 1352 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 1416 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 1431 of file html.formsetup.class.php.
References type.
FormSetupItem::setAsString | ( | ) |
Set type of input as string.
Definition at line 1274 of file html.formsetup.class.php.
References type.
FormSetupItem::setAsTextarea | ( | ) |
Set type of input as textarea.
Definition at line 1296 of file html.formsetup.class.php.
References type.
FormSetupItem::setAsThirdpartyType | ( | ) |
Set type of input as thirdparty_type selector.
Definition at line 1330 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 1387 of file html.formsetup.class.php.
References type.
FormSetupItem::setAsYesNo | ( | ) |
Set type of input as Yes.
Definition at line 1341 of file html.formsetup.class.php.
References type.
FormSetupItem::setErrors | ( | $errors | ) |
Add error.
array | string | $errors | the error text |
Definition at line 1082 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 750 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 1069 of file html.formsetup.class.php.
References type.
FormSetupItem::setValueFromPost | ( | ) |
Save const value based on htdocs/core/actions_setmoduleoptions.inc.php.
Definition at line 771 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 761 of file html.formsetup.class.php.