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

Public Member Functions

 __construct ($methods=null)
 setOverwriteExistingMethods ($flag)
 addMethod ($method, $name=null)
 addMethods (array $methods)
 setMethods (array $methods)
 hasMethod ($method)
 getMethod ($method)
 getMethods ()
 removeMethod ($method)
 clearMethods ()
 toArray ()
 count ()
 current ()
 key ()
 next ()
 rewind ()
 valid ()

Protected Attributes

 $_methods = array()
 $_overwriteExistingMethods = false

Detailed Description

Definition at line 31 of file Definition.php.


Constructor & Destructor Documentation

__construct ( methods = null)

Constructor

Parameters:
null | array$methods
Returns:
void

Definition at line 49 of file Definition.php.

Here is the call graph for this function:


Member Function Documentation

addMethod ( method,
name = null 
)

Add method to definition

Parameters:
array | Zend_Server_Method_Definition$method
null | string$name
Returns:
Zend_Server_Definition
Exceptions:
Zend_Server_Exceptionif duplicate or invalid method provided

Definition at line 76 of file Definition.php.

Here is the caller graph for this function:

addMethods ( array methods)

Add multiple methods

Parameters:
array$methodsArray of Zend_Server_Method_Definition objects or arrays
Returns:
Zend_Server_Definition

Definition at line 113 of file Definition.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Clear all method definitions

Returns:
Zend_Server_Definition

Definition at line 188 of file Definition.php.

Here is the caller graph for this function:

count ( )

Countable: count of methods

Returns:
int

Definition at line 213 of file Definition.php.

current ( )

Iterator: current item

Returns:
mixed

Definition at line 223 of file Definition.php.

Here is the caller graph for this function:

getMethod ( method)

Get a given method definition

Parameters:
string$method
Returns:
null|Zend_Server_Method_Definition

Definition at line 151 of file Definition.php.

Here is the call graph for this function:

Get all method definitions

Returns:
array Array of Zend_Server_Method_Definition objects

Definition at line 164 of file Definition.php.

Here is the caller graph for this function:

hasMethod ( method)

Does the definition have the given method?

Parameters:
string$method
Returns:
bool

Definition at line 140 of file Definition.php.

Here is the caller graph for this function:

key ( )

Iterator: current item key

Returns:
int|string

Definition at line 233 of file Definition.php.

next ( )

Iterator: advance to next method

Returns:
void

Definition at line 243 of file Definition.php.

removeMethod ( method)

Remove a method definition

Parameters:
string$method
Returns:
Zend_Server_Definition

Definition at line 175 of file Definition.php.

Here is the call graph for this function:

rewind ( )

Iterator: return to first method

Returns:
void

Definition at line 253 of file Definition.php.

setMethods ( array methods)

Set all methods at once (overwrite)

Parameters:
array$methodsArray of Zend_Server_Method_Definition objects or arrays
Returns:
Zend_Server_Definition

Definition at line 127 of file Definition.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Set flag indicating whether or not overwriting existing methods is allowed

Parameters:
mixed$flag
Returns:
void

Definition at line 62 of file Definition.php.

toArray ( )

Cast definition to an array

Returns:
array

Definition at line 199 of file Definition.php.

Here is the call graph for this function:

valid ( )

Iterator: is the current index valid?

Returns:
bool

Definition at line 263 of file Definition.php.

Here is the call graph for this function:


Field Documentation

$_methods = array() [protected]

Definition at line 36 of file Definition.php.

$_overwriteExistingMethods = false [protected]

Definition at line 41 of file Definition.php.


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