Server/Definition.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Server  
Version
$Id$  

\Zend_Server_Definition

Package: Zend_Server
Server methods metadata
Implements
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Todo
Implement iterator  

Properties

>VPropertyprotectedarray $_methods = array()

Array of Zend_Server_Method_Definition objects

Default valuearray()Details
Type
array
>VPropertyprotectedbool $_overwriteExistingMethods = false

Whether or not overwriting existing methods is allowed

Default valuefalseDetails
Type
bool

Methods

methodpublic__construct(null | array $methods = null) : void

Constructor

Parameters
NameTypeDescription
$methodsnull | array
methodpublicaddMethod(array | \Zend_Server_Method_Definition $method, null | string $name = null) : \Zend_Server_Definition

Add method to definition

Parameters
NameTypeDescription
$methodarray | \Zend_Server_Method_Definition
$namenull | string
Returns
TypeDescription
\Zend_Server_Definition
Throws
ExceptionDescription
\Zend_Server_Exceptionif duplicate or invalid method provided
methodpublicaddMethods(array $methods) : \Zend_Server_Definition

Add multiple methods

Parameters
NameTypeDescription
$methodsarray

Array of Zend_Server_Method_Definition objects or arrays

Returns
TypeDescription
\Zend_Server_Definition
methodpublicclearMethods() : \Zend_Server_Definition

Clear all method definitions

Returns
TypeDescription
\Zend_Server_Definition
methodpubliccount() : int

Countable: count of methods

Returns
TypeDescription
int
methodpubliccurrent() : mixed

Iterator: current item

Returns
TypeDescription
mixed
methodpublicgetMethod(string $method) : null | \Zend_Server_Method_Definition

Get a given method definition

Parameters
NameTypeDescription
$methodstring
Returns
TypeDescription
null | \Zend_Server_Method_Definition
methodpublicgetMethods() : array

Get all method definitions

Returns
TypeDescription
arrayArray of Zend_Server_Method_Definition objects
methodpublichasMethod(string $method) : bool

Does the definition have the given method?

Parameters
NameTypeDescription
$methodstring
Returns
TypeDescription
bool
methodpublickey() : int | string

Iterator: current item key

Returns
TypeDescription
int | string
methodpublicnext() : void

Iterator: advance to next method

methodpublicremoveMethod(string $method) : \Zend_Server_Definition

Remove a method definition

Parameters
NameTypeDescription
$methodstring
Returns
TypeDescription
\Zend_Server_Definition
methodpublicrewind() : void

Iterator: return to first method

methodpublicsetMethods(array $methods) : \Zend_Server_Definition

Set all methods at once (overwrite)

Parameters
NameTypeDescription
$methodsarray

Array of Zend_Server_Method_Definition objects or arrays

Returns
TypeDescription
\Zend_Server_Definition
methodpublicsetOverwriteExistingMethods(mixed $flag) : void

Set flag indicating whether or not overwriting existing methods is allowed

Parameters
NameTypeDescription
$flagmixed
methodpublictoArray() : array

Cast definition to an array

Returns
TypeDescription
array
methodpublicvalid() : bool

Iterator: is the current index valid?

Returns
TypeDescription
bool
Documentation was generated by phpDocumentor 2.2.0 .