Documentation

RequestParamsInterface
in

Request params fetcher

Table of Contents

getParam()  : mixed
Method returns request parameter
wasSubmitted()  : bool
Method validates was the parameter submitted

Methods

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, if the value was not found, then $default value will be returned

wasSubmitted()

Method validates was the parameter submitted

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

parameter name

Return values
bool

true if the parameter was submitted

Search results