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


Public Member Functions | |
| validate ($value, $options=null) | |
| getValidationScript ($format=null) | |
Required elements validation This class overrides QuickForm validation since it allowed space or empty tag as a value
Definition at line 2460 of file formslib.php.
| getValidationScript | ( | $ | format = null | ) |
This function returns Javascript code used to build client-side validation. It checks if an element is not empty.
| int | $format |
Reimplemented from HTML_QuickForm_Rule.
Definition at line 2498 of file formslib.php.
| validate | ( | $ | value, |
| $ | options = null |
||
| ) |
Checks if an element is not empty. This is a server-side validation, it works for both text fields and editor fields
| string | $value | Value to check |
| mixed | $options | Not used yet |
Definition at line 2469 of file formslib.php.