PHP Class Nette\Routing\Route

Inheritance: implements IRouter, use trait Nette\SmartObject
ファイルを表示 Open project: nette/routing

Public Properties

Property Type Description
$defaultFlags
$styles array

Public Methods

Method Description
__construct ( $mask, $metadata = [], $flags )
constructUrl ( array $params, Url $refUrl ) : string | null Constructs absolute URL from Request object.
getDefaults ( ) : array Returns default values.
getFlags ( ) : integer Returns flags.
getMask ( ) : string Returns mask.
getTargets ( $key ) : string[] | null Proprietary cache aim.
match ( Nette\Http\IRequest $request ) : array | 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 ( 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

getMask() public method

Returns mask.
public getMask ( ) : string
return string

getTargets() public method

Proprietary cache aim.
public getTargets ( $key ) : string[] | null
return string[] | null

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

Property Details

$defaultFlags public_oe static_oe property

Deprecation:
public static $defaultFlags

$styles public_oe static_oe property

public static array $styles
return array