class RouterLegacy implements RouterInterface

Default routing class for missing or legacy component routers

Methods

__construct( string $component)

Constructor

array
preprocess( array $query)

Generic preprocess function for missing or legacy component router

array
build( array $query)

Generic build function for missing or legacy component router

array
parse( array $segments)

Generic parse function for missing or legacy component router

Details

__construct( string $component)

Constructor

Parameters

string $component Component name without the com_ prefix this router should react upon

array preprocess( array $query)

Generic preprocess function for missing or legacy component router

Parameters

array $query An associative array of URL arguments

Return Value

array The URL arguments to use to assemble the subsequent URL.

array build( array $query)

Generic build function for missing or legacy component router

Parameters

array $query &$query An array of URL arguments

Return Value

array The URL arguments to use to assemble the subsequent URL.

array parse( array $segments)

Generic parse function for missing or legacy component router

Parameters

array $segments &$segments The segments of the URL to parse.

Return Value

array The URL attributes to be used by the application.