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

Public Member Functions

 __construct ($options=null)
 setReturnType ($returnType)
 getReturnType ()
 addParameter ($parameter)
 addParameters (array $parameters)
 setParameters (array $parameters)
 getParameters ()
 getParameterObjects ()
 getParameter ($index)
 setOptions (array $options)
 toArray ()

Protected Attributes

 $_returnType = 'void'
 $_parameterNameMap = array()
 $_parameters = array()

Detailed Description

Definition at line 32 of file Prototype.php.


Constructor & Destructor Documentation

__construct ( options = null)

Constructor

Parameters:
null | array$options
Returns:
void

Definition at line 55 of file Prototype.php.

Here is the call graph for this function:


Member Function Documentation

addParameter ( parameter)

Add a parameter

Parameters:
string$parameter
Returns:
Zend_Server_Method_Prototype

Definition at line 90 of file Prototype.php.

Here is the caller graph for this function:

addParameters ( array parameters)

Add parameters

Parameters:
array$parameter
Returns:
Zend_Server_Method_Prototype

Definition at line 113 of file Prototype.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getParameter ( index)

Retrieve a single parameter by name or index

Parameters:
string | int$index
Returns:
null|Zend_Server_Method_Parameter

Definition at line 165 of file Prototype.php.

Get parameter objects

Returns:
array

Definition at line 154 of file Prototype.php.

Retrieve parameters as list of types

Returns:
array

Definition at line 140 of file Prototype.php.

Here is the caller graph for this function:

Retrieve return type

Returns:
string

Definition at line 79 of file Prototype.php.

Here is the caller graph for this function:

setOptions ( array options)

Set object state from array

Parameters:
array$options
Returns:
Zend_Server_Method_Prototype

Definition at line 185 of file Prototype.php.

Here is the caller graph for this function:

setParameters ( array parameters)

Set parameters

Parameters:
array$parameters
Returns:
Zend_Server_Method_Prototype

Definition at line 127 of file Prototype.php.

Here is the call graph for this function:

setReturnType ( returnType)

Set return value

Parameters:
string$returnType
Returns:
Zend_Server_Method_Prototype

Definition at line 68 of file Prototype.php.

toArray ( )

Serialize to array

Returns:
array

Definition at line 201 of file Prototype.php.

Here is the call graph for this function:


Field Documentation

$_parameterNameMap = array() [protected]

Definition at line 42 of file Prototype.php.

$_parameters = array() [protected]

Definition at line 47 of file Prototype.php.

$_returnType = 'void' [protected]

Definition at line 37 of file Prototype.php.


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