__construct (Constructor) [line 201]
addFilter [line 723]
addRecursiveFilter [line 754]
Adds a recursive filter
A filter is simply a PHP callback which will be applied to the element value when getValue() is called. If the element value is an array, for example with selects of type 'multiple', the filter is applied to all values recursively. A filter on a container will not be applied on a container value but propagated to all contained elements instead.
If the element is not a container and its value is not an array the behaviour will be identical to filters added via addFilter().
Overridden in child classes as:
- HTML_QuickForm2_Element_InputFile::addRecursiveFilter()
Parameters:
addRule [line 548]
Adds a validation rule
Parameters:
applyFilter [line 774]
void applyFilter(
mixed
&$value, mixed
$key, array
$filter)
|
|
Helper function for applying filter callback to a value
Parameters:
applyFilters [line 788]
mixed applyFilters(
mixed
$value)
|
|
Applies non-recursive filters on element value
Overridden in child classes as:
- HTML_QuickForm2_Element::applyFilters()
- Applies recursive and non-recursive filters on element value
Parameters:
createRule [line 609]
generateId [line 224]
string generateId(
string
$elementName)
|
|
Generates an id for the element
Called when an element is created without explicitly given id
Parameters:
getContainer [line 506]
Returns the element containing current
getData [line 295]
Returns the element options
getDataSources [line 516]
getError [line 684]
Returns the error message for the element
getId [line 335]
getJavascriptTriggers [line 707]
getJavascriptValue [line 697]
getLabel [line 405]
Returns the element's label(s)
getName [line 314]
getRawValue [line 377]
getType [line 306]
getValue [line 384]
isRequired [line 620]
Checks whether an element is required
onAttributeChange [line 173]
persistentFreeze [line 459]
bool persistentFreeze(
[bool
$persistent = null])
|
|
Changes the element's persistent freeze behaviour
If persistent freeze is on, the element's value will be kept (and submitted) in a hidden field when the element is frozen.
Overridden in child classes as:
- HTML_QuickForm2_Container::persistentFreeze()
Parameters:
removeRule [line 578]
Removes a validation rule
The method will *not* throw an Exception if the rule wasn't added to the element.
Parameters:
render [line 802]
renderClientRules [line 635]
Adds element's client-side validation rules to a builder object
Parameters:
setContainer [line 479]
setError [line 673]
setId [line 354]
Sets the element's id
Please note that elements should always have an id in QuickForm2 and therefore it will not be possible to remove the element's id or set it to an empty value. If id is not explicitly given, it will be autogenerated.
Overridden in child classes as:
- HTML_QuickForm2::setId()
Parameters:
setLabel [line 421]
Sets the element's label(s)
Parameters:
setName [line 327]
setValue [line 397]
storeId [line 275]
void storeId(
string
$id)
|
|
Stores the explicitly given id to prevent duplicate id generation
Parameters:
toggleFrozen [line 437]
updateValue [line 528]
validate [line 653]