Methods

Bind an object to the element

bind(object $object, int $flags) : mixed

Allows populating the object with validated values.

Parameters

$object

object

$flags

int

Returns

mixed

Retrieve the validated data

getData(int $flag) : array | object

By default, retrieves normalized values; pass one of the VALUES_* constants to shape the behavior.

Parameters

$flag

int

Returns

arrayobject

Retrieve input filter

getInputFilter() : \Zend\InputFilter\InputFilterInterface

Validate the form

isValid() : bool

Typically, will proxy to the composed input filter.

Returns

bool

Whether or not to bind values to the bound object when validation succeeds

setBindOnValidate(int $bindOnValidateFlag) : void

Parameters

$bindOnValidateFlag

int

Set data to validate and/or populate elements

setData(array | \ArrayAccess $data) : \Zend\Form\FormInterface

Typically, also passes data on to the composed input filter.

Parameters

$data

array\ArrayAccess

Returns

Set input filter

setInputFilter(\Zend\InputFilter\InputFilterInterface $inputFilter) : \Zend\Form\FormInterface

Set the validation group (set of values to validate)

setValidationGroup() : \Zend\Form\FormInterface

Typically, proxies to the composed input filter

Returns

 Constants

 

BIND_MANUAL

BIND_MANUAL 

 

BIND_ON_VALIDATE

BIND_ON_VALIDATE 

 

VALIDATE_ALL

VALIDATE_ALL 

 

VALUES_AS_ARRAY

VALUES_AS_ARRAY 

 

VALUES_NORMALIZED

VALUES_NORMALIZED 

 

VALUES_RAW

VALUES_RAW