Class REST_Controller
CodeIgniter Rest Controller
A fully RESTful server implementation for CodeIgniter using one library, one config file and one controller.
- CI_Controller
-
REST_Controller
Package: CodeIgniter\Libraries
Category: Libraries
License: MIT
Author: Phil Sturgeon, Chris Kacerguis
Version: 3.0.0-pre
Link: https://github.com/chriskacerguis/codeigniter-restserver
Located at application/libraries/REST_Controller.php
protected
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
public
|
|
protected
|
|
protected
|
|
protected
string
|
|
protected
string
|
|
protected
boolean
|
|
protected
null|string
|
|
protected
object
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
protected
string
|
|
public
array
|
|
protected
boolean
|
|
protected
boolean
|
#
_perform_library_auth( string $username = '', string $password = NULL )
Perform Library Authentication - Override this function to change the way the library is called |
protected
boolean
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
array
|
|
protected
boolean
|
|
protected
boolean
|
protected
string|null
|
$rest_format
This defines the rest format. |
#
NULL
|
protected
array
|
$methods
Defines the list of method properties such as limit, log and level |
#
array()
|
protected
array
|
$allowed_http_methods
List of allowed HTTP methods |
#
array('get', 'delete', 'post', 'put', 'options', 'patch', 'head')
|
protected
object
|
$request
General request data and information. Stores accept, language, body, headers, etc. |
#
NULL
|
protected
object
|
$response
What is gonna happen in output? |
#
NULL
|
protected
object
|
$rest
Stores DB, keys, key level, etc |
#
NULL
|
protected
array
|
$_get_args
The arguments for the GET request method |
#
array()
|
protected
array
|
$_post_args
The arguments for the POST request method |
#
array()
|
protected
string
|
$_insert_id
The insert_id of the log entry (if we have one) |
#
''
|
protected
array
|
$_put_args
The arguments for the PUT request method |
#
array()
|
protected
array
|
$_delete_args
The arguments for the DELETE request method |
#
array()
|
protected
array
|
$_patch_args
The arguments for the PATCH request method |
#
array()
|
protected
array
|
$_head_args
The arguments for the HEAD request method |
#
array()
|
protected
array
|
$_options_args
The arguments for the OPTIONS request method |
#
array()
|
protected
array
|
$_args
The arguments from GET, POST, PUT, DELETE request methods combined. |
#
array()
|
protected
boolean
|
$_allow
If the request is allowed based on the API key provided. |
#
TRUE
|
protected
boolean
|
$_zlib_oc
Determines if output compression is enabled |
#
FALSE
|
protected
string
|
$_user_ldap_dn
The LDAP Distinguished Name of the User post authentication |
#
''
|
protected
string
|
$_start_rtime
The start of the response time from the server |
#
''
|
protected
string
|
$_end_rtime
The end of the response time from the server |
#
''
|
protected
array
|
$_supported_formats
List all supported methods, the first will be the default format |
#
array(
'xml' => 'application/xml',
'json' => 'application/json',
'jsonp' => 'application/javascript',
'serialized' => 'application/vnd.php.serialized',
'php' => 'text/plain',
'html' => 'text/html',
'csv' => 'application/csv'
)
|
protected
object
|
$_apiuser
Information about the current API user |