JComponentRouterLegacy

Implements \JComponentRouterInterface

Default routing class for missing or legacy component routers

since

3.3

package

Joomla.Libraries

Methods

__construct

Constructor

__construct(string $component) 
since

3.3

Arguments

$component

stringComponent name without the com_ prefix this router should react upon

build

Generic build function for missing or legacy component router

build( &$query) : array
since

3.3

Arguments

$query

Response

arrayThe URL arguments to use to assemble the subsequent URL.

parse

Generic parse function for missing or legacy component router

parse( &$segments) : array
since

3.3

Arguments

$segments

Response

arrayThe URL attributes to be used by the application.

preprocess

Generic preprocess function for missing or legacy component router

preprocess(array $query) : array

For example it can add the Itemid or set a language parameter. This method is executed on each URL, regardless of SEF mode switched on or not.

since

3.3

Arguments

$query

arrayAn associative array of URL arguments

Response

arrayThe URL arguments to use to assemble the subsequent URL.

Properties

component

Name of the component

Type(s)

string