Moodle  2.2.1
http://www.collinsharper.com
Zend_Server_Method_Definition Class Reference

Public Member Functions

 __construct ($options=null)
 setOptions (array $options)
 setName ($name)
 getName ()
 setCallback ($callback)
 getCallback ()
 addPrototype ($prototype)
 addPrototypes (array $prototypes)
 setPrototypes (array $prototypes)
 getPrototypes ()
 setMethodHelp ($methodHelp)
 getMethodHelp ()
 setObject ($object)
 getObject ()
 setInvokeArguments (array $invokeArguments)
 getInvokeArguments ()
 toArray ()

Protected Attributes

 $_callback
 $_invokeArguments = array()
 $_methodHelp = ''
 $_name
 $_object
 $_prototypes = array()

Detailed Description

Definition at line 32 of file Definition.php.


Constructor & Destructor Documentation

__construct ( options = null)

Constructor

Parameters:
null | array$options
Returns:
void

Definition at line 70 of file Definition.php.

Here is the call graph for this function:


Member Function Documentation

addPrototype ( prototype)

Add prototype to method definition

Parameters:
array | Zend_Server_Method_Prototype$prototype
Returns:
Zend_Server_Method_Definition

Definition at line 151 of file Definition.php.

Here is the caller graph for this function:

addPrototypes ( array prototypes)

Add multiple prototypes at once

Parameters:
array$prototypesArray of Zend_Server_Method_Prototype objects or arrays
Returns:
Zend_Server_Method_Definition

Definition at line 170 of file Definition.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Get method callback

Returns:
Zend_Server_Method_Callback

Definition at line 140 of file Definition.php.

Here is the caller graph for this function:

Retrieve invoke arguments

Returns:
array

Definition at line 266 of file Definition.php.

Here is the caller graph for this function:

Get method help

Returns:
string

Definition at line 218 of file Definition.php.

Here is the caller graph for this function:

getName ( )

Get method name

Returns:
string

Definition at line 111 of file Definition.php.

Here is the caller graph for this function:

getObject ( )

Get object to use with method calls

Returns:
null|object

Definition at line 244 of file Definition.php.

Here is the caller graph for this function:

Get all prototypes

Returns:
array $prototypes Array of Zend_Server_Method_Prototype objects or arrays

Definition at line 196 of file Definition.php.

Here is the caller graph for this function:

setCallback ( callback)

Set method callback

Parameters:
array | Zend_Server_Method_Callback$callback
Returns:
Zend_Server_Method_Definition

Definition at line 122 of file Definition.php.

setInvokeArguments ( array invokeArguments)

Set invoke arguments

Parameters:
array$invokeArguments
Returns:
Zend_Server_Method_Definition

Definition at line 255 of file Definition.php.

setMethodHelp ( methodHelp)

Set method help

Parameters:
string$methodHelp
Returns:
Zend_Server_Method_Definition

Definition at line 207 of file Definition.php.

setName ( name)

Set method name

Parameters:
string$name
Returns:
Zend_Server_Method_Definition

Definition at line 100 of file Definition.php.

setObject ( object)

Set object to use with method calls

Parameters:
object$object
Returns:
Zend_Server_Method_Definition

Definition at line 229 of file Definition.php.

setOptions ( array options)

Set object state from options

Parameters:
array$options
Returns:
Zend_Server_Method_Definition

Definition at line 83 of file Definition.php.

Here is the caller graph for this function:

setPrototypes ( array prototypes)

Set all prototypes at once (overwrites)

Parameters:
array$prototypesArray of Zend_Server_Method_Prototype objects or arrays
Returns:
Zend_Server_Method_Definition

Definition at line 184 of file Definition.php.

Here is the call graph for this function:

toArray ( )

Serialize to array

Returns:
array

Definition at line 276 of file Definition.php.

Here is the call graph for this function:


Field Documentation

$_callback [protected]

Definition at line 37 of file Definition.php.

$_invokeArguments = array() [protected]

Definition at line 42 of file Definition.php.

$_methodHelp = '' [protected]

Definition at line 47 of file Definition.php.

$_name [protected]

Definition at line 52 of file Definition.php.

$_object [protected]

Definition at line 57 of file Definition.php.

$_prototypes = array() [protected]

Definition at line 62 of file Definition.php.


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