PHP Class FluxBB\Server\Request

Show file Open project: fluxbb/core Class Usage Examples

Protected Properties

Property Type Description
$handler string The requested handler.
$parameters array The parameters passed with the request.

Public Methods

Method Description
__construct ( string $handler, array $parameters = [] ) Create a request instance.
get ( string $name = null, string $default = null ) : string | array Get one or all of the request parameters.
getHandler ( ) : string Get the requested handler.
getParameters ( ) : array Get all of the request parameters.

Method Details

__construct() public method

Create a request instance.
public __construct ( string $handler, array $parameters = [] )
$handler string
$parameters array

get() public method

Get one or all of the request parameters.
public get ( string $name = null, string $default = null ) : string | array
$name string
$default string
return string | array

getHandler() public method

Get the requested handler.
public getHandler ( ) : string
return string

getParameters() public method

Get all of the request parameters.
public getParameters ( ) : array
return array

Property Details

$handler protected property

The requested handler.
protected string $handler
return string

$parameters protected property

The parameters passed with the request.
protected array $parameters
return array