AnewtValidatorPreg Class Reference

Validator to check a value against a regular expression. More...

List of all members.

Public Member Functions

 __construct ($pattern)
 Create an AnewtValidatorPreg instance.
 is_valid ($value)
 Checks for validity.

Private Attributes

 $_pattern
 The regular expression used in this validator.


Detailed Description

Validator to check a value against a regular expression.

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


Constructor & Destructor Documentation

AnewtValidatorPreg::__construct ( pattern  ) 

Create an AnewtValidatorPreg instance.

Parameters:
$pattern A regular expression to use for validating.

Reimplemented from AnewtContainer.

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


Member Function Documentation

AnewtValidatorPreg::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 83 of file validator/string.lib.php.


Member Data Documentation

AnewtValidatorPreg::$_pattern [private]

The regular expression used in this validator.

Definition at line 58 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