PHP Класс Redaxscript\Request

С версии: 2.2.0
Автор: Henry Ruhs
Наследование: extends Singleton
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_requestArray array array of the request

Открытые методы

Метод Описание
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

Описание методов

get() публичный Метод

get item from globals
С версии: 3.0.0
public get ( string $key = null, string $index = null ) : mixed
$key string key of the item
$index string index of the array
Результат mixed

getCookie() публичный Метод

get item from cookie
С версии: 2.2.0
public getCookie ( string $key = null ) : string
$key string key of the item
Результат string

getFiles() публичный Метод

get item from files
С версии: 3.0.0
public getFiles ( string $key = null ) : string
$key string key of the item
Результат string

getPost() публичный Метод

get item from post
С версии: 2.2.0
public getPost ( string $key = null ) : string
$key string key of the item
Результат string

getQuery() публичный Метод

get item from query
С версии: 2.2.0
public getQuery ( string $key = null ) : string
$key string key of the item
Результат string

getServer() публичный Метод

get item from server
С версии: 2.2.0
public getServer ( string $key = null ) : string
$key string key of the item
Результат string

getSession() публичный Метод

get item from session
С версии: 2.2.0
public getSession ( string $key = null ) : string
$key string key of the item
Результат string

init() публичный Метод

init the class
С версии: 2.4.0
public init ( )

refreshCookie() публичный Метод

refresh the cookie
С версии: 2.6.2
public refreshCookie ( )

refreshSession() публичный Метод

refresh the session
С версии: 2.6.2
public refreshSession ( )

set() публичный Метод

set item to globals
С версии: 2.2.0
public set ( string $key = null, mixed $value = null )
$key string key of the item
$value mixed value of the item

setCookie() публичный Метод

set item to cookie
С версии: 2.2.0
public setCookie ( string $key = null, string $value = null )
$key string key of the item
$value string value of the item

setFiles() публичный Метод

set item to files
С версии: 3.0.0
public setFiles ( string $key = null, mixed $value = null )
$key string key of the item
$value mixed value of the item

setPost() публичный Метод

set item to post
С версии: 2.2.0
public setPost ( string $key = null, string $value = null )
$key string key of the item
$value string value of the item

setQuery() публичный Метод

set item to query
С версии: 2.2.0
public setQuery ( string $key = null, string $value = null )
$key string key of the item
$value string value of the item

setServer() публичный Метод

set item to server
С версии: 2.2.0
public setServer ( string $key = null, string $value = null )
$key string key of the item
$value string value of the item

setSession() публичный Метод

set item to session
С версии: 2.2.0
public setSession ( string $key = null, mixed $value = null )
$key string key of the item
$value mixed value of the item

Описание свойств

$_requestArray защищенное статическое свойство

array of the request
protected static array $_requestArray
Результат array