class Request implements ContainerAwareInterface

请求

Traits

ContainerAwareTrait

Methods

setContainer(ContainerInterface $container)

设置依赖注入容器

getContainer()

获取依赖注入容器

array|string
get(string $name = null, string $filter = null, mixed $default = null)

获取 REQUEST 的某个参数

array|string
getQuery(string $name = null, string $filter = null, mixed $default = null)

获取 GET 的某个参数

array|string
getPost(string $name = null, string $filter = null, mixed $default = null)

获取 POST 的某个参数

getPut($name = null, $filter = null, $default = null)

No description

bool
has(string $name)

是否有某个参数

getMethod()

No description

getRawBody()

No description

getServer($name = null, $default = null)

No description

getServerAddress()

No description

getClientAddress()

No description

getUserAgent()

No description

getCookies($name = null, $default = null)

No description

removeCookie($name)

No description

Details

in ContainerAwareTrait at line 22
setContainer(ContainerInterface $container)

设置依赖注入容器

Parameters

ContainerInterface $container 容器对象实例

in ContainerAwareTrait at line 32
ContainerInterface getContainer()

获取依赖注入容器

Return Value

ContainerInterface

at line 31
array|string get(string $name = null, string $filter = null, mixed $default = null)

获取 REQUEST 的某个参数

Parameters

string $name
string $filter
mixed $default

Return Value

array|string

at line 44
array|string getQuery(string $name = null, string $filter = null, mixed $default = null)

获取 GET 的某个参数

Parameters

string $name
string $filter
mixed $default

Return Value

array|string

at line 57
array|string getPost(string $name = null, string $filter = null, mixed $default = null)

获取 POST 的某个参数

Parameters

string $name
string $filter
mixed $default

Return Value

array|string

at line 62
getPut($name = null, $filter = null, $default = null)

Parameters

$name
$filter
$default

at line 79
bool has(string $name)

是否有某个参数

Parameters

string $name

Return Value

bool

at line 86
getMethod()

at line 91
getRawBody()

at line 101
getServer($name = null, $default = null)

Parameters

$name
$default

at line 109
getServerAddress()

at line 118
getClientAddress()

at line 135
getUserAgent()

at line 142
getCookies($name = null, $default = null)

Parameters

$name
$default

at line 150
removeCookie($name)

Parameters

$name