Class iPhorm_Validator_Identical

Description

Identical Validator

Located in /iPhorm/Validator/Identical.php (line 6)

iPhorm_Validator_Abstract
   |
   --iPhorm_Validator_Identical
Variable Summary
 boolean $_strict
 mixed $_token
Method Summary
 iPhorm_Validator_Identical __construct (mixed $spec)
 boolean getStrict ()
 mixed getToken ()
 boolean isValid (string $value)
 void setStrict (boolean $strict)
 void setToken (mixed $token)
Variables
boolean $_strict = true (line 20)

Whether to check type as well as value

  • access: protected
mixed $_token (line 13)

The token to check

  • access: protected

Inherited Variables

Inherited from iPhorm_Validator_Abstract

iPhorm_Validator_Abstract::$_messages
Methods
Constructor __construct (line 27)

Sets validator options

  • access: public
iPhorm_Validator_Identical __construct (mixed $spec)
  • mixed $spec: Token or array of options
getStrict (line 100)

Get the strict flag

  • access: public
boolean getStrict ()
getToken (line 79)

Get the token

  • access: public
mixed getToken ()
isValid (line 51)

Returns true if the given value is equal to the set value Return false otherwise.

  • access: public
boolean isValid (string $value)
  • string $value
setStrict (line 89)

Set the strict flag

  • access: public
void setStrict (boolean $strict)
  • boolean $strict
setToken (line 69)

Set the token

  • access: public
void setToken (mixed $token)
  • mixed $token

Inherited Methods

Inherited From iPhorm_Validator_Abstract

 iPhorm_Validator_Abstract::addMessage()
 iPhorm_Validator_Abstract::getMessages()

Documentation generated on Thu, 24 Feb 2011 22:19:37 +0000 by phpDocumentor 1.4.3