PHP Class Nette\Routing\SimpleRouter

Inheritance: implements IRouter, use trait Nette\SmartObject
Mostra file Open project: nette/routing

Public Methods

Method Description
__construct ( $defaults = [], $flags )
constructUrl ( array $params, Url $refUrl ) : string | null Constructs absolute URL from Request object.
getDefaults ( ) : array Returns default values.
getFlags ( ) : integer Returns flags.
match ( Nette\Http\IRequest $request ) : array | null Maps HTTP request to a Request object.

Method Details

__construct() public method

public __construct ( $defaults = [], $flags )

constructUrl() public method

Constructs absolute URL from Request object.
public constructUrl ( array $params, Url $refUrl ) : string | null
$params array
$refUrl Nette\Http\Url
return string | null

getDefaults() public method

Returns default values.
public getDefaults ( ) : array
return array

getFlags() public method

Returns flags.
public getFlags ( ) : integer
return integer

match() public method

Maps HTTP request to a Request object.
public match ( Nette\Http\IRequest $request ) : array | null
$request Nette\Http\IRequest
return array | null