Documentation

HttpRequestParams extends RequestParams
in package

Request params fetcher

Table of Contents

$router  : Router|null
Router of the transport
__construct()  : mixed
Constructor
getParam()  : mixed
Method returns request parameter
getRouter()  : Router
Method returns router
wasSubmitted()  : bool
Method validates was the parameter submitted

Properties

Methods

__construct()

Constructor

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

router object

Return values
mixed

getParam()

Method returns request 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

Search results

    Яндекс.Метрика