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 [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Server
- Subpackage
- Method
- Version
- $Id: Definition.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Server_Method_Definition
Method definition metadata
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods


__construct(null | array $options = null) : void
Constructor
Name | Type | Description |
---|---|---|
$options | null | array |


addPrototype(array | \Zend_Server_Method_Prototype $prototype) : \Zend_Server_Method_Definition
Add prototype to method definition
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
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
Type | Description |
---|---|
\Zend_Server_Method_Callback |


getObject() : null | object
Get object to use with method calls
Type | Description |
---|---|
null | object |


getPrototypes() : array
Get all prototypes
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
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
Name | Type | Description |
---|---|---|
$invokeArguments | array |
Type | Description |
---|---|
\Zend_Server_Method_Definition |


setMethodHelp(string $methodHelp) : \Zend_Server_Method_Definition
Set method help
Name | Type | Description |
---|---|---|
$methodHelp | string |
Type | Description |
---|---|
\Zend_Server_Method_Definition |


setName(string $name) : \Zend_Server_Method_Definition
Set method name
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
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
\Zend_Server_Method_Definition |


setOptions(array $options) : \Zend_Server_Method_Definition
Set object state from options
Name | Type | Description |
---|---|---|
$options | array |
Type | Description |
---|---|
\Zend_Server_Method_Definition |


setPrototypes(array $prototypes) : \Zend_Server_Method_Definition
Set all prototypes at once (overwrites)
Name | Type | Description |
---|---|---|
$prototypes | array | Array of Zend_Server_Method_Prototype objects or arrays |
Type | Description |
---|---|
\Zend_Server_Method_Definition |