Public Member Functions | Data Fields | Protected Attributes

Zend_Validate_Identical Class Reference

Inheritance diagram for Zend_Validate_Identical:
Zend_Validate_Abstract Zend_Validate_Interface

Public Member Functions

 __construct ($token=null)
 setToken ($token)
 getToken ()
 isValid ($value)

Data Fields

const NOT_SAME = 'notSame'
const MISSING_TOKEN = 'missingToken'

Protected Attributes

 $_messageTemplates
 $_messageVariables
 $_tokenString
 $_token

Detailed Description

Definition at line 31 of file Identical.php.


Constructor & Destructor Documentation

__construct ( token = null )

Sets validator options

Parameters:
mixed$token
Returns:
void

Definition at line 69 of file Identical.php.


Member Function Documentation

getToken (  )

Retrieve token

Returns:
string

Definition at line 94 of file Identical.php.

isValid ( value )

Defined by Zend_Validate_Interface

Returns true if and only if a token has been set and the provided value matches that token.

Parameters:
mixed$value
Returns:
boolean

Implements Zend_Validate_Interface.

Definition at line 108 of file Identical.php.

setToken ( token )

Set token against which to compare

Parameters:
mixed$token
Returns:
Zend_Validate_Identical

Definition at line 82 of file Identical.php.


Field Documentation

$_messageTemplates [protected]
Initial value:
 array(
        self::NOT_SAME      => "The token '%token%' does not match the given token '%value%'",
        self::MISSING_TOKEN => 'No token was provided to match against',
    )

Reimplemented from Zend_Validate_Abstract.

Definition at line 44 of file Identical.php.

$_messageVariables [protected]
Initial value:
 array(
        'token' => '_tokenString'
    )

Reimplemented from Zend_Validate_Abstract.

Definition at line 52 of file Identical.php.

const NOT_SAME = 'notSame'

Error codes string

Definition at line 37 of file Identical.php.


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