Back to Joomla project (class list)

Class MenuRules - list of methods

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

Extends

Direct known subclasses

Package: Joomla\CMS\Component\Router\Rules
Copyright: (C) 2016 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Component/Router/Rules/MenuRules.php
Project: Joomla

Method Summary

public
(\Joomla\CMS\Component\Router\RouterView $router)

Class constructor.
Parameters
  • \Joomla\CMS\Component\Router\RouterView $router Router this rule belongs to
Since
  • 3.4
Show source code of this method: __construct Source Code

public void
(mixed &$query)

Finds the right Itemid for this query
Parameters
  • array & $query The query array to process
Returns
  • void
Since
  • 3.4
Show source code of this method: preprocess Source Code

protected void
(mixed $language = '*')

Method to build the lookup array
Parameters
  • string $language The language that the lookup should be built up for
Returns
  • void
Since
  • 3.4
Show source code of this method: buildLookup Source Code

public void
(mixed &$segments, mixed &$vars)

Dummy method to fulfil the interface requirements
Parameters
  • array & $segments The URL segments to parse
  • array & $vars The vars that result from the segments
Returns
  • void
Since
  • 3.4
-
Show source code of this method: parse Source Code

public void
(mixed &$query, mixed &$segments)

Dummy method to fulfil the interface requirements
Parameters
  • array & $query The vars that should be converted
  • array & $segments The URL segments to create
Returns
  • void
Since
  • 3.4
-
Show source code of this method: build Source Code

Properties Summary

protected \Joomla\CMS\Component\Router\RouterView
$router
Router this rule belongs to
Since
  • 3.4
protected array
$lookup
Lookup array of the menu items
Since
  • 3.4

Tags Summary

Since
3.4