Documentation

ConsoleRequestParams extends RequestParams
in package

Request params fetcher

Table of Contents

$router  : Router|null
Router of the transport
__construct()  : mixed
Constructor
getParam()  : mixed
Method returns parameter
getRouter()  : Router
Method returns router
wasSubmitted()  : bool
Method validates was the parameter submitted
getSessionId()  : string
Method returns session id from HTTP header

Properties

Methods

__construct()

Constructor

public __construct(Router|null &$router) : mixed
Parameters
$router : Router|null

Router object

Return values
mixed

getParam()

Method returns parameter

public getParam(string $param[, mixed $default = false ]) : mixed
Parameters
$param : string

parameter name

$default : mixed = false

default value

Return values
mixed

parameter value

wasSubmitted()

Method validates was the parameter submitted

public wasSubmitted(string $param) : bool
Parameters
$param : string

parameter name

Tags
see
RequestParamsInterface::wasSubmitted()
Return values
bool

true if the parameter was submitted

getSessionId()

Method returns session id from HTTP header

protected getSessionId() : string
Tags
codeCoverageIgnore
Return values
string

session id

Search results