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
boolmixed
_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?
nullarraystring
_force_login($nonce)
_prepare_basic_auth()
_prepare_digest_auth()
http_status(integer $status) : void
integerresponse http status code
response($data, $http_status) : object
Takes pure data and optionally a status code, then creates the response
mixed
int
objectResponse 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