Inheritances
Files
Overview
FRAMES
NO FRAMES

Class Zend_Server_Definition

Zend_Server
|- class Zend_Server_Definition implements Countable, Iterator
Defined in line 31 of file Server/Definition.php.
Server methods metadata
TodoImplement iterator
CategoryZend
PackageZend_Server
CopyrightCopyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
Licensehttp://framework.zend.com/license/new-bsd New BSD License

Summary

Instance fields
# $_methods
# $_overwriteExistingMethods
Instance methods
+ __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?

Details

Instance fields

$_methods
protected $_methods = array()
Var array Array of Zend_Server_Method_Definition objects
$_overwriteExistingMethods
protected $_overwriteExistingMethods = false
Var bool Whether or not overwriting existing methods is allowed

Instance methods

__construct()
public function __construct( $methods = null)
Constructor
Parameters
null|array $methods
Returns void
addMethod()
public function addMethod( $method
$name = null
)
Add method to definition
Parameters
array|Zend_Server_Method_Definition $method
null|string $name
Throws Zend_Server_Exception if duplicate or invalid method provided
addMethods()
public function addMethods( array $methods)
Add multiple methods
Parameters
array $methods
clearMethods()
public function clearMethods( )
Clear all method definitions
count()
public function count( )
Countable: count of methods
Returns int
current()
public function current( )
Iterator: current item
Returns mixed
getMethod()
public function getMethod( $method)
Get a given method definition
Parameters
string $method
getMethods()
public function getMethods( )
Get all method definitions
Returns array Array of Zend_Server_Method_Definition objects
hasMethod()
public function hasMethod( $method)
Does the definition have the given method?
Parameters
string $method
Returns bool
key()
public function key( )
Iterator: current item key
Returns int|string
next()
public function next( )
Iterator: advance to next method
Returns void
removeMethod()
public function removeMethod( $method)
Remove a method definition
Parameters
string $method
rewind()
public function rewind( )
Iterator: return to first method
Returns void
setMethods()
public function setMethods( array $methods)
Set all methods at once (overwrite)
Parameters
array $methods
setOverwriteExistingMethods()
public function setOverwriteExistingMethods( $flag)
Set flag indicating whether or not overwriting existing methods is allowed
Parameters
mixed $flag
Returns void
toArray()
public function toArray( )
Cast definition to an array
Returns array
valid()
public function valid( )
Iterator: is the current index valid?
Returns bool