Properties

$objectPool

$objectPool : \PG\MSF\Base\Pool

Type

\PG\MSF\Base\Pool — 对象池对象

$controllerName

$controllerName : string

Type

string — 执行的控制器名称

$actionName

$actionName : string

Type

string — 执行的方法名称

$userDefined

$userDefined : array

Type

array — 存储自定义的全局上下文数据

Methods

getInput()

getInput() : \PG\MSF\Base\Input

获取请求输入对象

Returns

\PG\MSF\Base\Input

setInput()

setInput(\PG\MSF\Base\Input  $input) : $this

设置请求输入对象

Parameters

\PG\MSF\Base\Input $input

请求对象

Returns

$this

getOutput()

getOutput() : \PG\MSF\Base\Output

获取请求输出对象

Returns

\PG\MSF\Base\Output

setOutput()

setOutput(\PG\MSF\Base\Output  $output) : $this

设置请求输出对象

Parameters

\PG\MSF\Base\Output $output

请求输出对象

Returns

$this

getObjectPool()

getObjectPool() : \PG\MSF\Base\Pool

获取对象池对象

Returns

\PG\MSF\Base\Pool

setObjectPool()

setObjectPool(\PG\MSF\Base\Pool  $objectPool) : $this

设置对象池对象

Parameters

\PG\MSF\Base\Pool $objectPool

对象池实例

Returns

$this

setControllerName()

setControllerName(string  $controllerName) : $this

设置控制器名称

Parameters

string $controllerName

控制器名称

Returns

$this

getControllerName()

getControllerName() : string

返回控制器名称

Returns

string

setActionName()

setActionName(string  $actionName) : $this

设置方法名称

Parameters

string $actionName

控制器方法名

Returns

$this

getActionName()

getActionName() : string

返回方法名称

Returns

string

getAllUserDefined()

getAllUserDefined() : array

获取所有用户自定义的全局上下文对象

Returns

array

getUserDefined()

getUserDefined(string  $key) : mixed|null

获取key所对应的用户自定义的全局上下文数据

Parameters

string $key

用户自定义的上下文数据Key

Returns

mixed|null

setUserDefined()

setUserDefined(string  $key, mixed  $val) : $this

设置key所对应的用户自定义的全局上下文的value

Parameters

string $key

用户自定义的上下文数据Key

mixed $val

用户自定义的上下文数据Value

Returns

$this

__sleep()

__sleep() : array

属性不用于序列化

Returns

array

destroy()

destroy() 

销毁