HTTP_CONTINUE
HTTP_CONTINUE
CodeIgniter Rest Controller A fully RESTful server implementation for CodeIgniter using one library, one config file and one controller.
_remap(string $object_called, array $arguments = array())
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 | $object_called | |
array | $arguments | The arguments passed to the controller method |
response(array|NULL $data = NULL, integer|NULL $http_code = NULL, boolean $continue = FALSE)
Takes mixed data and optionally a status code, then creates the response
array|NULL | $data | Data to output to the user |
integer|NULL | $http_code | HTTP status code |
boolean | $continue | TRUE to flush the response to the client and continue running the script; otherwise, exit |
set_response(array|NULL $data = NULL, integer|NULL $http_code = NULL)
Takes mixed data and optionally a status code, then creates the response within the buffers of the Output class. The response is sent to the client lately by the framework, after the current controller's method termination.
All the hooks after the controller's method termination are executable
array|NULL | $data | Data to output to the user |
integer|NULL | $http_code | HTTP status code |
get(NULL $key = NULL, NULL $xss_clean = NULL) : array|string|NULL
Retrieve a value from a GET request
NULL | $key | Key to retrieve from the GET request If NULL an array of arguments is returned |
NULL | $xss_clean | Whether to apply XSS filtering |
Value from the GET request; otherwise, NULL
options(NULL $key = NULL, NULL $xss_clean = NULL) : array|string|NULL
Retrieve a value from a OPTIONS request
NULL | $key | Key to retrieve from the OPTIONS request. If NULL an array of arguments is returned |
NULL | $xss_clean | Whether to apply XSS filtering |
Value from the OPTIONS request; otherwise, NULL
head(NULL $key = NULL, NULL $xss_clean = NULL) : array|string|NULL
Retrieve a value from a HEAD request
NULL | $key | Key to retrieve from the HEAD request If NULL an array of arguments is returned |
NULL | $xss_clean | Whether to apply XSS filtering |
Value from the HEAD request; otherwise, NULL
post(NULL $key = NULL, NULL $xss_clean = NULL) : array|string|NULL
Retrieve a value from a POST request
NULL | $key | Key to retrieve from the POST request If NULL an array of arguments is returned |
NULL | $xss_clean | Whether to apply XSS filtering |
Value from the POST request; otherwise, NULL
put(NULL $key = NULL, NULL $xss_clean = NULL) : array|string|NULL
Retrieve a value from a PUT request
NULL | $key | Key to retrieve from the PUT request If NULL an array of arguments is returned |
NULL | $xss_clean | Whether to apply XSS filtering |
Value from the PUT request; otherwise, NULL
delete(NULL $key = NULL, NULL $xss_clean = NULL) : array|string|NULL
Retrieve a value from a DELETE request
NULL | $key | Key to retrieve from the DELETE request If NULL an array of arguments is returned |
NULL | $xss_clean | Whether to apply XSS filtering |
Value from the DELETE request; otherwise, NULL
patch(NULL $key = NULL, NULL $xss_clean = NULL) : array|string|NULL
Retrieve a value from a PATCH request
NULL | $key | Key to retrieve from the PATCH request If NULL an array of arguments is returned |
NULL | $xss_clean | Whether to apply XSS filtering |
Value from the PATCH request; otherwise, NULL
query(NULL $key = NULL, NULL $xss_clean = NULL) : array|string|NULL
Retrieve a value from the query parameters
NULL | $key | Key to retrieve from the query parameters If NULL an array of arguments is returned |
NULL | $xss_clean | Whether to apply XSS filtering |
Value from the query parameters; otherwise, NULL
_perform_library_auth(string $username = '', string $password = NULL) : boolean
Perform Library Authentication - Override this function to change the way the library is called
string | $username | The username to validate |
string | $password | The password to validate |