Form numeric element
Definition at line 10 of file form/range/abstract.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()
◆ 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 |
( |
|
$key = null , |
|
|
|
$mode = 'raw' |
|
) |
| |
Get the actual value
- Parameters
-
null | string | $key | Null to get both values or string to get only one |
string | $mode | How get the value in case of retriving only one value |
- Returns
- mixed
Definition at line 57 of file form/range/abstract.class.php.
◆ getValue() [2/2]
◆ initValid()
◆ isHidden()
◆ 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() [1/2]
setValue |
( |
|
$value, |
|
|
|
$refill = false , |
|
|
|
$key = null |
|
) |
| |
Set the form element value
- Parameters
-
mixed | $value | The value |
boolean | $refill | Indicate if the value is a refill one |
null | string | $key | Null if set both values or string to set only one value |
Definition at line 36 of file form/range/abstract.class.php.
◆ setValue() [2/2]
setValue |
( |
|
$value, |
|
|
|
$refill = false |
|
) |
| |
|
inherited |
Set the form element value
- Parameters
-
mixed | $value | The value |
boolean | $refill | Indicate if the value is a refill one |
Definition at line 94 of file form/abstract.class.php.
◆ to()
Transform the element to a string to be shown
- Parameters
-
string | $type | The output type |
- Returns
- string
Definition at line 232 of file form/abstract.class.php.
◆ toHtml()
◆ toXul()
◆ $cfg
◆ $customErrors
◆ $valid
The documentation for this class was generated from the following file: