Moodle  2.2.1
http://www.collinsharper.com
Zend_Validate_Identical Class Reference
Inheritance diagram for Zend_Validate_Identical:
Collaboration diagram for Zend_Validate_Identical:

Public Member Functions

 __construct ($token=null)
 getToken ()
 setToken ($token)
 getStrict ()
 setStrict ($strict)
 isValid ($value, $context=null)

Data Fields

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

Protected Attributes

 $_messageTemplates
 $_messageVariables
 $_tokenString
 $_token
 $_strict = true

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 70 of file Identical.php.

Here is the call graph for this function:


Member Function Documentation

getStrict ( )

Returns the strict parameter

Returns:
boolean

Definition at line 115 of file Identical.php.

Here is the caller graph for this function:

getToken ( )

Retrieve token

Returns:
string

Definition at line 92 of file Identical.php.

Here is the caller graph for this function:

isValid ( value,
context = null 
)

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
array$context
Returns:
boolean

Definition at line 141 of file Identical.php.

Here is the call graph for this function:

setStrict ( strict)

Sets the strict parameter

Parameters:
Zend_Validate_Identical

Definition at line 125 of file Identical.php.

Here is the caller graph for this function:

setToken ( token)

Set token against which to compare

Parameters:
mixed$token
Returns:
Zend_Validate_Identical

Definition at line 103 of file Identical.php.

Here is the caller graph for this function:


Field Documentation

$_messageTemplates [protected]
Initial value:
 array(
        self::NOT_SAME      => "The two given tokens do not match",
        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.

$_strict = true [protected]

Definition at line 62 of file Identical.php.

$_token [protected]

Definition at line 61 of file Identical.php.

$_tokenString [protected]

Definition at line 60 of file Identical.php.

const MISSING_TOKEN = 'missingToken'

Definition at line 38 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:
 All Data Structures Namespaces Files Functions Variables Enumerations