ZendDbSchema
Schema management for Zend Framework
|
Public Member Functions | |
addIndexValidator (Zend_Validate_Interface $validator, $breakChainOnFailure=false) | |
addForeignKeyValidator (Zend_Validate_Interface $validator, $breakChainOnFailure=false) | |
addColumnValidator (Zend_Validate_Interface $validator, $breakChainOnFailure=false) | |
isValid ($value) | |
Public Member Functions inherited from ZendDbSchema_Validate_Db_Schema_Chain | |
addValidator (Zend_Validate_Interface $validator, $breakChainOnFailure=false) | |
getMessages () | |
getErrors () |
Protected Attributes | |
$_columnValidators = array() | |
$_indexValidators = array() | |
$_foreignKeyValidators = array() | |
Protected Attributes inherited from ZendDbSchema_Validate_Db_Schema_Chain | |
$_validators = array() | |
$_messages = array() | |
$_errors = array() |
Definition at line 29 of file AbstractTable.php.
ZendDbSchema_Validate_Db_Schema_AbstractTable::addColumnValidator | ( | 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 101 of file AbstractTable.php.
ZendDbSchema_Validate_Db_Schema_AbstractTable::addForeignKeyValidator | ( | 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 82 of file AbstractTable.php.
ZendDbSchema_Validate_Db_Schema_AbstractTable::addIndexValidator | ( | 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 63 of file AbstractTable.php.
ZendDbSchema_Validate_Db_Schema_AbstractTable::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 from ZendDbSchema_Validate_Db_Schema_Chain.
Definition at line 118 of file AbstractTable.php.