## Class mr_server_validate_token

Description

MR Server Validate Token

- author: Mark Nielsen

Located in /server/validate/token.php (line 52)

    Zend_Validate_Abstract
       |
       --mr_server_validate_token

Class Constant Summary
TOKEN_EMPTY = 'tokenEmpty'
TOKEN_NOT_PASSED = 'tokenNotPassed'
TOKEN_NO_MATCH = 'tokenNoMatch'
Variable Summary
array $_messageTemplates
string $_paramname
string $_token
Method Summary
mr_server_validate_token __construct (string $token, [string $paramname = 'token'])
boolean isValid (Zend_Controller_Request_Http $request)
Variables
array $_messageTemplates = array(
self::TOKEN_EMPTY => "No __token__ configured, web services disabled (The configured __token__ value is empty)",
self::TOKEN_NO_MATCH => "Passed __token__ is invalid: %value%",
self::TOKEN_NOT_PASSED => "Passed __token__ is invalid: NOT PASSED",
) (line 65)

Error message templates

- access: protected

string $_paramname (line 83)

Token parameter name

- access: protected

string $_token (line 76)

The expected token

- access: protected

Methods
Constructor __construct (line 91)

Constructor

- access: public

mr_server_validate_token __construct (string $token, [string $paramname = 'token'])

- string $token: The expected token
- string $paramname: Override the token parameter name

isValid (line 106)

See if the request contains a proper token

- access: public

boolean isValid (Zend_Controller_Request_Http $request)

- Zend_Controller_Request_Http $request: The request to check

Class Constants
TOKEN_EMPTY = 'tokenEmpty' (line 56)

Error constants

TOKEN_NOT_PASSED = 'tokenNotPassed' (line 58)
TOKEN_NO_MATCH = 'tokenNoMatch' (line 57)

Documentation generated on Thu, 28 Jun 2012 16:33:53 -0700 by phpDocumentor 1.4.3