\ImiRequestContext

Summary

Methods
Properties
Constants
create()
destroy()
exists()
get()
set()
getContext()
getServer()
getServerBean()
getBean()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$context
N/A

Properties

$context

$context : 

Type

Methods

create()

create() : void

为当前请求创建上下文

destroy()

destroy() : void

销毁当前请求的上下文

exists()

exists() : boolean

判断当前请求上下文是否存在

Returns

boolean

get()

get(string  $name, mixed  $default = null) : mixed

获取上下文数据

Parameters

string $name
mixed $default

Returns

mixed

set()

set(string  $name, mixed  $value) : void

设置上下文数据

Parameters

string $name
mixed $value

getContext()

getContext() : array

获取当前上下文

Returns

array

getServer()

getServer() : \Imi\Server\Base|null

获取当前的服务器对象

Returns

\Imi\Server\Base|null

getServerBean()

getServerBean(string  $name,   $params) : mixed

在当前服务器上下文中获取Bean对象

Parameters

string $name
$params

Returns

mixed

getBean()

getBean(string  $name,   $params) : mixed

在当前请求上下文中获取Bean对象

Parameters

string $name
$params

Returns

mixed