Zend Framework
3.0
|
Public Member Functions | |
add ($elementOrFieldset, array $flags=[]) | |
Add an element or fieldset. | |
has ($elementOrFieldset) | |
Does the fieldset have an element/fieldset by the given name? | |
get ($elementOrFieldset) | |
Retrieve a named element or fieldset. | |
remove ($elementOrFieldset) | |
Remove a named element or fieldset. | |
setPriority ($elementOrFieldset, $priority) | |
Set/change the priority of an element or fieldset. | |
getElements () | |
Retrieve all attached elements. | |
getFieldsets () | |
Retrieve all attached fieldsets. | |
populateValues ($data) | |
Recursively populate value attributes of elements. | |
setObject ($object) | |
Set the object used by the hydrator. | |
getObject () | |
Get the object used by the hydrator. | |
allowObjectBinding ($object) | |
Checks if the object can be set in this fieldset. | |
setHydrator (HydratorInterface $hydrator) | |
Set the hydrator to use when binding an object to the element. | |
getHydrator () | |
Get the hydrator used when binding an object to the element. | |
bindValues (array $values=[]) | |
Bind values to the bound object. | |
allowValueBinding () | |
Checks if this fieldset can bind data. | |
Public Member Functions inherited from ElementInterface | |
setName ($name) | |
Set the name of this element. | |
getName () | |
Retrieve the element name. | |
setOptions ($options) | |
Set options for an element. | |
setOption ($key, $value) | |
Set a single option for an element. | |
getOptions () | |
get the defined options | |
getOption ($option) | |
return the specified option | |
setAttribute ($key, $value) | |
Set a single element attribute. | |
getAttribute ($key) | |
Retrieve a single element attribute. | |
hasAttribute ($key) | |
Return true if a specific attribute is set. | |
setAttributes ($arrayOrTraversable) | |
Set many attributes at once. | |
getAttributes () | |
Retrieve all attributes at once. | |
setValue ($value) | |
Set the value of the element. | |
getValue () | |
Retrieve the element value. | |
setLabel ($label) | |
Set the label (if any) used for this element. | |
getLabel () | |
Retrieve the label (if any) used for this element. | |
setMessages ($messages) | |
Set a list of messages to report when validation fails. | |
getMessages () | |
Get validation error messages, if any. | |
Public Member Functions inherited from ElementPrepareAwareInterface | |
prepareElement (FormInterface $form) | |
Prepare the form element (mostly used for rendering purposes) | |
Public Member Functions inherited from FormFactoryAwareInterface | |
setFormFactory (Factory $factory) | |
Compose a form factory into the object. | |
add | ( | $elementOrFieldset, | |
array | $flags = [] |
||
) |
Add an element or fieldset.
$flags could contain metadata such as the alias under which to register the element or fieldset, order in which to prioritize it, etc.
array | \Traversable | ElementInterface | $elementOrFieldset | Typically, only allow objects implementing ElementInterface; however, keeping it flexible to allow a factory-based form implementation as well |
array | $flags |
allowObjectBinding | ( | $object | ) |
Checks if the object can be set in this fieldset.
$object |
Implemented in Fieldset, and Collection.
allowValueBinding | ( | ) |
bindValues | ( | array | $values = [] | ) |
Bind values to the bound object.
array | $values |
Implemented in Fieldset, Form, and Collection.
get | ( | $elementOrFieldset | ) |
Retrieve a named element or fieldset.
string | $elementOrFieldset |
Implemented in Fieldset.
getElements | ( | ) |
Retrieve all attached elements.
Storage is an implementation detail of the concrete class.
Implemented in Fieldset.
getFieldsets | ( | ) |
Retrieve all attached fieldsets.
Storage is an implementation detail of the concrete class.
Implemented in Fieldset.
getHydrator | ( | ) |
Get the hydrator used when binding an object to the element.
Implemented in Fieldset.
getObject | ( | ) |
has | ( | $elementOrFieldset | ) |
Does the fieldset have an element/fieldset by the given name?
string | $elementOrFieldset |
Implemented in Fieldset.
populateValues | ( | $data | ) |
Recursively populate value attributes of elements.
array | \Traversable | $data |
Implemented in Fieldset, and Collection.
remove | ( | $elementOrFieldset | ) |
Remove a named element or fieldset.
string | $elementOrFieldset |
Implemented in Fieldset.
setHydrator | ( | HydratorInterface | $hydrator | ) |
Set the hydrator to use when binding an object to the element.
HydratorInterface | $hydrator |
setObject | ( | $object | ) |
Set the object used by the hydrator.
$object |
Implemented in Fieldset, and Collection.
setPriority | ( | $elementOrFieldset, | |
$priority | |||
) |
Set/change the priority of an element or fieldset.
string | $elementOrFieldset | |
int | $priority |
Implemented in Fieldset.