package Default

 Methods

Add an element or fieldset

add(array|\Traversable|\Zend\Form\ElementInterface $elementOrFieldset, array $flags = array()) : \Zend\Form\FieldsetInterface

$flags could contain metadata such as the alias under which to register the element or fieldset, order in which to prioritize it, etc.

Parameters

$elementOrFieldset

array\Traversable\Zend\Form\ElementInterface

Typically, only allow objects implementing ElementInterface; however, keeping it flexible to allow a factory-based form implementation as well

$flags

array

Returns

\Zend\Form\FieldsetInterface

Checks if the object can be set in this fieldset

allowObjectBinding($object) : boolean

Parameters

$object

Returns

boolean

Checks if this fieldset can bind data

allowValueBinding() : boolean

Returns

boolean

Bind values to the bound object

bindValues(array $values = array()) : mixed

Parameters

$values

array

Returns

mixed

Retrieve a named element or fieldset

get(string $elementOrFieldset) : \Zend\Form\ElementInterface

Parameters

$elementOrFieldset

string

Returns

\Zend\Form\ElementInterface

Retrieve all attached elements

getElements() : array | \Traversable

Storage is an implementation detail of the concrete class.

Returns

array\Traversable

Retrieve all attached fieldsets

getFieldsets() : array | \Traversable

Storage is an implementation detail of the concrete class.

Returns

array\Traversable

Get the hydrator used when binding an object to the element

getHydrator() : null | \Zend\Stdlib\Hydrator\HydratorInterface

Returns

null\Zend\Stdlib\Hydrator\HydratorInterface

Get the object used by the hydrator

getObject() : mixed

Returns

mixed

Does the fieldset have an element/fieldset by the given name?

has(string $elementOrFieldset) : boolean

Parameters

$elementOrFieldset

string

Returns

boolean

Recursively populate value attributes of elements

populateValues(array|\Traversable $data) : void

Parameters

$data

array\Traversable

Remove a named element or fieldset

remove(string $elementOrFieldset) : \Zend\Form\FieldsetInterface

Parameters

$elementOrFieldset

string

Returns

\Zend\Form\FieldsetInterface

Set the hydrator to use when binding an object to the element

setHydrator(\Zend\Stdlib\Hydrator\HydratorInterface $hydrator) : \Zend\Form\FieldsetInterface

Parameters

$hydrator

\Zend\Stdlib\Hydrator\HydratorInterface

Returns

\Zend\Form\FieldsetInterface

Set the object used by the hydrator

setObject($object) : \Zend\Form\FieldsetInterface

Parameters

$object

Returns

\Zend\Form\FieldsetInterface

Set/change the priority of an element or fieldset

setPriority(string $elementOrFieldset, integer $priority) : \Zend\Form\FieldsetInterface

Parameters

$elementOrFieldset

string

$priority

integer

Returns

\Zend\Form\FieldsetInterface