PHP Class Redaxscript\Request

Since: 2.2.0
Author: Henry Ruhs
Inheritance: extends Singleton
Show file Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Property Type Description
$_requestArray array array of the request

Public Methods

Method Description
get ( string $key = null, string $index = null ) : mixed get item from globals
getCookie ( string $key = null ) : string get item from cookie
getFiles ( string $key = null ) : string get item from files
getPost ( string $key = null ) : string get item from post
getQuery ( string $key = null ) : string get item from query
getServer ( string $key = null ) : string get item from server
getSession ( string $key = null ) : string get item from session
init ( ) init the class
refreshCookie ( ) refresh the cookie
refreshSession ( ) refresh the session
set ( string $key = null, mixed $value = null ) set item to globals
setCookie ( string $key = null, string $value = null ) set item to cookie
setFiles ( string $key = null, mixed $value = null ) set item to files
setPost ( string $key = null, string $value = null ) set item to post
setQuery ( string $key = null, string $value = null ) set item to query
setServer ( string $key = null, string $value = null ) set item to server
setSession ( string $key = null, mixed $value = null ) set item to session

Method Details

get() public method

get item from globals
Since: 3.0.0
public get ( string $key = null, string $index = null ) : mixed
$key string key of the item
$index string index of the array
return mixed

getCookie() public method

get item from cookie
Since: 2.2.0
public getCookie ( string $key = null ) : string
$key string key of the item
return string

getFiles() public method

get item from files
Since: 3.0.0
public getFiles ( string $key = null ) : string
$key string key of the item
return string

getPost() public method

get item from post
Since: 2.2.0
public getPost ( string $key = null ) : string
$key string key of the item
return string

getQuery() public method

get item from query
Since: 2.2.0
public getQuery ( string $key = null ) : string
$key string key of the item
return string

getServer() public method

get item from server
Since: 2.2.0
public getServer ( string $key = null ) : string
$key string key of the item
return string

getSession() public method

get item from session
Since: 2.2.0
public getSession ( string $key = null ) : string
$key string key of the item
return string

init() public method

init the class
Since: 2.4.0
public init ( )

refreshCookie() public method

refresh the cookie
Since: 2.6.2
public refreshCookie ( )

refreshSession() public method

refresh the session
Since: 2.6.2
public refreshSession ( )

set() public method

set item to globals
Since: 2.2.0
public set ( string $key = null, mixed $value = null )
$key string key of the item
$value mixed value of the item

setCookie() public method

set item to cookie
Since: 2.2.0
public setCookie ( string $key = null, string $value = null )
$key string key of the item
$value string value of the item

setFiles() public method

set item to files
Since: 3.0.0
public setFiles ( string $key = null, mixed $value = null )
$key string key of the item
$value mixed value of the item

setPost() public method

set item to post
Since: 2.2.0
public setPost ( string $key = null, string $value = null )
$key string key of the item
$value string value of the item

setQuery() public method

set item to query
Since: 2.2.0
public setQuery ( string $key = null, string $value = null )
$key string key of the item
$value string value of the item

setServer() public method

set item to server
Since: 2.2.0
public setServer ( string $key = null, string $value = null )
$key string key of the item
$value string value of the item

setSession() public method

set item to session
Since: 2.2.0
public setSession ( string $key = null, mixed $value = null )
$key string key of the item
$value mixed value of the item

Property Details

$_requestArray protected static property

array of the request
protected static array $_requestArray
return array