MenuRules

Implements RulesInterface

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

since

3.4

package

Application

Methods

__construct

Class constructor.

__construct(\Joomla\CMS\Component\Router\RouterView router) : mixed
since

3.4

Arguments

router

\Joomla\CMS\Component\Router\RouterViewRouter this rule belongs to

Response

mixed

build

Dummy method to fulfil the interface requirements

build(array &query, array &segments) : void
since

3.4

Arguments

query

arrayThe vars that should be converted

segments

arrayThe URL segments to create

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

Dummy method to fulfil the interface requirements

parse(array &segments, array &vars) : void
since

3.4

Arguments

segments

arrayThe URL segments to parse

vars

arrayThe vars that result from the segments

preprocess

Finds the right Itemid for this query

preprocess(array &query) : void
since

3.4

Arguments

query

arrayThe query array to process

Properties

router

Router this rule belongs to

since

3.4

Type(s)

RouterView

lookup

Lookup array of the menu items

since

3.4

Type(s)

array