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

Public Member Functions

 validate ($value, $options)
 getValidationScript ($options=null)

Detailed Description

Validates values using range comparison

Version:
1.0

Definition at line 27 of file Range.php.


Member Function Documentation

getValidationScript ( options = null)

Returns the javascript test (the test should return true if the value is INVALID)

Parameters:
mixedOptions for the rule public
Returns:
array first element is code to setup validation, second is the check itself

Reimplemented from HTML_QuickForm_Rule.

Definition at line 48 of file Range.php.

validate ( value,
options 
)

Validates a value using a range comparison

Parameters:
string$valueValue to be checked
mixed$optionsInt for length, array for range public
Returns:
boolean true if value is valid

Definition at line 37 of file Range.php.


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