Свойство | Тип | Описание | |
---|---|---|---|
$_allow_get_array | boolean | If set to FALSE, then $_GET will be set to an empty array. | |
$_enable_csrf | boolean | Enables a CSRF cookie token to be set. Set automatically based on config setting. | |
$_enable_xss | boolean | Determines whether the XSS filter is always active when GET, POST or COOKIE data is encountered. Set automatically based on config setting. | |
$_input_stream | array | Parsed from php://input at runtime | |
$_raw_input_stream | string | Holds a cache of php://input contents | |
$_standardize_newlines | boolean | If set to TRUE, then newlines are standardized. | |
$headers | array | List of all HTTP request headers | |
$ip_address | string | IP address of the current user | |
$security | |||
$uni |
Метод | Описание | |
---|---|---|
__construct ( ) : void | Class constructor | |
__get ( string $name ) : mixed | Magic __get() | |
cookie ( mixed $index = NULL, boolean $xss_clean = NULL ) : mixed | Fetch an item from the COOKIE array | |
get ( mixed $index = NULL, boolean $xss_clean = NULL ) : mixed | Fetch an item from the GET array | |
get_post ( string $index, boolean $xss_clean = NULL ) : mixed | Fetch an item from GET data with fallback to POST | |
get_request_header ( string $index, boolean $xss_clean = FALSE ) : string | null | Get Request Header | |
input_stream ( string $index = NULL, boolean $xss_clean = NULL ) : mixed | Fetch an item from the php://input stream | |
ip_address ( ) : string | Fetch the IP Address | |
is_ajax_request ( ) : boolean | Is AJAX request? | |
is_cli_request ( ) : boolean | Is CLI request? | |
method ( boolean $upper = FALSE ) : string | Get Request Method | |
post ( mixed $index = NULL, boolean $xss_clean = NULL ) : mixed | Fetch an item from the POST array | |
post_get ( string $index, boolean $xss_clean = NULL ) : mixed | Fetch an item from POST data with fallback to GET | |
request_headers ( boolean $xss_clean = FALSE ) : array | Request Headers | |
server ( mixed $index, boolean $xss_clean = NULL ) : mixed | Fetch an item from the SERVER array | |
set_cookie ( string | mixed[] $name, string $value = '', integer $expire = '', string $domain = '', string $path = '/', string $prefix = '', boolean $secure = FALSE, boolean $httponly = FALSE ) : void | Set cookie | |
user_agent ( $xss_clean = NULL ) : string | null | Fetch User Agent string | |
valid_ip ( string $ip, string $which = '' ) : boolean | Validate IP Address |
Метод | Описание | |
---|---|---|
_clean_input_data ( string | string[] $str ) : string | Clean Input Data | |
_clean_input_keys ( string $str, boolean $fatal = TRUE ) : string | boolean | Clean Keys | |
_fetch_from_array ( &$array, mixed $index = NULL, boolean $xss_clean = NULL ) : mixed | Fetch from array | |
_sanitize_globals ( ) : void | Sanitize Globals |
public __construct ( ) : void | ||
Результат | void |
protected _clean_input_data ( string | string[] $str ) : string | ||
$str | string | string[] | Input string(s) |
Результат | string |
protected _sanitize_globals ( ) : void | ||
Результат | void |
public ip_address ( ) : string | ||
Результат | string | IP address |
public is_ajax_request ( ) : boolean | ||
Результат | boolean |
public is_cli_request ( ) : boolean | ||
Результат | boolean |
public request_headers ( boolean $xss_clean = FALSE ) : array | ||
$xss_clean | boolean | Whether to apply XSS filtering |
Результат | array |
public set_cookie ( string | mixed[] $name, string $value = '', integer $expire = '', string $domain = '', string $path = '/', string $prefix = '', boolean $secure = FALSE, boolean $httponly = FALSE ) : void | ||
$name | string | mixed[] | Cookie name or an array containing parameters |
$value | string | Cookie value |
$expire | integer | Cookie expiration time in seconds |
$domain | string | Cookie domain (e.g.: '.yourdomain.com') |
$path | string | Cookie path (default: '/') |
$prefix | string | Cookie name prefix |
$secure | boolean | Whether to only transfer cookies via SSL |
$httponly | boolean | Whether to only makes the cookie accessible via HTTP (no javascript) |
Результат | void | modified by ci-phpunit-test |
public user_agent ( $xss_clean = NULL ) : string | null | ||
Результат | string | null | User Agent string or NULL if it doesn't exist |
protected bool $_allow_get_array | ||
Результат | boolean |
protected bool $_enable_csrf | ||
Результат | boolean |
protected bool $_enable_xss | ||
Результат | boolean |
protected array $_input_stream | ||
Результат | array |
protected string $_raw_input_stream | ||
Результат | string |
protected bool $_standardize_newlines | ||
Результат | boolean |
protected array $headers | ||
Результат | array |
protected string $ip_address | ||
Результат | string |