|
dolibarr
x.y.z
|
This class help you create setup render. More...
Public Member Functions | |
| __construct ($db, $outputLangs=false) | |
| Constructor. More... | |
| generateOutput ($editMode=false) | |
| generateOutput More... | |
| generateTableOutput ($editMode=false) | |
| generateTableOutput More... | |
| saveConfFromPost ($noMessageInUpdate=false) | |
| saveConfFromPost More... | |
| generateLineOutput ($item, $editMode=false) | |
| generateLineOutput More... | |
| addItemsFromParamsArray ($params) | |
| Method used to test module builder convertion to this form usage. More... | |
| addItemFromParams ($confKey, $params) | |
| From old Method was used to test module builder convertion to this form usage. More... | |
| exportItemsAsParamsArray () | |
| Used to export param array for /core/actions_setmoduleoptions.inc.php template Method exists only for manage setup convertion. More... | |
| reloadConfs () | |
| Reload for each item default conf note: this will override custom configuration. More... | |
| newItem ($confKey, $targetItemKey=false, $insertAfterTarget=false) | |
| Create a new item the tagret is useful with hooks : that allow externals modules to add setup items on good place. More... | |
| sortingItems () | |
| Sort items according to rank. More... | |
| getCurentItemMaxRank ($cache=true) | |
| getCurentItemMaxRank More... | |
| setItemMaxRank ($rank) | |
| set new max rank if needed More... | |
| getLineRank ($itemKey) | |
| get item position rank from item key More... | |
| itemSort (FormSetupItem $a, FormSetupItem $b) | |
| uasort callback function to Sort params items More... | |
Static Public Member Functions | |
| static | generateAttributesStringFromArray ($attributes) |
| Generate an attributes string form an input array. More... | |
This class help you create setup render.
Definition at line 22 of file html.formsetup.class.php.
| FormSetup::__construct | ( | $db, | |
$outputLangs = false |
|||
| ) |
Constructor.
Definition at line 88 of file html.formsetup.class.php.
| FormSetup::addItemFromParams | ( | $confKey, | |
| $params | |||
| ) |
From old Method was used to test module builder convertion to this form usage.
| string | $confKey | the conf name to store |
| array | $params | an array of params from old modulBuilder params |
@scrutinizer ignore-deprecated
Definition at line 362 of file html.formsetup.class.php.
| FormSetup::addItemsFromParamsArray | ( | $params | ) |
Method used to test module builder convertion to this form usage.
| array | $params | an array of arrays of params from old modulBuilder params |
Definition at line 345 of file html.formsetup.class.php.
| FormSetup::exportItemsAsParamsArray | ( | ) |
Used to export param array for /core/actions_setmoduleoptions.inc.php template Method exists only for manage setup convertion.
Definition at line 401 of file html.formsetup.class.php.
|
static |
Generate an attributes string form an input array.
| array | $attributes | an array of attributes keys and values, |
Definition at line 112 of file html.formsetup.class.php.
| FormSetup::generateLineOutput | ( | $item, | |
$editMode = false |
|||
| ) |
generateLineOutput
| FormSetupItem | $item | the setup item |
| bool | $editMode | Display as edit mod |
Definition at line 299 of file html.formsetup.class.php.
| FormSetup::generateOutput | ( | $editMode = false | ) |
generateOutput
| bool | $editMode | true will display output on edit mod |
Definition at line 134 of file html.formsetup.class.php.
| FormSetup::generateTableOutput | ( | $editMode = false | ) |
generateTableOutput
| bool | $editMode | true will display output on edit mod |
Definition at line 201 of file html.formsetup.class.php.
| FormSetup::getCurentItemMaxRank | ( | $cache = true | ) |
getCurentItemMaxRank
| bool | $cache | To use cache or not |
Definition at line 491 of file html.formsetup.class.php.
| FormSetup::getLineRank | ( | $itemKey | ) |
get item position rank from item key
| string | $itemKey | the item key |
Definition at line 528 of file html.formsetup.class.php.
| FormSetup::itemSort | ( | FormSetupItem | $a, |
| FormSetupItem | $b | ||
| ) |
uasort callback function to Sort params items
| FormSetupItem | $a | formSetup item |
| FormSetupItem | $b | formSetup item |
Definition at line 544 of file html.formsetup.class.php.
| FormSetup::newItem | ( | $confKey, | |
$targetItemKey = false, |
|||
$insertAfterTarget = false |
|||
| ) |
Create a new item the tagret is useful with hooks : that allow externals modules to add setup items on good place.
| string | $confKey | the conf key used in database |
| string | $targetItemKey | target item used to place the new item beside |
| bool | $insertAfterTarget | insert before or after target item ? |
Definition at line 441 of file html.formsetup.class.php.
| FormSetup::reloadConfs | ( | ) |
Reload for each item default conf note: this will override custom configuration.
Definition at line 420 of file html.formsetup.class.php.
| FormSetup::saveConfFromPost | ( | $noMessageInUpdate = false | ) |
saveConfFromPost
| bool | $noMessageInUpdate | display event message on errors and success |
Definition at line 245 of file html.formsetup.class.php.
| FormSetup::setItemMaxRank | ( | $rank | ) |
set new max rank if needed
| int | $rank | the item rank |
Definition at line 516 of file html.formsetup.class.php.
| FormSetup::sortingItems | ( | ) |