MenuRules

Implements RulesInterface

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

since

3.4

package

Joomla CMS

Methods

__construct

Class constructor.

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

3.4

Arguments

router

RouterViewRouter this rule belongs to

Response

mixed

build

Dummy method to fulfil the interface requirements

build(mixed||string|int &query, mixed||string|int &segments) : 
since

3.4

Arguments

query

array<string|int, mixed>The vars that should be converted

segments

array<string|int, mixed>The URL segments to create

Response

void

buildLookup

Method to build the lookup array

buildLookup( language = '*') : 
since

3.4

Arguments

language

stringThe language that the lookup should be built up for

Response

void

parse

Dummy method to fulfil the interface requirements

parse(mixed||string|int &segments, mixed||string|int &vars) : 
since

3.4

Arguments

segments

array<string|int, mixed>The URL segments to parse

vars

array<string|int, mixed>The vars that result from the segments

Response

void

preprocess

Finds the right Itemid for this query

preprocess(mixed||string|int &query) : 
since

3.4

Arguments

query

array<string|int, mixed>The query array to process

Response

void

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<string|int, mixed>