Moodle  2.2.1
http://www.collinsharper.com
Zend_Validate_LessThan Class Reference
Inheritance diagram for Zend_Validate_LessThan:
Collaboration diagram for Zend_Validate_LessThan:

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 33 of file LessThan.php.


Constructor & Destructor Documentation

__construct ( max)

Sets validator options

Parameters:
mixed | Zend_Config$max
Returns:
void

Definition at line 64 of file LessThan.php.

Here is the call graph for this function:


Member Function Documentation

getMax ( )

Returns the max option

Returns:
mixed

Definition at line 87 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 112 of file LessThan.php.

Here is the call graph for this function:

setMax ( max)

Sets the max option

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

Definition at line 98 of file LessThan.php.

Here is the caller graph for this function:


Field Documentation

$_max [protected]

Definition at line 56 of file LessThan.php.

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

Reimplemented from Zend_Validate_Abstract.

Definition at line 40 of file LessThan.php.

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

Reimplemented from Zend_Validate_Abstract.

Definition at line 47 of file LessThan.php.

const NOT_LESS = 'notLessThan'

Definition at line 35 of file LessThan.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations