__construct (Constructor) [line 201]
addFilter [line 719]
addRecursiveFilter [line 750]
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 544]
Adds a validation rule
Parameters:
applyFilter [line 770]
void applyFilter(
mixed
&$value, mixed
$key, array
$filter)
|
|
Helper function for applying filter callback to a value
Parameters:
applyFilters [line 784]
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 605]
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 502]
Returns the element containing current
getData [line 291]
Returns the element options
getDataSources [line 512]
getError [line 680]
Returns the error message for the element
getId [line 331]
getJavascriptTriggers [line 703]
getJavascriptValue [line 693]
getLabel [line 401]
Returns the element's label(s)
getName [line 310]
getRawValue [line 373]
getType [line 302]
getValue [line 380]
isRequired [line 616]
Checks whether an element is required
onAttributeChange [line 173]
persistentFreeze [line 455]
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 574]
Removes a validation rule
The method will *not* throw an Exception if the rule wasn't added to the element.
Parameters:
render [line 798]
renderClientRules [line 631]
Adds element's client-side validation rules to a builder object
Parameters:
setContainer [line 475]
setError [line 669]
Sets the error message to the element
Parameters:
setId [line 350]
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 417]
Sets the element's label(s)
Parameters:
setName [line 323]
setValue [line 393]
storeId [line 271]
void storeId(
string
$id)
|
|
Stores the explicitly given id to prevent duplicate id generation
Parameters:
toggleFrozen [line 433]
updateValue [line 524]
validate [line 649]