ZenMagick 0.9.10


org.zenmagick.mvc.rpc\ZMRpcRequest
mvc\rpc\ZMRpcRequest.php at line 34

Interface ZMRpcRequest

ZMRpcRequest

public interface ZMRpcRequest

RPC request interface.

Generic (R)emote (P)rocedure (C)all request interface, irrespective of the underlying format.

Implementations are expected to accept an instance of ZMRequest as single constructor argument.

Author:
DerManoMann

Method Summary
ZMRpcResponse

createResponse()

Create a matching response object.

mixed

getData()

Get the payload.

int

getId()

Get the request id.

string

getMethod()

Get the method name to execute.

ZMRequest

getRequest()

Get the underlying request.

Method Detail

mvc\rpc\ZMRpcRequest.php at line 69

createResponse

public ZMRpcResponse createResponse()

Create a matching response object.

Returns:
A response object that can be used to create a valid response.

mvc\rpc\ZMRpcRequest.php at line 62

getData

public mixed getData()

Get the payload.

Returns:
The actual data..

mvc\rpc\ZMRpcRequest.php at line 48

getId

public int getId()

Get the request id.

Returns:
The request id.

mvc\rpc\ZMRpcRequest.php at line 55

getMethod

public string getMethod()

Get the method name to execute.

Returns:
The method name to be called.

mvc\rpc\ZMRpcRequest.php at line 41

getRequest

public ZMRequest getRequest()

Get the underlying request.

Returns:
The request.

ZenMagick 0.9.10