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


Public Member Functions | |
| validate ($value, $options=null) | |
| addData ($name, $callback, $class=null, $BCMode=false) | |
| getValidationScript ($options=null) | |
Data Fields | |
| $_data = array() | |
| $_BCMode = array() | |
Validates values using callback functions or methods
Definition at line 27 of file Callback.php.
| addData | ( | $ | name, |
| $ | callback, | ||
| $ | class = null, |
||
| $ | BCMode = false |
||
| ) |
Adds new callbacks to the callbacks list
| string | $name | Name of rule |
| string | $callback | Name of function or method |
| string | $class | Name of class containing the method |
| bool | $BCMode | Backwards compatibility mode public |
Definition at line 88 of file Callback.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 99 of file Callback.php.
| validate | ( | $ | value, |
| $ | options = null |
||
| ) |
Validates a value using a callback
| string | $value | Value to be checked |
| mixed | $options | Options for callback public |
Definition at line 61 of file Callback.php.
| $_BCMode = array() |
Definition at line 51 of file Callback.php.
| $_data = array() |
Definition at line 39 of file Callback.php.