Legend of the Green Dragon

Http extends Request

Tags
deprecated

since 4.4.0; to be removed in 5.0.0. Use Lotgd\Core\Http\Request instead.

Table of Contents

$cookies  : Cookie
Cookies added in request.
$instance  : Request
Instance of Request.
__callStatic()  : mixed
Add support for magic static method calls.
existInPost()  : bool
Check if "name" are in post data.
getCookie()  : mixed|null
Get a value of a cookie.
getPostAll()  : array<string|int, mixed>
Get all post data.
getQueryAll()  : array<string|int, mixed>
Return all get parameters.
instance()  : mixed
Set instance of Navigation.
setCookie()  : mixed
Send a cookie.
setPost()  : mixed
Set single post parameter.
setQuery()  : mixed
Set single get parameter.

Properties

$cookies

Cookies added in request.

protected static Cookie $cookies

$instance

Instance of Request.

protected static Request $instance

Methods

__callStatic()

Add support for magic static method calls.

public static __callStatic(mixed $name, mixed $arguments) : mixed
Parameters
$name : mixed
$arguments : mixed
Return values
mixed

the returned value from the resolved method

existInPost()

Check if "name" are in post data.

public static existInPost(string $name) : bool
Parameters
$name : string
Return values
bool

getCookie()

Get a value of a cookie.

public static getCookie(mixed $name) : mixed|null
Parameters
$name : mixed
Return values
mixed|null

getPostAll()

Get all post data.

public static getPostAll() : array<string|int, mixed>
Return values
array<string|int, mixed>

getQueryAll()

Return all get parameters.

public static getQueryAll() : array<string|int, mixed>
Return values
array<string|int, mixed>

instance()

Set instance of Navigation.

public static instance(Request $instance) : mixed
Parameters
$instance : Request
Return values
mixed

setCookie()

Send a cookie.

public static setCookie(string $name, string $value[, string $duration = '+120 days' ][, string $path = '' ][, string $domain = '' ][, bool $secure = true ][, bool $httponly = true ]) : mixed
Parameters
$name : string
$value : string
$duration : string = '+120 days'
$path : string = ''
$domain : string = ''
$secure : bool = true
$httponly : bool = true
Return values
mixed

setPost()

Set single post parameter.

public static setPost(string $var, mixed $val[, bool $sub = null ]) : mixed
Parameters
$var : string
$val : mixed
$sub : bool = null
Return values
mixed

setQuery()

Set single get parameter.

public static setQuery(string $name, mixed $value[, bool $force = null ]) : mixed
Parameters
$name : string
$value : mixed
$force : bool = null
Return values
mixed

Search results