|
| __construct ($sql) |
|
| setDB ($sql) |
|
| textField ($name, $default_value='', $storage=Conf::EITHER_SETTING, $quoted=true, $attributes=array(), $area=false) |
|
| selectField ($name, $options, $default_value='', $storage=Conf::EITHER_SETTING, $quoted=true, $attributes=array()) |
|
| checkboxField ($name, $label, $default_value=0, $storage=Conf::EITHER_SETTING, $choices=array(0, 1), $attributes=array()) |
|
COREPOS\pos\install\conf\FormFactory::selectField |
( |
|
$name, |
|
|
|
$options, |
|
|
|
$default_value = '' , |
|
|
|
$storage = Conf::EITHER_SETTING , |
|
|
|
$quoted = true , |
|
|
|
$attributes = array() |
|
) |
| |
Render configuration variable as an <select> tag Process any form submissions Write configuration variable to config.php
- Parameters
-
$name | [string] name of the variable |
$options | [array] list of options This can be a keyed array in which case the keys are what is written to config.php and the values are what is shown in the user interface, or it can simply be an array of valid values. |
$default_value | [mixed, default empty string] default value for the setting |
$quoted | [boolean, default true] write value to config.php with single quotes |
- Returns
- [string] html select field
COREPOS\pos\install\conf\FormFactory::textField |
( |
|
$name, |
|
|
|
$default_value = '' , |
|
|
|
$storage = Conf::EITHER_SETTING , |
|
|
|
$quoted = true , |
|
|
|
$attributes = array() , |
|
|
|
$area = false |
|
) |
| |
Render configuration variable as an <input> tag Process any form submissions Write configuration variable to config.php
- Parameters
-
$name | [string] name of the variable |
$default_value | [mixed, default empty string] default value for the setting |
$quoted | [boolean, default true] write value to config.php with single quotes |
$attributes | [array, default empty] array of <input> tag attribute names and values |
- Returns
- [string] html input field
The documentation for this class was generated from the following file:
- pos/is4c-nf/install/conf/FormFactory.php