Zend Framework
1.12
|
Public Member Functions | |
__construct ($spec) | |
Constructor. | |
setOptions (array $options) | |
Set object state. | |
setName ($name) | |
Set service name. | |
getName () | |
Retrieve name. | |
setTransport ($transport) | |
Set Transport. | |
getTransport () | |
Get transport. | |
setTarget ($target) | |
Set service target. | |
getTarget () | |
Get service target. | |
setEnvelope ($envelopeType) | |
Set envelope type. | |
getEnvelope () | |
Get envelope type. | |
addParam ($type, array $options=array(), $order=null) | |
Add a parameter to the service. | |
addParams (array $params) | |
Add params. | |
setParams (array $params) | |
Overwrite all parameters. | |
getParams () | |
Get all parameters. | |
setReturn ($type) | |
Set return type. | |
getReturn () | |
Get return type. | |
toArray () | |
Cast service description to array. | |
toJson () | |
Return JSON encoding of service. | |
__toString () | |
Cast to string. | |
Protected Member Functions | |
_validateParamType ($type, $isReturn=false) | |
Validate parameter type. | |
Protected Attributes | |
$_envelope = Zend_Json_Server_Smd::ENV_JSONRPC_1 | |
$_name | |
$_return | |
$_target | |
$_transport = 'POST' | |
$_envelopeTypes | |
$_nameRegex = '/^[a-z][a-z0-9._]+$/i' | |
$_paramOptionTypes | |
$_params = array() | |
$_paramMap | |
$_transportTypes | |
__construct | ( | $spec | ) |
Constructor.
string | array | $spec |
Zend_Json_Server_Exception | if no name provided |
__toString | ( | ) |
Cast to string.
|
protected |
addParam | ( | $type, | |
array | $options = array() , |
||
$order = null |
|||
) |
Add a parameter to the service.
string | array | $type | |
array | $options | |
int | null | $order |
addParams | ( | array | $params | ) |
Add params.
Each param should be an array, and should include the key 'type'.
array | $params |
getEnvelope | ( | ) |
Get envelope type.
getName | ( | ) |
Retrieve name.
getParams | ( | ) |
Get all parameters.
Returns all params in specified order.
getReturn | ( | ) |
Get return type.
getTarget | ( | ) |
Get service target.
getTransport | ( | ) |
Get transport.
setEnvelope | ( | $envelopeType | ) |
setName | ( | $name | ) |
Set service name.
string | $name |
Zend_Json_Server_Exception |
setOptions | ( | array | $options | ) |
setParams | ( | array | $params | ) |
setReturn | ( | $type | ) |
setTarget | ( | $target | ) |
setTransport | ( | $transport | ) |
Set Transport.
Currently limited to POST
string | $transport |
toArray | ( | ) |
Cast service description to array.
toJson | ( | ) |
Return JSON encoding of service.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |