AnewtValidatorInteger Class Reference

Validator to only allow integer numbers. More...

List of all members.

Public Member Functions

 __construct ($min=0, $max=null)
 Create a new AnewtValidatorInteger.
 is_valid ($value)
 Checks for validity.

Private Attributes

 $_min
 Minimal value.
 $_max
 Maximal value.


Detailed Description

Validator to only allow integer numbers.

This validator checks whether the value is or looks like an integer and is between the minimum and maximum value.

Definition at line 17 of file numeric.lib.php.


Constructor & Destructor Documentation

AnewtValidatorInteger::__construct ( min = 0,
max = null 
)

Create a new AnewtValidatorInteger.

Parameters:
$min Minimum allowable value. Provide null for no limit. Defaults to 0.
$max Maximum allowable value. Provide null for no limit. Defaults to null.

Definition at line 31 of file numeric.lib.php.


Member Function Documentation

AnewtValidatorInteger::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 42 of file numeric.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