Definition at line 31 of file Definition.php.
◆ __construct()
__construct |
( |
|
$methods = null | ) |
|
Constructor
- Parameters
-
- Returns
- void
Definition at line 49 of file Definition.php.
setMethods(array $methods)
◆ addMethod()
addMethod |
( |
|
$method, |
|
|
|
$name = null |
|
) |
| |
Add method to definition
- Parameters
-
- Returns
- Zend_Server_Definition
- Exceptions
-
Definition at line 76 of file Definition.php.
79 #require_once 'Zend/Server/Method/Definition.php'; 82 #require_once 'Zend/Server/Exception.php'; 86 if (is_numeric(
$name)) {
95 #require_once 'Zend/Server/Exception.php'; 99 if (!$this->_overwriteExistingMethods && array_key_exists(
$name, $this->_methods)) {
100 #require_once 'Zend/Server/Exception.php'; elseif(isset( $params[ 'redirect_parent']))
if(!isset($_GET['name'])) $name
◆ addMethods()
addMethods |
( |
array |
$methods | ) |
|
◆ clearMethods()
◆ count()
Countable: count of methods
- Returns
- int
Definition at line 213 of file Definition.php.
215 return count($this->_methods);
◆ current()
◆ getMethod()
Get a given method definition
- Parameters
-
- Returns
- null|Zend_Server_Method_Definition
Definition at line 151 of file Definition.php.
154 return $this->_methods[
$method];
◆ getMethods()
◆ hasMethod()
Does the definition have the given method?
- Parameters
-
- Returns
- bool
Definition at line 140 of file Definition.php.
142 return array_key_exists(
$method, $this->_methods);
◆ key()
Iterator: current item key
- Returns
- int|string
Definition at line 233 of file Definition.php.
235 return key($this->_methods);
◆ next()
Iterator: advance to next method
- Returns
- void
Definition at line 243 of file Definition.php.
245 return next($this->_methods);
◆ removeMethod()
◆ rewind()
Iterator: return to first method
- Returns
- void
Definition at line 253 of file Definition.php.
255 return reset($this->_methods);
◆ setMethods()
setMethods |
( |
array |
$methods | ) |
|
◆ setOverwriteExistingMethods()
setOverwriteExistingMethods |
( |
|
$flag | ) |
|
Set flag indicating whether or not overwriting existing methods is allowed
- Parameters
-
- Returns
- void
Definition at line 62 of file Definition.php.
64 $this->_overwriteExistingMethods = (bool) $flag;
◆ toArray()
Cast definition to an array
- Returns
- array
Definition at line 199 of file Definition.php.
◆ valid()
Iterator: is the current index valid?
- Returns
- bool
Definition at line 263 of file Definition.php.
265 return (
bool) $this->
current();
◆ $_methods
◆ $_overwriteExistingMethods
$_overwriteExistingMethods = false |
|
protected |
The documentation for this class was generated from the following file: