openmediavault
4.0 (Arrakis)
The open network attached storage solution
|
Public Member Functions | |
handle () | |
cleanup () | |
Protected Member Functions | |
getParams () | |
validate () | |
preExecute () | |
postExecute (&$response) | |
handleResponse ($response) | |
Protected Attributes | |
$params = NULL | |
The generic RPC proxy implementation that handles JSON RPC requests. A RPC request must contain the fields: service The name of the service. method The name of the method. params The method parameters as JSON string. options An optional array of RPC options with the fields: updatelastaccess Set to FALSE to do not update the time on which the last access took place.
OMV\Rpc\Proxy\Json::cleanup | ( | ) |
The function that is called after the RPC has been successfully executed or it has been failed.
|
protected |
Get the RPC parameters.
OMV\Rpc\Proxy\Json::handle | ( | ) |
Handle the RPC request.
|
protected |
Print the RPC responce.
response | The RPC response |
|
protected |
Do additional stuff after RPC has been executed.
response | The RPC response |
|
protected |
Do additional stuff before RPC is executed.
|
protected |
Validate the RPC parameters. An exception is thrown when the validation fails.