__construct (Constructor) [line 177]
addFilter [line 699]
$this addFilter(
callback
$callback, [array
$options = array()])
|
|
Adds a filter
A filter is simply a PHP callback which will be applied to the element value when getValue() is called.
Overridden in child classes as:
- HTML_QuickForm2_Element_InputFile::addFilter()
Parameters:
addRecursiveFilter [line 730]
$this addRecursiveFilter(
callback
$callback, [array
$options = array()])
|
|
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 524]
Adds a validation rule
Parameters:
applyFilter [line 750]
void applyFilter(
mixed
&$value, mixed
$key, array
$filter)
|
|
Helper function for applying filter callback to a value
Parameters:
applyFilters [line 764]
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 585]
generateId [line 200]
string generateId(
string
$elementName)
|
|
Generates an id for the element
Called when an element is created without explicitly given id
Parameters:
getContainer [line 482]
Returns the element containing current
getData [line 271]
Returns the element options
getDataSources [line 492]
getError [line 660]
Returns the error message for the element
getId [line 311]
getJavascriptTriggers [line 683]
getJavascriptValue [line 673]
getLabel [line 381]
Returns the element's label(s)
getName [line 290]
getRawValue [line 353]
getType [line 282]
getValue [line 360]
isRequired [line 596]
Checks whether an element is required
onAttributeChange [line 149]
persistentFreeze [line 435]
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 554]
Removes a validation rule
The method will *not* throw an Exception if the rule wasn't added to the element.
Parameters:
render [line 778]
renderClientRules [line 611]
setContainer [line 455]
setError [line 649]
setId [line 330]
$this setId(
[string
$id = null])
|
|
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 397]
$this setLabel(
string|array
$label)
|
|
Sets the element's label(s)
Parameters:
setName [line 303]
setValue [line 373]
storeId [line 251]
void storeId(
string
$id)
|
|
Stores the explicitly given id to prevent duplicate id generation
Parameters:
toggleFrozen [line 413]
updateValue [line 504]
validate [line 629]