Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe MenuRules
+ Graphe d'héritage de MenuRules:

Fonctions membres publiques

 __construct (RouterView $router)
 
 preprocess (&$query)
 
 parse (&$segments, &$vars)
 
 build (&$query, &$segments)
 

Fonctions membres protégées

 buildLookup ($language=' *')
 

Attributs protégés

 $router
 
 $lookup = array()
 

Description détaillée

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

Depuis
3.4

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( RouterView  $router)

Class constructor.

Paramètres
RouterView$routerRouter this rule belongs to
Depuis
3.4

Documentation des fonctions membres

◆ build()

build ( $query,
$segments 
)

Dummymethod to fullfill the interface requirements

Paramètres
array&$queryThe vars that should be converted
array&$segmentsThe URL segments to create
Renvoie
void
Depuis
3.4

Implémente RulesInterface.

◆ buildLookup()

buildLookup (   $language = '*')
protected

Method to build the lookup array

Paramètres
string$languageThe language that the lookup should be built up for
Renvoie
void
Depuis
3.4

Here it will become a bit tricky language != * can override existing entries language == * cannot override existing entries

Here it will become a bit tricky language != * can override existing entries language == * cannot override existing entries

Références $attributes, $component, $item, $items, $language, $layout, $view, et ComponentHelper\getComponent().

◆ parse()

parse ( $segments,
$vars 
)

Dummymethod to fullfill the interface requirements

Paramètres
array&$segmentsThe URL segments to parse
array&$varsThe vars that result from the segments
Renvoie
void
Depuis
3.4

Implémente RulesInterface.

◆ preprocess()

preprocess ( $query)

Finds the right Itemid for this query

Paramètres
array&$queryThe query array to process
Renvoie
void
Depuis
3.4

If the active item id is not the same as the supplied item id or we have a supplied item id and no active menu item then we just use the supplied menu item and continue

Implémente RulesInterface.

Références $active, $default, $id, $language, $layout, $query, $view, et null.

Documentation des champs

◆ $lookup

$lookup = array()
protected

◆ $router

$router
protected

La documentation de cette classe a été générée à partir du fichier suivant :