Server/Method/Definition.php
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
- Subpackage
- Method
- Version
- $Id$
\Zend_Server_Method_Definition
Package: Zend_Server\Method
Method definition metadata
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods
__construct(null | array $options = null) : void
Constructor
Parameters
Name | Type | Description |
---|---|---|
$options | null | array |
addPrototype(array | \Zend_Server_Method_Prototype $prototype) : \Zend_Server_Method_Definition
Add prototype to method definition
Parameters
Returns
Name | Type | Description |
---|---|---|
$prototype | array | \Zend_Server_Method_Prototype |
Type | Description |
---|---|
\Zend_Server_Method_Definition |
addPrototypes(array $prototypes) : \Zend_Server_Method_Definition
Add multiple prototypes at once
Parameters
Returns
Name | Type | Description |
---|---|---|
$prototypes | array | Array of Zend_Server_Method_Prototype objects or arrays |
Type | Description |
---|---|
\Zend_Server_Method_Definition |
getCallback() : \Zend_Server_Method_Callback
Get method callback
Returns
Type | Description |
---|---|
\Zend_Server_Method_Callback |
getPrototypes() : array
Get all prototypes
Returns
Type | Description |
---|---|
array | $prototypes Array of Zend_Server_Method_Prototype objects or arrays |
setCallback(array | \Zend_Server_Method_Callback $callback) : \Zend_Server_Method_Definition
Set method callback
Parameters
Returns
Name | Type | Description |
---|---|---|
$callback | array | \Zend_Server_Method_Callback |
Type | Description |
---|---|
\Zend_Server_Method_Definition |
setInvokeArguments(array $invokeArguments) : \Zend_Server_Method_Definition
Set invoke arguments
Parameters
Returns
Name | Type | Description |
---|---|---|
$invokeArguments | array |
Type | Description |
---|---|
\Zend_Server_Method_Definition |
setMethodHelp(string $methodHelp) : \Zend_Server_Method_Definition
Set method help
Parameters
Returns
Name | Type | Description |
---|---|---|
$methodHelp | string |
Type | Description |
---|---|
\Zend_Server_Method_Definition |
setName(string $name) : \Zend_Server_Method_Definition
Set method name
Parameters
Returns
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
\Zend_Server_Method_Definition |
setObject(object $object) : \Zend_Server_Method_Definition
Set object to use with method calls
Parameters
Returns
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
\Zend_Server_Method_Definition |
setOptions(array $options) : \Zend_Server_Method_Definition
Set object state from options
Parameters
Returns
Name | Type | Description |
---|---|---|
$options | array |
Type | Description |
---|---|
\Zend_Server_Method_Definition |
setPrototypes(array $prototypes) : \Zend_Server_Method_Definition
Set all prototypes at once (overwrites)
Parameters
Returns
Name | Type | Description |
---|---|---|
$prototypes | array | Array of Zend_Server_Method_Prototype objects or arrays |
Type | Description |
---|---|
\Zend_Server_Method_Definition |