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'
Details ENV_JSONRPC_2 = 'JSON-RPC-2.0'
Details SMD_VERSION = '2.0'
Detailsstring $_contentType = 'application/json'Content type
Detailsstring $_contentTypeRegex = '#[a-z]+/[a-z][a-z-]+#i'Content type regex
Detailsstring $_description = ''Service description
Detailsbool $_dojoCompatible = 'false'Generate Dojo-compatible SMD
Detailsstring $_envelope = 'self'Current envelope
Detailsarray $_envelopeTypes = 'array'Allowed envelope types
Detailsstring $_id = ''Service id
Detailsarray $_services = 'array'Services offerred
Detailsstring $_target = ''Service target
Detailsstring $_transport = 'POST'Global transport
Detailsarray $_transportTypes = 'array'Allowed transport types
Details__toString(
)
:
stringCast to string (JSON)
DetailsaddService(
Zend_Json_Server_Smd_Service|array $service
)
:
voidAdd Service
DetailsaddServices(
array $services
)
:
Zend_Json_Server_SmdAdd many services
DetailsgetContentType(
)
:
stringRetrieve content type
DetailsgetDescription(
)
:
stringGet service description
DetailsgetEnvelope(
)
:
stringRetrieve envelope
DetailsgetId(
)
:
stringGet service id
DetailsgetService(
string $name
)
:
false|Zend_Json_Server_Smd_ServiceGet service object
DetailsgetServices(
)
:
arrayReturn services
DetailsgetTarget(
)
:
stringRetrieve service target
DetailsgetTransport(
)
:
stringGet transport
DetailsisDojoCompatible(
)
:
boolIs this a Dojo compatible SMD?
DetailsremoveService(
string $name
)
:
booleanRemove service
DetailssetContentType(
string $type
)
:
Zend_Json_Server_SmdSet content type
DetailssetDescription(
string $description
)
:
Zend_Json_Server_SmdSet service description
DetailssetDojoCompatible(
bool $flag
)
:
Zend_Json_Server_SmdIndicate whether or not to generate Dojo-compatible SMD
DetailssetEnvelope(
string $envelopeType
)
:
Zend_Json_Server_SmdSet envelope
DetailssetId(
$id
)
:
Zend_Json_Server_SmdSet service ID
DetailssetOptions(
array $options
)
:
Zend_Json_Server_SmdSet object state via options
DetailssetServices(
array $services
)
:
Zend_Json_Server_SmdOverwrite existing services with new ones
DetailssetTarget(
string $target
)
:
Zend_Json_Server_SmdSet service target
DetailssetTransport(
string $transport
)
:
Zend_Json_Server_SmdSet transport
DetailstoArray(
)
:
arrayCast to array
DetailstoDojoArray(
)
:
arrayExport to DOJO-compatible SMD array
DetailstoJson(
)
:
stringCast to JSON
Details