addElement [line 254]
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 225]
Appends an element to the container
If the element was previously added to the container or to another container, it is first removed there.
Parameters:
arrayMerge [line 193]
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 385]
Returns the number of elements in the container
getElementById [line 299]
Returns an element if its id is found
Parameters:
getElements [line 210]
Returns an array of this container's elements
getElementsByName [line 315]
array getElementsByName(
string
$name)
|
|
Returns an array of elements which name corresponds to element
Parameters:
getId [line 108]
getIterator [line 362]
Returns a recursive iterator for the container elements
getName [line 97]
getRecursiveIterator [line 372]
RecursiveIteratorIterator getRecursiveIterator(
)
|
|
Returns a recursive iterator iterator for the container elements
getValue [line 153]
Returns the element's value
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)
insertBefore [line 335]
Inserts an element in the container
If the reference object is not given, the element will be appended.
Parameters:
onAttributeChange [line 76]
persistentFreeze [line 134]
removeChild [line 274]
Removes the element from this container
If the reference object is not given, the element will be appended.
Parameters:
setId [line 113]
setName [line 102]
toggleFrozen [line 124]
updateValue [line 396]
Called when the element needs to update its value from form's data sources
The default behaviour is just to call the updateValue() methods of contained elements, since default Container doesn't have any value itself
Overrides
HTML_QuickForm2_Node::updateValue() (Called when the element needs to update its value from form's data sources)
validate [line 411]
__call [line 436]
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. Camelcases will be converted to underscores and lowercased. This is a convenience method to reduce typing.
Parameters: