PHP Class Webiny\Component\Http\Request\Post

Inheritance: use trait Webiny\Component\StdLib\StdLibTrait
Exibir arquivo Open project: Webiny/Framework Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor.
get ( string $key, null $value = null ) : string Get the value from POST for the given $key.
getAll ( ) : array Returns a list of all POST values.

Method Details

__construct() public method

Constructor.
public __construct ( )

get() public method

Get the value from POST for the given $key.
public get ( string $key, null $value = null ) : string
$key string Key name.
$value null Default value that will be returned if the $key is not found.
return string Value under the defined $key.

getAll() public method

Returns a list of all POST values.
public getAll ( ) : array
return array