Zend_Validate_Db_Abstract::__construct
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.
Signature
public function __construct(string
$table,
string
$field,
[string||array
$exclude = NULL,
[Zend_Db_Adapter_Abstract
$adapter = NULL]] )
Parameters
$table
— string- The database table to validate against
$field
— string- The field to check for a match
$exclude
— object- An optional where clause or field/value pair to exclude from the query
$adapter
— Zend_Db_Adapter_Abstract- An optional database adapter to use.