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

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()

Detailed Description

Definition at line 33 of file Callback.php.


Constructor & Destructor Documentation

__construct ( callback = null)

Sets validator options

Parameters:
string | array$callback
mixed$max
boolean$inclusive
Returns:
void

Definition at line 77 of file Callback.php.

Here is the call graph for this function:


Member Function Documentation

Returns the set callback

Returns:
mixed

Definition at line 101 of file Callback.php.

Here is the caller graph for this function:

Returns the set options for the callback

Returns:
mixed

Definition at line 127 of file Callback.php.

Here is the caller graph for this function:

isValid ( value)

Defined by Zend_Validate_Interface

Returns true if and only if the set callback returns for the provided $value

Parameters:
mixed$value
Returns:
boolean

Implements Zend_Validate_Interface.

Definition at line 153 of file Callback.php.

Here is the call graph for this function:

setCallback ( callback)

Sets the callback

Parameters:
string | array$callback
Returns:
Zend_Validate_Callback Provides a fluent interface

Definition at line 112 of file Callback.php.

Here is the caller graph for this function:

setOptions ( options)

Sets options for the callback

Parameters:
mixed$max
Returns:
Zend_Validate_Callback Provides a fluent interface

Definition at line 138 of file Callback.php.

Here is the caller graph for this function:


Field Documentation

$_callback = null [protected]

Definition at line 60 of file Callback.php.

$_messageTemplates [protected]
Initial value:
 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.


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