Property | Type | Description | |
---|---|---|---|
$content | string |
Method | Description | |
---|---|---|
display ( ) : |
||
initialize ( ) | Initializes the entire API; extract class+method from the request, call, and output. | |
isAuthorized ( ) : boolean | Default authentication | |
isValidRequestMethod ( string $method ) : boolean |
This is called in backend/modules/ |
|
output ( integer $statusCode, array $data = null ) : boolean | Output the return |
Method | Description | |
---|---|---|
arrayToXML ( mixed &$input, string $key, DOMElement $XML ) | Callback-method for elements in the return-array | |
getHeaderMessage ( $statusCode ) : string | Get the relevant HTTP status message | |
outputJSON ( integer $statusCode, array $data = null ) | Output as JSON | |
outputXML ( integer $statusCode, array $data = null ) | Output as XML |
public display ( ) : |
||
return |
public initialize ( ) |
public static isAuthorized ( ) : boolean | ||
return | boolean |
public static isValidRequestMethod ( string $method ) : boolean | ||
$method | string | |
return | boolean |