111. Class

111.1. Zend\Form\Annotation\Validator

Validator annotation

Expects an associative array defining the validator.

Typically, this includes the “name” with an associated string value indicating the validator name or class, and optionally an “options” key with an object/associative array value of options to pass to the validator constructor.

This annotation may be specified multiple times; validators will be added to the validator chain in the order specified.

111.1.1. Methods

111.1.1.1. getValidator

getValidator()

Retrieve the validator specification

Return type:null|array

Project Versions

Table Of Contents

Previous topic

110. Class

Next topic

112. Function

This Page