FormLib
[ class tree: FormLib ] [ index: FormLib ] [ all elements ]

Class: RangeValidator

Source Location: /FormLib/RangeValidator.php

Class Overview

Validator
   |
   --RangeValidator

Tests a field value an ensures it falls in a min/max range of numbers.


Author(s):

  • Randy

Version:

  • 0.2

Methods


Inherited Methods

Class: Validator

Validator::errorMessage()
Get an error message that can be shown to the user.
Validator::isValid()
Validates the value the user entered into a field.

Class Details

[line 16]
Tests a field value an ensures it falls in a min/max range of numbers.



Tags:

author:  Randy
version:  0.2


[ Top ]


Class Methods


constructor __construct [line 20]

RangeValidator __construct( $minValue, $maxValue)



Tags:

access:  public


Parameters:

   $minValue  
   $maxValue  

[ Top ]

method errorMessage [line 31]

void errorMessage( $field)



Tags:

access:  public


Overrides Validator::errorMessage() (Get an error message that can be shown to the user.)

Parameters:

   $field  

[ Top ]

method isValid [line 26]

void isValid( &$field)



Tags:

access:  public


Overrides Validator::isValid() (Validates the value the user entered into a field.)

Parameters:

   &$field  

[ Top ]


Documentation generated on Wed, 15 Nov 2006 08:48:08 -0600 by phpDocumentor 1.3.1