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.
ENV_JSONRPC_1 = 'JSON-RPC-1.0'
ENV_JSONRPC_2 = 'JSON-RPC-2.0'
SMD_VERSION = '2.0'
string $_contentType = 'application/json'
Content type
string $_contentTypeRegex = '#[a-z]+/[a-z][a-z-]+#i'
Content type regex
string $_description = ''
Service description
bool $_dojoCompatible = 'false'
Generate Dojo-compatible SMD
string $_envelope = 'self'
Current envelope
array $_envelopeTypes = 'array'
Allowed envelope types
string $_id = ''
Service id
array $_services = 'array'
Services offerred
string $_target = ''
Service target
string $_transport = 'POST'
Global transport
array $_transportTypes = 'array'
Allowed transport types
__toString(
)
:
string
Cast to string (JSON)
addService(
Zend_Json_Server_Smd_Service|array $service
)
:
void
Add Service
addServices(
array $services
)
:
Zend_Json_Server_Smd
Add many services
getContentType(
)
:
string
Retrieve content type
getDescription(
)
:
string
Get service description
getEnvelope(
)
:
string
Retrieve envelope
getId(
)
:
string
Get service id
getService(
string $name
)
:
false|Zend_Json_Server_Smd_Service
Get service object
getServices(
)
:
array
Return services
getTarget(
)
:
string
Retrieve service target
getTransport(
)
:
string
Get transport
isDojoCompatible(
)
:
bool
Is this a Dojo compatible SMD?
removeService(
string $name
)
:
boolean
Remove service
setContentType(
string $type
)
:
Zend_Json_Server_Smd
Set content type
setDescription(
string $description
)
:
Zend_Json_Server_Smd
Set service description
setDojoCompatible(
bool $flag
)
:
Zend_Json_Server_Smd
Indicate whether or not to generate Dojo-compatible SMD
setEnvelope(
string $envelopeType
)
:
Zend_Json_Server_Smd
Set envelope
setId(
$id
)
:
Zend_Json_Server_Smd
Set service ID
setOptions(
array $options
)
:
Zend_Json_Server_Smd
Set object state via options
setServices(
array $services
)
:
Zend_Json_Server_Smd
Overwrite existing services with new ones
setTarget(
string $target
)
:
Zend_Json_Server_Smd
Set service target
setTransport(
string $transport
)
:
Zend_Json_Server_Smd
Set transport
toArray(
)
:
array
Cast to array
toDojoArray(
)
:
array
Export to DOJO-compatible SMD array
toJson(
)
:
string
Cast to JSON