Studyon Minte9.com
ZF 1.0




Chains



Often multiple validations should be applied to some value in a particular order. 

$validator = new Zend_Validate();
$validator->addValidator(new Zend_Validate_StringLength(array('min'=>6, 'max'=>12)))
			->addValidator(new Zend_Validate_Alnum());

$validator->isValid('aaa'); // return false;
$validator->isValid('aaaaaa'); // return true;
$validator->isValid('aaa123'); // return true;
$validator->isValid('aaa_123'); // return false;


http://framework.zend.com/manual/en/zend.validate.validator_chains.html