AnewtValidatorRepeat Class Reference

Validator to check for repeated strings, usually for password checking. More...

List of all members.

Public Member Functions

 __construct ($other_control)
 Create an AnewtValidatorRepeat instance.
 is_valid ($value)
 Checks for validity.

Private Attributes

 $other_control
 Reference to the other control.


Detailed Description

Validator to check for repeated strings, usually for password checking.

Add this validator to the second password control, and pass the the first control when creating the AnewtValidatorRepeat instance.

Definition at line 115 of file validator/string.lib.php.


Constructor & Destructor Documentation

AnewtValidatorRepeat::__construct ( other_control  ) 

Create an AnewtValidatorRepeat instance.

Parameters:
$other_control The other control to compare the value against.

Reimplemented from AnewtContainer.

Definition at line 128 of file validator/string.lib.php.


Member Function Documentation

AnewtValidatorRepeat::is_valid ( value  ) 

Checks for validity.

The return value should be true for valid values, and false otherwise.

Parameters:
$value The value to check for validity.
Returns:
True if the value is valid, false otherwise.

Reimplemented from AnewtValidator.

Definition at line 134 of file validator/string.lib.php.


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

Generated on Sun Aug 2 22:54:38 2009 for Anewt by  doxygen 1.5.9