PHP Class Nette\Application\Routers\Route

Author: David Grudl
Inheritance: extends Nette\Object, implements Nette\Application\IRouter
Exibir arquivo Open project: nette/application Class Usage Examples

Public Properties

Property Type Description
$defaultFlags
$styles array

Public Methods

Method Description
__construct ( $mask, $metadata = [], $flags )
constructUrl ( Nette\Application\Request $appRequest, Url $refUrl ) : string | null Constructs absolute URL from Request object.
getDefaults ( ) : array Returns default values.
getFlags ( ) : integer Returns flags.
getMask ( ) : string Returns mask.
getTargetPresenters ( ) : string[] | null Proprietary cache aim.
match ( Nette\Http\IRequest $httpRequest ) : Nette\Application\Request | null Maps HTTP request to a Request object.

Private Methods

Method Description
action2path ( $s ) : string camelCaseAction name -> dash-separated.
param2path ( $s ) : string Url encode.
path2action ( $s ) : string dash-separated -> camelCaseAction name.
path2presenter ( $s ) : string dash-and-dot-separated -> PascalCase:Presenter name.
presenter2path ( $s ) : string PascalCase:Presenter name -> dash-and-dot-separated.
renameKeys ( $arr, $xlat ) : array Rename keys in array.
setMask ( $mask, array $metadata ) : void Parse mask and array of default values; initializes object.

Method Details

__construct() public method

public __construct ( $mask, $metadata = [], $flags )

constructUrl() public method

Constructs absolute URL from Request object.
public constructUrl ( Nette\Application\Request $appRequest, Url $refUrl ) : string | null
$appRequest Nette\Application\Request
$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

getMask() public method

Returns mask.
public getMask ( ) : string
return string

getTargetPresenters() public method

Proprietary cache aim.
public getTargetPresenters ( ) : string[] | null
return string[] | null

match() public method

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

Property Details

$defaultFlags public_oe static_oe property

Deprecation:
public static $defaultFlags

$styles public_oe static_oe property

public static array $styles
return array