Json/Server/Smd.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_Json
- Subpackage
- Server
- Version
- $Id: Smd.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Json_Server_Smd
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties


string $_contentType = 'application/json'
Content type
'application/json'
Details- Type
- string


string $_contentTypeRegex = '#[a-z]+/[a-z][a-z-]+#i'
Content type regex
'#[a-z]+/[a-z][a-z-]+#i'
Details- Type
- string


string $_envelope = self::ENV_JSONRPC_1
Current envelope
self::ENV_JSONRPC_1
Details- Type
- string


array $_envelopeTypes = array(self::ENV_JSONRPC_1, self::ENV_JSONRPC_2)
Allowed envelope types
array(self::ENV_JSONRPC_1, self::ENV_JSONRPC_2)
Details- Type
- array
Methods


addService(\Zend_Json_Server_Smd_Service | array $service) : void
Add Service
Name | Type | Description |
---|---|---|
$service | \Zend_Json_Server_Smd_Service | array |


addServices(array $services) : \Zend_Json_Server_Smd
Add many services
Name | Type | Description |
---|---|---|
$services | array |
Type | Description |
---|---|
\Zend_Json_Server_Smd |


getService(string $name) : false | \Zend_Json_Server_Smd_Service
Get service object
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
false | \Zend_Json_Server_Smd_Service |


removeService(string $name) : boolean
Remove service
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
boolean |


setContentType(string $type) : \Zend_Json_Server_Smd
Set content type
Name | Type | Description |
---|---|---|
$type | string |
Type | Description |
---|---|
\Zend_Json_Server_Smd |


setDescription(string $description) : \Zend_Json_Server_Smd
Set service description
Name | Type | Description |
---|---|---|
$description | string |
Type | Description |
---|---|
\Zend_Json_Server_Smd |


setDojoCompatible(bool $flag) : \Zend_Json_Server_Smd
Indicate whether or not to generate Dojo-compatible SMD
Name | Type | Description |
---|---|---|
$flag | bool |
Type | Description |
---|---|
\Zend_Json_Server_Smd |


setEnvelope(string $envelopeType) : \Zend_Json_Server_Smd
Set envelope
Name | Type | Description |
---|---|---|
$envelopeType | string |
Type | Description |
---|---|
\Zend_Json_Server_Smd |


setId( $id) : \Zend_Json_Server_Smd
Set service ID
Name | Type | Description |
---|---|---|
$id |
Type | Description |
---|---|
\Zend_Json_Server_Smd |


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


setServices(array $services) : \Zend_Json_Server_Smd
Overwrite existing services with new ones
Name | Type | Description |
---|---|---|
$services | array |
Type | Description |
---|---|
\Zend_Json_Server_Smd |


setTarget(string $target) : \Zend_Json_Server_Smd
Set service target
Name | Type | Description |
---|---|---|
$target | string |
Type | Description |
---|---|
\Zend_Json_Server_Smd |


setTransport(string $transport) : \Zend_Json_Server_Smd
Set transport
Name | Type | Description |
---|---|---|
$transport | string |
Type | Description |
---|---|
\Zend_Json_Server_Smd |