Request
extends Request
in package
Table of Contents
- existInPost() : bool
- Check if "name" are in post data.
- getCookie() : mixed
- {@inheritdoc}
- getPost() : mixed
- Get single post parameter.
- getPostAll() : mixed
- Get all post data.
- getQuery() : mixed
- Return a parameter.
- getQueryAll() : array<string|int, mixed>
- Return all get parameters.
- getRequestUri() : string
- {@inheritdoc}
- getServer() : mixed
- {@inheritdoc}
- isPost() : bool
- Check if is a post request.
- setPost() : mixed
- Set single post parameter.
- setQuery() : mixed
- Set single get parameter.
- sanitizeUri() : string
- Sanitize uri for usage.
Methods
existInPost()
Check if "name" are in post data.
public
existInPost(string $name) : bool
Parameters
- $name : string
Return values
bool —getCookie()
{@inheritdoc}
public
getCookie(mixed $name[, mixed $default = null ]) : mixed
Parameters
- $name : mixed
- $default : mixed = null
Return values
mixed —getPost()
Get single post parameter.
public
getPost(string $name[, mixed $default = null ]) : mixed
Parameters
- $name : string
- $default : mixed = null
Return values
mixed —getPostAll()
Get all post data.
public
getPostAll() : mixed
Return values
mixed —getQuery()
Return a parameter.
public
getQuery(mixed $name[, mixed|null $default = null ]) : mixed
Parameters
- $name : mixed
- $default : mixed|null = null
Return values
mixed —getQueryAll()
Return all get parameters.
public
getQueryAll() : array<string|int, mixed>
Return values
array<string|int, mixed> —getRequestUri()
{@inheritdoc}
public
getRequestUri() : string
Return values
string —getServer()
{@inheritdoc}
public
getServer([mixed $name = null ][, mixed $default = null ]) : mixed
Parameters
- $name : mixed = null
- $default : mixed = null
Return values
mixed —isPost()
Check if is a post request.
public
isPost() : bool
Return values
bool —setPost()
Set single post parameter.
public
setPost(string $name, mixed $val) : mixed
Parameters
- $name : string
- $val : mixed
Return values
mixed —setQuery()
Set single get parameter.
public
setQuery(string $name, mixed $value) : mixed
Parameters
- $name : string
- $value : mixed
Return values
mixed —sanitizeUri()
Sanitize uri for usage.
protected
sanitizeUri(string $name) : string
Parameters
- $name : string