|
Moodle
2.2.1
http://www.collinsharper.com
|
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 | |
Definition at line 31 of file Definition.php.
| __construct | ( | $ | methods = null | ) |
Constructor
| null | array | $methods |
Definition at line 49 of file Definition.php.

| addMethod | ( | $ | method, |
| $ | name = null |
||
| ) |
Add method to definition
| array | Zend_Server_Method_Definition | $method | |
| null | string | $name |
| Zend_Server_Exception | if duplicate or invalid method provided |
Definition at line 76 of file Definition.php.

| addMethods | ( | array $ | methods | ) |
Add multiple methods
| array | $methods | Array of Zend_Server_Method_Definition objects or arrays |
Definition at line 113 of file Definition.php.


| clearMethods | ( | ) |
Clear all method definitions
Definition at line 188 of file Definition.php.

| count | ( | ) |
| current | ( | ) |
Iterator: current item
Definition at line 223 of file Definition.php.

| getMethod | ( | $ | method | ) |
Get a given method definition
| string | $method |
Definition at line 151 of file Definition.php.

| getMethods | ( | ) |
Get all method definitions
Definition at line 164 of file Definition.php.

| hasMethod | ( | $ | method | ) |
Does the definition have the given method?
| string | $method |
Definition at line 140 of file Definition.php.

| key | ( | ) |
| next | ( | ) |
| removeMethod | ( | $ | method | ) |
Remove a method definition
| string | $method |
Definition at line 175 of file Definition.php.

| rewind | ( | ) |
| setMethods | ( | array $ | methods | ) |
Set all methods at once (overwrite)
| array | $methods | Array of Zend_Server_Method_Definition objects or arrays |
Definition at line 127 of file Definition.php.


| setOverwriteExistingMethods | ( | $ | flag | ) |
Set flag indicating whether or not overwriting existing methods is allowed
| mixed | $flag |
Definition at line 62 of file Definition.php.
| toArray | ( | ) |
Cast definition to an array
Definition at line 199 of file Definition.php.

| valid | ( | ) |
Iterator: is the current index valid?
Definition at line 263 of file Definition.php.

$_methods = array() [protected] |
Definition at line 36 of file Definition.php.
$_overwriteExistingMethods = false [protected] |
Definition at line 41 of file Definition.php.