Property | Type | Description | |
---|---|---|---|
$debug | |||
$format | |||
$parameters | |||
$request_uri | |||
$url_elements | |||
$verb |
Method | Description | |
---|---|---|
call ( ) : xmlrpc | parse POST var to retrieve - Resource - Identifier - and parameters | |
getTypeName ( $nb ) | ||
parseIncomingParams ( ) | Construct this->parameters from POST data |
Method | Description | |
---|---|---|
escapekeys ( array $response = [] ) : array | Add a space before all numeric keys to prevent their deletion by xmlrpc_encode_request function see https://bugs.php.net/bug.php?id=21949 | |
returnResponse ( mixed $response, integer $httpcode = 200, array $aditionnalheaders = [] ) | Generic function to send a message and an http code to client |
public call ( ) : xmlrpc | ||
return | xmlrpc | response |
protected escapekeys ( array $response = [] ) : array | ||
$response | array | the response array to escape |
return | array | the escaped response. |
public parseIncomingParams ( ) |
protected returnResponse ( mixed $response, integer $httpcode = 200, array $aditionnalheaders = [] ) | ||
$response | mixed | string message or array of data to send |
$httpcode | integer | http code (see : https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) |
$aditionnalheaders | array | headers to send with http response (must be an array(key => value)) |