dolibarr
17.0.3
|
This class help to create item for class formSetup. More...
Public Member Functions | |
__construct ($confKey) | |
Constructor. More... | |
loadValueFromConf () | |
load conf value from databases More... | |
reloadValueFromConf () | |
reload conf value from databases is an aliase of loadValueFromConf More... | |
saveConfValue () | |
Save const value based on htdocs/core/actions_setmoduleoptions.inc.php. More... | |
setSaveCallBack (callable $callBack) | |
Set an override function for saving data. More... | |
setValueFromPostCallBack (callable $callBack) | |
Set an override function for get data from post. More... | |
setValueFromPost () | |
Save const value based on htdocs/core/actions_setmoduleoptions.inc.php. More... | |
getHelpText () | |
Get help text or generate it. More... | |
getNameText () | |
Get field name text or generate it. More... | |
generateInputField () | |
generate input field More... | |
generateInputFieldText () | |
generatec default input field More... | |
generateInputFieldTextarea () | |
generate input field for textarea More... | |
generateInputFieldHtml () | |
generate input field for html More... | |
generateInputFieldCategories () | |
generate input field for categories More... | |
generateInputFieldEmailTemplate () | |
generate input field for email template selector More... | |
generateInputFieldSecureKey () | |
generate input field for secure key More... | |
generateInputFieldMultiSelect () | |
generateInputFieldSelect () | |
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 More... | |
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 More... | |
setErrors ($errors) | |
Add error. More... | |
generateOutputField () | |
generateOutputFieldMultiSelect () | |
generateOutputFieldColor () | |
generateInputFieldColor () | |
generateOutputFieldSelect () | |
setAsString () | |
Set type of input as string. More... | |
setAsColor () | |
Set type of input as color. More... | |
setAsTextarea () | |
Set type of input as textarea. More... | |
setAsHtml () | |
Set type of input as html editor. More... | |
setAsEmailTemplate ($templateType) | |
Set type of input as emailtemplate selector. More... | |
setAsThirdpartyType () | |
Set type of input as thirdparty_type selector. More... | |
setAsYesNo () | |
Set type of input as Yes. More... | |
setAsSecureKey () | |
Set type of input as secure key. More... | |
setAsProduct () | |
Set type of input as product. More... | |
setAsCategory ($catType) | |
Set type of input as a category selector TODO add default value. More... | |
setAsTitle () | |
Set type of input as a simple title no data to store. More... | |
setAsMultiSelect ($fieldOptions) | |
Set type of input as a simple title no data to store. More... | |
setAsSelect ($fieldOptions) | |
Set type of input as a simple title no data to store. More... | |
Public Attributes | |
$nameText = false | |
$helpText = '' | |
$fieldValue | |
$defaultFieldValue = null | |
$rank = 0 | |
$saveCallBack | |
$setValueFromPostCallBack | |
This class help to create item for class formSetup.
Definition at line 565 of file html.formsetup.class.php.
FormSetupItem::__construct | ( | $confKey | ) |
Constructor.
string | $confKey | the conf key used in database |
Definition at line 642 of file html.formsetup.class.php.
FormSetupItem::generateInputField | ( | ) |
FormSetupItem::generateInputFieldCategories | ( | ) |
generate input field for categories
Definition at line 908 of file html.formsetup.class.php.
FormSetupItem::generateInputFieldColor | ( | ) |
Definition at line 1164 of file html.formsetup.class.php.
FormSetupItem::generateInputFieldEmailTemplate | ( | ) |
generate input field for email template selector
Definition at line 925 of file html.formsetup.class.php.
FormSetupItem::generateInputFieldHtml | ( | ) |
generate input field for html
Definition at line 896 of file html.formsetup.class.php.
FormSetupItem::generateInputFieldMultiSelect | ( | ) |
Definition at line 976 of file html.formsetup.class.php.
FormSetupItem::generateInputFieldSecureKey | ( | ) |
generate input field for secure key
Definition at line 957 of file html.formsetup.class.php.
FormSetupItem::generateInputFieldSelect | ( | ) |
Definition at line 990 of file html.formsetup.class.php.
FormSetupItem::generateInputFieldText | ( | ) |
generatec default input field
Definition at line 874 of file html.formsetup.class.php.
FormSetupItem::generateInputFieldTextarea | ( | ) |
generate input field for textarea
Definition at line 884 of file html.formsetup.class.php.
FormSetupItem::generateOutputField | ( | ) |
Definition at line 1042 of file html.formsetup.class.php.
FormSetupItem::generateOutputFieldColor | ( | ) |
Definition at line 1156 of file html.formsetup.class.php.
FormSetupItem::generateOutputFieldMultiSelect | ( | ) |
Definition at line 1135 of file html.formsetup.class.php.
FormSetupItem::generateOutputFieldSelect | ( | ) |
Definition at line 1173 of file html.formsetup.class.php.
FormSetupItem::getHelpText | ( | ) |
Get help text or generate it.
Definition at line 786 of file html.formsetup.class.php.
FormSetupItem::getNameText | ( | ) |
Get field name text or generate it.
Definition at line 796 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 1002 of file html.formsetup.class.php.
FormSetupItem::loadValueFromConf | ( | ) |
FormSetupItem::reloadValueFromConf | ( | ) |
reload conf value from databases is an aliase of loadValueFromConf
Definition at line 681 of file html.formsetup.class.php.
FormSetupItem::saveConfValue | ( | ) |
Save const value based on htdocs/core/actions_setmoduleoptions.inc.php.
Definition at line 691 of file html.formsetup.class.php.
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 1284 of file html.formsetup.class.php.
References type.
FormSetupItem::setAsColor | ( | ) |
Set type of input as color.
Definition at line 1201 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 1232 of file html.formsetup.class.php.
References type.
FormSetupItem::setAsHtml | ( | ) |
Set type of input as html editor.
Definition at line 1221 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 1308 of file html.formsetup.class.php.
References type.
FormSetupItem::setAsProduct | ( | ) |
Set type of input as product.
Definition at line 1272 of file html.formsetup.class.php.
References type.
FormSetupItem::setAsSecureKey | ( | ) |
Set type of input as secure key.
Definition at line 1262 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 1324 of file html.formsetup.class.php.
References type.
FormSetupItem::setAsString | ( | ) |
Set type of input as string.
Definition at line 1191 of file html.formsetup.class.php.
References type.
FormSetupItem::setAsTextarea | ( | ) |
Set type of input as textarea.
Definition at line 1211 of file html.formsetup.class.php.
References type.
FormSetupItem::setAsThirdpartyType | ( | ) |
Set type of input as thirdparty_type selector.
Definition at line 1242 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 1295 of file html.formsetup.class.php.
References type.
FormSetupItem::setAsYesNo | ( | ) |
Set type of input as Yes.
Definition at line 1252 of file html.formsetup.class.php.
References type.
FormSetupItem::setErrors | ( | $errors | ) |
Add error.
array | string | $errors | the error text |
Definition at line 1026 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 727 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 1015 of file html.formsetup.class.php.
FormSetupItem::setValueFromPost | ( | ) |
Save const value based on htdocs/core/actions_setmoduleoptions.inc.php.
Definition at line 746 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 737 of file html.formsetup.class.php.
string FormSetupItem::$defaultFieldValue = null |
Definition at line 594 of file html.formsetup.class.php.
string FormSetupItem::$fieldValue |
Definition at line 591 of file html.formsetup.class.php.
string FormSetupItem::$helpText = '' |
Definition at line 588 of file html.formsetup.class.php.
string false FormSetupItem::$nameText = false |
Definition at line 585 of file html.formsetup.class.php.
int FormSetupItem::$rank = 0 |
Definition at line 609 of file html.formsetup.class.php.
callable FormSetupItem::$saveCallBack |
Definition at line 615 of file html.formsetup.class.php.
callable FormSetupItem::$setValueFromPostCallBack |
Definition at line 618 of file html.formsetup.class.php.