SHOW:
|
|
- or go back to the newest paste.
| 1 | $this->add( | |
| 2 | array( | |
| 3 | 'name' => 'employeeid', | |
| 4 | 'required' => true, | |
| 5 | 'filters' => array( | |
| 6 | array('name' => 'Zend\Filter\StringTrim')
| |
| 7 | ), | |
| 8 | 'validators' => array( | |
| 9 | array( | |
| 10 | 'name' => 'Zend\Validator\StringLength', | |
| 11 | 'options' => array( | |
| 12 | 'encoding' => 'UTF-8', | |
| 13 | 'min' => 2, | |
| 14 | 'max' => 20 | |
| 15 | - | ), true |
| 15 | + | ), |
| 16 | 'break_chain_on_failure' => true | |
| 17 | - | array('name' => 'Zend\Validator\Digits', true)
|
| 17 | + | |
| 18 | array('name' => 'Zend\Validator\Digits', 'break_chain_on_failure' => true)
| |
| 19 | ) | |
| 20 | ) | |
| 21 | ); |