Form checkbox element
Definition at line 10 of file checkbox.class.php.
◆ __get()
Get a variable directly from the configuration, with a convenient way $config->name
- Parameters
-
string | $name | Value requested |
- Returns
- mixed The value requested, null if it doesn't exists
Definition at line 263 of file form/abstract.class.php.
◆ __set()
Set a variable directly from the configuration, with a convenient way $config->name = $value
- Parameters
-
string | $name | Value requested |
mixed | $value | Value to set |
Definition at line 273 of file form/abstract.class.php.
◆ __toString()
Transform the element to a string to be shown, with the courant output
- Returns
- string
Definition at line 253 of file form/abstract.class.php.
◆ addCustomError()
◆ addRule()
addRule |
( |
|
$type, |
|
|
|
$prm = null |
|
) |
| |
|
inherited |
Add a rule from the valdiation
- Parameters
-
string | $type | Validation type |
array | $prm | Parameter for this rule |
Definition at line 195 of file form/abstract.class.php.
◆ afterInit()
Initialize the list and group with a sql request if provided
Definition at line 15 of file mulValue.class.php.
◆ beforeInit()
Call just before the configuration initialisation
Definition at line 35 of file object.class.php.
◆ delRule()
◆ getAttr()
Get an attribute
- Parameters
-
string | $name | Attribute name |
- Returns
- mixed|null The attribute or null if not set
Definition at line 48 of file object.class.php.
◆ getCfg()
Get the configuration object
- Returns
- config
Definition at line 67 of file object.class.php.
◆ getDescription()
◆ getErrors()
◆ getName()
◆ getRawValue()
◆ getType()
◆ getValid()
◆ getValidRule()
Get a valide rule config
- Parameters
-
- Returns
- null|mixed Null if not set or configuration if existing
Definition at line 151 of file form/abstract.class.php.
◆ getValue() [1/2]
getValue |
( |
|
$outside = true | ) |
|
|
inherited |
Get the actual value
- Parameters
-
bool | $outside | Indicate if it's coming from outside (ie if it should be htmlDeOut) |
- Returns
- mixed
Definition at line 67 of file mulValue.class.php.
◆ getValue() [2/2]
◆ initValid()
◆ isDisabled()
Check if an option is disabled in configuration
- Parameters
-
Definition at line 198 of file mulValue.class.php.
◆ isHidden()
◆ isInValue()
Check if a value is in the current value
- Parameters
-
- Returns
- bool
Definition at line 185 of file mulValue.class.php.
◆ isValid()
Check if the element is valid by using the valid object
- Returns
- bool True if valid
Definition at line 141 of file form/abstract.class.php.
◆ makeId()
◆ renew()
◆ setAttr()
setAttr |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
|
inherited |
Set an attribute
- Parameters
-
string | $name | Attribute name |
mixed | $value | Attribute value |
Definition at line 58 of file object.class.php.
◆ setDisabled()
◆ setValue()
setValue |
( |
|
$value, |
|
|
|
$refill = false |
|
) |
| |
|
inherited |
◆ to()
◆ toHtml()
◆ toXul()
◆ updateLine()
updateLine |
( |
|
$type, |
|
|
|
$val, |
|
|
|
$line |
|
) |
| |
|
protectedinherited |
Update a line before adding to the out
- Parameters
-
string | $type | Out type |
mixed | $val | The line value |
string | $line | The current line |
- Returns
- string The updated line
Definition at line 167 of file mulValue.class.php.
◆ $cfg
◆ $customErrors
◆ $valid
The documentation for this class was generated from the following file: