Public Member Functions | Data Fields | Protected Attributes

Zend_Validate_LessThan Class Reference

Inheritance diagram for Zend_Validate_LessThan:
Zend_Validate_Abstract Zend_Validate_Interface

Public Member Functions

 __construct ($max)
 getMax ()
 setMax ($max)
 isValid ($value)

Data Fields

const NOT_LESS = 'notLessThan'

Protected Attributes

 $_messageTemplates
 $_messageVariables
 $_max

Detailed Description

Definition at line 36 of file LessThan.php.


Constructor & Destructor Documentation

__construct ( max )

Sets validator options

Parameters:
mixed$max
Returns:
void

Definition at line 68 of file LessThan.php.


Member Function Documentation

getMax (  )

Returns the max option

Returns:
mixed

Definition at line 78 of file LessThan.php.

isValid ( value )

Defined by Zend_Validate_Interface

Returns true if and only if $value is less than max option

Parameters:
mixed$value
Returns:
boolean

Implements Zend_Validate_Interface.

Definition at line 103 of file LessThan.php.

setMax ( max )

Sets the max option

Parameters:
mixed$max
Returns:
Zend_Validate_LessThan Provides a fluent interface

Definition at line 89 of file LessThan.php.


Field Documentation

$_messageTemplates [protected]
Initial value:
 array(
        self::NOT_LESS => "'%value%' is not less than '%max%'"
    )

Reimplemented from Zend_Validate_Abstract.

Definition at line 44 of file LessThan.php.

$_messageVariables [protected]
Initial value:
 array(
        'max' => '_max'
    )

Reimplemented from Zend_Validate_Abstract.

Definition at line 51 of file LessThan.php.


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