JComponentRouterRulesMenu

Implements \JComponentRouterRulesInterface

Rule to identify the right Itemid for a view in a component

since

3.4

package

Joomla.Libraries

Methods

__construct

Class constructor.

__construct(\JComponentRouterView $router) 
since

3.4

Arguments

$router

\JComponentRouterViewRouter this rule belongs to

build

Dummymethod to fullfill the interface requirements

build( &$query,  &$segments) : void

This method should retrieve all its input from its method arguments.

since

3.4

Arguments

$query

$segments

buildLookup

Method to build the lookup array

buildLookup(string $language = '*') : void
since

3.4

Arguments

$language

stringThe language that the lookup should be built up for

parse

Dummymethod to fullfill the interface requirements

parse( &$segments,  &$vars) : void

This method should retrieve all its input from its method arguments.

since

3.4

Arguments

$segments

$vars

preprocess

Finds the right Itemid for this query

preprocess( &$query) : void

This should complete a partial query set to work as a complete non-SEFed URL and in general make sure that all information is present and properly formatted. For example, the Itemid should be retrieved and set here.

since

3.4

Arguments

$query

Properties

router

Router this rule belongs to

lookup

Lookup array of the menu items

Type(s)

array