|
ZendDbSchema
Schema management for Zend Framework
|
Public Member Functions | |
| addValidator (Zend_Validate_Interface $validator, $breakChainOnFailure=false) | |
| isValid ($value) | |
| getMessages () | |
| getErrors () | |
Protected Attributes | |
| $_validators = array() | |
| $_messages = array() | |
| $_errors = array() | |
| ZendDbSchema_Validate_Db_Schema_Chain::addValidator | ( | Zend_Validate_Interface | $validator, |
$breakChainOnFailure = false |
|||
| ) |
Adds a validator to the end of the chain
If $breakChainOnFailure is true, then if the validator fails, the next validator in the chain, if one exists, will not be executed.
| Zend_Validate_Interface | $validator | |
| boolean | $breakChainOnFailure |
Definition at line 64 of file Chain.php.
Referenced by ZendDbSchema_Validate_Db_Schema_Table_Mysql_Column\__construct(), ZendDbSchema_Validate_Db_Schema_Table_MysqlTable\__construct(), and ZendDbSchema_Validate_Db_Schema_Database_MysqlDatabase\__construct().
| ZendDbSchema_Validate_Db_Schema_Chain::getErrors | ( | ) |
Defined by Zend_Validate_Interface
Returns array of validation failure message codes
| ZendDbSchema_Validate_Db_Schema_Chain::getMessages | ( | ) |
| ZendDbSchema_Validate_Db_Schema_Chain::isValid | ( | $value | ) |
Returns true if and only if $value passes all validations in the chain
Validators are run in the order in which they were added to the chain (FIFO).
| mixed | $value |
Reimplemented in ZendDbSchema_Validate_Db_Schema_AbstractTable.