category OSS
package OSS_Validate
copyright Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland
license New BSD License

 Methods

Constructor

__construct(array $params) : bool | void

$table and $column are required parameters.

Parameters

$params

array

Array of params kontainig table and column

Exceptions

\OSS_Validate_Exception

Returns

boolvoid

Getter method for $_column

getColumn() : string

Returns

string

Getter method for $_table

getTable() : string

Returns

string

Defined by Zend_Validate_Interface

isValid(string $value) : bool

Returns true if and only if $value is unique

Parameters

$value

string

Exceptions

\Doctrine_Exception

Returns

bool

Setter method for $_column

setColumn(\$_column $_column) : void

Parameters

$_column

\$_column

the $_column to set

Setter method for $_table

setTable(\$_table $_table) : void

Parameters

$_table

\$_table

the $_table to set

 Properties

 

The table column to use

$_column : string
 

Error message templates

$_messageTemplates : array
 

The database table to use

$_table : string

 Constants

 

NOT_UNIQUE

NOT_UNIQUE 
 

NO_COLUMN

NO_COLUMN 
 

NO_TABLE

NO_TABLE