PHP Class Neos\Flow\Mvc\Routing\StaticRoutePart

Inheritance: extends AbstractRoutePart
Show file Open project: neos/flow-development-collection Class Usage Examples

Public Methods

Method Description
getDefaultValue ( ) : string Gets default value of the Route Part.
match ( string &$routePath ) : boolean Checks whether this Static Route Part correspond to the given $routePath.
resolve ( array &$routeValues ) : boolean Sets the Route Part value to the Route Part name and returns TRUE if successful.

Method Details

getDefaultValue() public method

Gets default value of the Route Part.
public getDefaultValue ( ) : string
return string

match() public method

This is TRUE if $routePath is not empty and the first part is equal to the Route Part name.
public match ( string &$routePath ) : boolean
$routePath string The request path to be matched - without query parameters, host and fragment.
return boolean TRUE if Route Part matched $routePath, otherwise FALSE.

resolve() public method

Sets the Route Part value to the Route Part name and returns TRUE if successful.
public resolve ( array &$routeValues ) : boolean
$routeValues array not used but needed to implement \Neos\Flow\Mvc\Routing\AbstractRoutePart
return boolean