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 JApplicationWebRouterBase
+ Graphe d'héritage de JApplicationWebRouterBase:

Fonctions membres publiques

 addMap ($pattern, $controller)
 
 addMaps ($maps)
 
- Fonctions membres publiques hérités de JApplicationWebRouter
 __construct (JApplicationWeb $app, JInput $input=null)
 
 execute ($route)
 
 setControllerPrefix ($prefix)
 
 setDefaultController ($name)
 

Fonctions membres protégées

 parseRoute ($route)
 
- Fonctions membres protégées hérités de JApplicationWebRouter
 parseRoute ($route)
 
 fetchController ($name)
 

Attributs protégés

 $maps = array()
 
- Attributs protégés hérités de JApplicationWebRouter
 $app
 
 $default
 
 $controllerPrefix
 
 $input
 

Description détaillée

Basic Web application router class for the Joomla Platform.

Depuis
3.0
Obsolète:
4.0 Use the joomla/router package via Composer instead

Documentation des fonctions membres

◆ addMap()

addMap (   $pattern,
  $controller 
)

Add a route map to the router. If the pattern already exists it will be overwritten.

Paramètres
string$patternThe route pattern to use for matching.
string$controllerThe controller name to map to the given pattern.
Renvoie
JApplicationWebRouter This object for method chaining.
Depuis
3.0

Références $controller, et elseif.

◆ addMaps()

addMaps (   $maps)

Add a route map to the router. If the pattern already exists it will be overwritten.

Paramètres
array$mapsA list of route maps to add to the router as $pattern => $controller.
Renvoie
JApplicationWebRouter This object for method chaining.
Depuis
3.0

Références $controller.

◆ parseRoute()

parseRoute (   $route)
protected

Parse the given route and return the name of a controller mapped to the given route.

Paramètres
string$routeThe route string for which to find and execute a controller.
Renvoie
string The controller name for the given route excluding prefix.
Depuis
3.0
Exceptions
InvalidArgumentException

Références $controller, $default, $i, et $route.

Documentation des champs

◆ $maps

$maps = array()
protected

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