AnewtValidatorRepeat class

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

Class Overview

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.

Public Methods

__construct($other_control)

Create an AnewtValidatorRepeat instance.

Parameters

$other_control

The other control to compare the value against.

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.

Return value

True if the value is valid, false otherwise.

Private Attributes

$other_control [private]

Reference to the other control.

Inheritance

Base Classes

Inherited members