| Todo | Implement iterator |
| Category | Zend |
| Package | Zend_Server |
| Copyright | Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) |
| License | http://framework.zend.com/license/new-bsd New BSD License |

class Zend_Server_Definition implements Countable, Iterator
| Todo | Implement iterator |
| Category | Zend |
| Package | Zend_Server |
| Copyright | Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) |
| License | http://framework.zend.com/license/new-bsd New BSD License |
| # $_methods | |
| # $_overwriteExistingMethods |
| + __construct() | Constructor |
| + addMethod() | Add method to definition |
| + addMethods() | Add multiple methods |
| + clearMethods() | Clear all method definitions |
| + count() | Countable: count of methods |
| + current() | Iterator: current item |
| + getMethod() | Get a given method definition |
| + getMethods() | Get all method definitions |
| + hasMethod() | Does the definition have the given method? |
| + key() | Iterator: current item key |
| + next() | Iterator: advance to next method |
| + removeMethod() | Remove a method definition |
| + rewind() | Iterator: return to first method |
| + setMethods() | Set all methods at once (overwrite) |
| + setOverwriteExistingMethods() | Set flag indicating whether or not overwriting existing methods is allowed |
| + toArray() | Cast definition to an array |
| + valid() | Iterator: is the current index valid? |
protected $_methods = array()Zend_Server_Method_Definition objectsprotected $_overwriteExistingMethods = false
public function __construct( |
$methods = null)
|
null|array $methods |
public function addMethod( |
$method)
|
array| |
|
null|string $name |
Zend_Server_DefinitionZend_Server_Exception if duplicate or invalid method provided
public function addMethods( |
array $methods)
|
public function clearMethods( |
)
|
Zend_Server_Definition
public function count( |
)
|
public function current( |
)
|
public function getMethod( |
$method)
|
public function getMethods( |
)
|
Zend_Server_Method_Definition objects
public function hasMethod( |
$method)
|
string $method |
public function key( |
)
|
public function next( |
)
|
public function removeMethod( |
$method)
|
public function rewind( |
)
|
public function setMethods( |
array $methods)
|
public function setOverwriteExistingMethods( |
$flag)
|
mixed $flag |
public function toArray( |
)
|
public function valid( |
)
|