|
Moodle
2.2.1
http://www.collinsharper.com
|


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 | |
Definition at line 31 of file Identical.php.
| __construct | ( | $ | token = null | ) |
Sets validator options
| mixed | $token |
Definition at line 70 of file Identical.php.

| getStrict | ( | ) |
Returns the strict parameter
Definition at line 115 of file Identical.php.

| getToken | ( | ) |
Retrieve token
Definition at line 92 of file Identical.php.

| 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.
| mixed | $value | |
| array | $context |
Definition at line 141 of file Identical.php.

| setStrict | ( | $ | strict | ) |
Sets the strict parameter
| Zend_Validate_Identical |
Definition at line 125 of file Identical.php.

| setToken | ( | $ | token | ) |
Set token against which to compare
| mixed | $token |
Definition at line 103 of file Identical.php.

$_messageTemplates [protected] |
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] |
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.