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


Public Member Functions | |
| __construct ($callback=null) | |
| getCallback () | |
| setCallback ($callback) | |
| getOptions () | |
| setOptions ($options) | |
| isValid ($value) | |
Data Fields | |
| const | INVALID_CALLBACK = 'callbackInvalid' |
| const | INVALID_VALUE = 'callbackValue' |
Protected Attributes | |
| $_messageTemplates | |
| $_callback = null | |
| $_options = array() | |
Definition at line 33 of file Callback.php.
| __construct | ( | $ | callback = null | ) |
Sets validator options
| string | array | $callback | |
| mixed | $max | |
| boolean | $inclusive |
Definition at line 77 of file Callback.php.

| getCallback | ( | ) |
Returns the set callback
Definition at line 101 of file Callback.php.

| getOptions | ( | ) |
Returns the set options for the callback
Definition at line 127 of file Callback.php.

| isValid | ( | $ | value | ) |
Defined by Zend_Validate_Interface
Returns true if and only if the set callback returns for the provided $value
| mixed | $value |
Implements Zend_Validate_Interface.
Definition at line 153 of file Callback.php.

| setCallback | ( | $ | callback | ) |
Sets the callback
| string | array | $callback |
Definition at line 112 of file Callback.php.

| setOptions | ( | $ | options | ) |
Sets options for the callback
| mixed | $max |
Definition at line 138 of file Callback.php.

$_callback = null [protected] |
Definition at line 60 of file Callback.php.
$_messageTemplates [protected] |
array( self::INVALID_VALUE => "'%value%' is not valid", self::INVALID_CALLBACK => "Failure within the callback, exception returned", )
Reimplemented from Zend_Validate_Abstract.
Definition at line 50 of file Callback.php.
$_options = array() [protected] |
Definition at line 67 of file Callback.php.
| const INVALID_CALLBACK = 'callbackInvalid' |
Invalid callback
Definition at line 38 of file Callback.php.
| const INVALID_VALUE = 'callbackValue' |
Invalid value
Definition at line 43 of file Callback.php.