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.
Create Service Mapping Description for a method
$_envelope = 'Zend_Json_Server_Smd'
Detailsarray $_envelopeTypes = 'array'Allowed envelope types
Details $_name = ''
Detailsstring $_nameRegex = '/^[a-z][a-z0-9._]+$/i'Regex for names
Detailsarray $_paramMap = 'array'Mapping of parameter types to JSON-RPC types
Detailsarray $_paramOptionTypes = 'array'Parameter option types
Detailsarray $_params = 'array'Service params
Details $_return = ''
Details $_target = ''
Details $_transport = 'POST'
Detailsarray $_transportTypes = 'array'Allowed transport types
Details__construct(
string|array $spec
)
:
voidConstructor
Details__toString(
)
:
stringCast to string
Details_validateParamType(
string $type, $isReturn
=
false
)
:
trueValidate parameter type
DetailsaddParam(
string|array $type, array $options
=
array, int|null $order
=
null
)
:
Zend_Json_Server_Smd_ServiceAdd a parameter to the service
DetailsaddParams(
array $params
)
:
Zend_Json_Server_Smd_ServiceAdd params
Each param should be an array, and should include the key 'type'.
DetailsgetEnvelope(
)
:
stringGet envelope type
DetailsgetName(
)
:
stringRetrieve name
DetailsgetParams(
)
:
arrayGet all parameters
Returns all params in specified order.
DetailsgetReturn(
)
:
string|arrayGet return type
DetailsgetTarget(
)
:
stringGet service target
DetailsgetTransport(
)
:
stringGet transport
DetailssetEnvelope(
string $envelopeType
)
:
Zend_Json_Server_Smd_ServiceSet envelope type
DetailssetName(
string $name
)
:
Zend_Json_Server_Smd_ServiceSet service name
DetailssetOptions(
array $options
)
:
Zend_Json_Server_Smd_ServiceSet object state
DetailssetParams(
array $params
)
:
Zend_Json_Server_Smd_ServiceOverwrite all parameters
DetailssetReturn(
string|array $type
)
:
Zend_Json_Server_Smd_ServiceSet return type
DetailssetTarget(
string $target
)
:
Zend_Json_Server_Smd_ServiceSet service target
DetailssetTransport(
string $transport
)
:
Zend_Json_Server_Smd_ServiceSet Transport
Currently limited to POST
DetailstoArray(
)
:
arrayCast service description to array
DetailstoJson(
)
:
stringReturn JSON encoding of service
Details