after()
before()
router()
_check_login()
_detect_format()
_detect_lang()
_force_login()
_prepare_basic_auth()
_prepare_digest_auth()
http_status()
response()
$_supported_formats
$auth
$format
$http_status
$methods
$no_data_status
$no_method_status
$rest_format
$xml_basenode
after($response)
before()
router(string $resource, array $arguments) : bool | mixed
Requests are not made to methods directly The request will be for an "object". this simply maps the object and method to the correct Controller method.
string
array
bool
mixed
_check_login($username, $password)
_detect_format() : string
Detect which format should be used to output the data
string
_detect_lang() : null | array | string
What language do they want it in?
null
array
string
_force_login($nonce)
_prepare_basic_auth()
_prepare_digest_auth()
http_status(integer $status) : void
integer
response http status code
response($data, $http_status) : object
Takes pure data and optionally a status code, then creates the response
mixed
int
object
Response instance$_supported_formats : array
$auth : string
$format : string
$http_status : integer
$methods : array
$no_data_status : integer
$no_method_status : integer
$rest_format : null | string
$xml_basenode : string