addElement [line 252]
Appends an element to the container (possibly creating it first)
If the first parameter is an instance of HTML_QuickForm2_Node then all other parameters are ignored and the method just calls appendChild(). In the other case the element is first created via HTML_QuickForm2_Factory::createElement() and then added via the same method. This is a convenience method to reduce typing and ease porting from HTML_QuickForm.
Parameters:
appendChild [line 223]
Appends an element to the container
If the element was previously added to the container or to another container, it is first removed there.
Overridden in child classes as:
- HTML_QuickForm2_Container_Group::appendChild()
- Appends an element to the container
Parameters:
arrayMerge [line 191]
array arrayMerge(
array
$a, array
$b)
|
|
Merges two arrays
Merges two arrays like the PHP function array_merge_recursive does, the difference being that existing integer keys will not be renumbered.
Parameters:
count [line 388]
Returns the number of elements in the container
getChildValues [line 112]
getElementById [line 302]
Returns an element if its id is found
Parameters:
getElements [line 208]
Returns an array of this container's elements
getElementsByName [line 318]
array getElementsByName(
string
$name)
|
|
Returns an array of elements which name corresponds to element
Parameters:
getIterator [line 365]
Returns a recursive iterator for the container elements
getJavascriptTriggers [line 494]
getJavascriptValue [line 483]
string getJavascriptValue(
[bool
$inContainer = false])
|
|
Returns Javascript code for getting the element's value
Overrides
HTML_QuickForm2_Node::getJavascriptValue() (Returns Javascript code for getting the element's value)
Parameters:
getRawValue [line 161]
array|null getRawValue(
)
|
|
Returns the container's value without filters applied
The default implementation for Containers is to return an array with contained elements' values. The array is indexed the same way $_GET and $_POST arrays would be for these elements.
Overrides
HTML_QuickForm2_Node::getRawValue() (Returns the element's value without filters applied)
getRecursiveIterator [line 376]
RecursiveIteratorIterator getRecursiveIterator(
[int
$mode = RecursiveIteratorIterator::SELF_FIRST])
|
|
Returns a recursive iterator iterator for the container elements
Parameters:
getValue [line 175]
Returns the container's value, possibly with filters applied
The default implementation for Containers is to return an array with contained elements' values. The array is indexed the same way $_GET and $_POST arrays would be for these elements.
Overrides
HTML_QuickForm2_Node::getValue() (Returns the element's value, possibly with filters applied)
insertBefore [line 338]
persistentFreeze [line 86]
prependsName [line 101]
removeChild [line 272]
Removes the element from this container
If the reference object is not given, the element will be appended.
Overridden in child classes as:
- HTML_QuickForm2_Container_Group::removeChild()
- Removes the element from this container
Parameters:
render [line 459]
setName [line 70]
toggleFrozen [line 76]
updateValue [line 399]
validate [line 414]
__call [line 439]
Appends an element to the container, creating it first
The element will be created via HTML_QuickForm2_Factory::createElement() and then added via the appendChild() method. The element type is deduced from the method name. This is a convenience method to reduce typing.
Parameters:
__toString [line 470]