|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| _findOperator ($name) | |
| validate ($values, $operator=null) | |
| getValidationScript ($operator=null) | |
Data Fields | |
| $_operators | |
Definition at line 33 of file Compare.php.
| _findOperator | ( | $ | name | ) |
Returns the operator to use for comparing the values
private
| string | operator name |
Definition at line 57 of file Compare.php.

| getValidationScript | ( | $ | options = null | ) |
Returns the javascript test (the test should return true if the value is INVALID)
| mixed | Options for the rule public |
Reimplemented from HTML_QuickForm_Rule.
Definition at line 84 of file Compare.php.

| validate | ( | $ | values, |
| $ | operator = null |
||
| ) |
| $_operators |
array( 'eq' => '==', 'neq' => '!=', 'gt' => '>', 'gte' => '>=', 'lt' => '<', 'lte' => '<=' )
Definition at line 40 of file Compare.php.