Zend_Validate_Db_AbstractClass for Database record validation
Located in /Validate/Db/Abstract.php (line 36)
Zend_Validate_Abstract | --Zend_Validate_Db_Abstract
| Class | Description |
|---|---|
Zend_Validate_Db_NoRecordExists
|
Confirms a record does not exist in a table. |
Zend_Validate_Db_RecordExists
|
Confirms a record exists in a table. |
unknown_type
$_adapter
= null (line 77)
Database adapter to use. If null isValid() will use Zend_Db::getInstance instead
mixed
$_exclude
= null (line 70)
string
$_field
= '' (line 65)
array
$_messageTemplates
= array(
string
$_schema
= null (line 55)
string
$_table
= '' (line 60)
Inherited from Zend_Validate_Abstract
Zend_Validate_Abstract::$_defaultTranslator
Zend_Validate_Abstract::$_errors
Zend_Validate_Abstract::$_messageLength
Zend_Validate_Abstract::$_messages
Zend_Validate_Abstract::$_messageVariables
Zend_Validate_Abstract::$_obscureValue
Zend_Validate_Abstract::$_translator
Zend_Validate_Abstract::$_translatorDisabled
Zend_Validate_Abstract::$_value
Constructor __construct (line 95)
Provides basic configuration for use with Zend_Validate_Db Validators Setting $exclude allows a single record to be excluded from matching.
Exclude can either be a String containing a where clause, or an array with `field` and `value` keys to define the where clause added to the sql. A database adapter may optionally be supplied to avoid using the registered default adapter.
The following option keys are supported: 'table' => The database table to validate against 'schema' => The schema keys 'field' => The field to check for a match 'exclude' => An optional where clause or field/value pair to exclude from the query 'adapter' => An optional database adapter to use
getAdapter (line 147)
Returns the set adapter
getExclude (line 174)
Returns the set exclude clause
getField (line 196)
Returns the set field
getSchema (line 240)
Returns the set schema
getTable (line 218)
Returns the set table
setExclude (line 185)
Sets a new exclude clause
setField (line 207)
Sets a new field
setSchema (line 251)
Sets a new schema
setTable (line 229)
Sets a new table
_query (line 263)
Run query and returns matches, or null if no matches are found.
Inherited From Zend_Validate_Abstract
Zend_Validate_Abstract::getDefaultTranslator()
Zend_Validate_Abstract::getErrors()
Zend_Validate_Abstract::getMessageLength()
Zend_Validate_Abstract::getMessages()
Zend_Validate_Abstract::getMessageTemplates()
Zend_Validate_Abstract::getMessageVariables()
Zend_Validate_Abstract::getObscureValue()
Zend_Validate_Abstract::getTranslator()
Zend_Validate_Abstract::hasDefaultTranslator()
Zend_Validate_Abstract::hasTranslator()
Zend_Validate_Abstract::setDefaultTranslator()
Zend_Validate_Abstract::setDisableTranslator()
Zend_Validate_Abstract::setMessage()
Zend_Validate_Abstract::setMessageLength()
Zend_Validate_Abstract::setMessages()
Zend_Validate_Abstract::setObscureValue()
Zend_Validate_Abstract::setTranslator()
Zend_Validate_Abstract::translatorIsDisabled()
Zend_Validate_Abstract::_createMessage()
Zend_Validate_Abstract::_error()
Zend_Validate_Abstract::_setValue()
Zend_Validate_Abstract::__get()
Documentation generated on Mon, 21 Jun 2010 15:05:14 -0400 by phpDocumentor 1.4.3