ZendDbSchema
Schema management for Zend Framework
 All Classes Namespaces Functions Pages
ZendDbSchema_Validate_Db_Schema_AbstractTable Class Reference
Inheritance diagram for ZendDbSchema_Validate_Db_Schema_AbstractTable:
Collaboration diagram for ZendDbSchema_Validate_Db_Schema_AbstractTable:

List of all members.

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()

Detailed Description

Definition at line 29 of file AbstractTable.php.


Member Function Documentation

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.

Parameters:
Zend_Validate_Interface$validator
boolean$breakChainOnFailure
Returns:
Zend_Validate Provides a fluent interface

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.

Parameters:
Zend_Validate_Interface$validator
boolean$breakChainOnFailure
Returns:
Zend_Validate Provides a fluent interface

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.

Parameters:
Zend_Validate_Interface$validator
boolean$breakChainOnFailure
Returns:
Zend_Validate Provides a fluent interface

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).

Parameters:
mixed$value
Returns:
boolean

Reimplemented from ZendDbSchema_Validate_Db_Schema_Chain.

Definition at line 118 of file AbstractTable.php.


The documentation for this class was generated from the following file: