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é
|
Fonctions membres publiques | |
__construct ($options=array(), CMSApplication $app=null, \JMenu $menu=null) | |
parse (&$uri) | |
build ($url) | |
getComponentRouter ($component) | |
setComponentRouter ($component, $router) | |
Fonctions membres publiques hérités de Router | |
__construct ($options=array()) | |
parse (&$uri) | |
build ($url) | |
getMode () | |
setMode ($mode) | |
setVar ($key, $value, $create=true) | |
setVars ($vars=array(), $merge=true) | |
getVar ($key) | |
getVars () | |
attachBuildRule ($callback, $stage=self::PROCESS_DURING) | |
attachParseRule ($callback, $stage=self::PROCESS_DURING) | |
Fonctions membres protégées | |
parseRawRoute (&$uri) | |
parseSefRoute (&$uri) | |
buildRawRoute (&$uri) | |
_buildSefRoute (&$uri) | |
buildSefRoute (&$uri) | |
processParseRules (&$uri, $stage=self::PROCESS_DURING) | |
processBuildRules (&$uri, $stage=self::PROCESS_DURING) | |
createUri ($url) | |
Fonctions membres protégées hérités de Router | |
_parseRawRoute (&$uri) | |
parseRawRoute (&$uri) | |
_parseSefRoute (&$uri) | |
parseSefRoute (&$uri) | |
_buildRawRoute (&$uri) | |
buildRawRoute (&$uri) | |
_buildSefRoute (&$uri) | |
buildSefRoute (&$uri) | |
_processParseRules (&$uri) | |
processParseRules (&$uri, $stage=self::PROCESS_DURING) | |
_processBuildRules (&$uri) | |
processBuildRules (&$uri, $stage=self::PROCESS_DURING) | |
_createUri ($url) | |
createUri ($url) | |
_encodeSegments ($segments) | |
encodeSegments ($segments) | |
_decodeSegments ($segments) | |
decodeSegments ($segments) | |
Attributs protégés | |
$componentRouters = array() | |
$app | |
$menu | |
Attributs protégés hérités de Router | |
$mode = null | |
$_mode = null | |
$vars = array() | |
$_vars = array() | |
$rules | |
$_rules | |
$cache = array() | |
Membres hérités additionnels | |
Fonctions membres publiques statiques hérités de Router | |
static | getInstance ($client, $options=array()) |
Champs de données hérités de Router | |
const | PROCESS_BEFORE = 'preprocess' |
const | PROCESS_DURING = '' |
const | PROCESS_AFTER = 'postprocess' |
Attributs protégés statiques hérités de Router | |
static | $instances = array() |
Class to create and parse routes for the site application
__construct | ( | $options = array() , |
|
CMSApplication | $app = null , |
||
\JMenu | $menu = null |
||
) |
Class constructor
array | $options | Array of options |
CMSApplication | $app | CMSApplication Object |
\JMenu | $menu | object |
Références $app, $menu, $options, et CMSApplication\getInstance().
|
protected |
build | ( | $url | ) |
Function to convert an internal URI to a route
string | $url | The internal URL |
Références $format, $route, $uri, $url, et JROUTER_MODE_SEF.
|
protected |
Function to build a raw route
\JUri | &$uri | The internal URL |
Références $component, $query, et $uri.
|
protected |
|
protected |
getComponentRouter | ( | $component | ) |
Get component router
string | $component | Name of the component including com_ prefix |
Références $class, $component, $path, et JPATH_SITE.
parse | ( | & | $uri | ) |
Function to convert a route to an internal URI
\JUri | &$uri | The uri. |
Références $component, $path, $suffix, $uri, ComponentHelper\getComponents(), JPATH_SITE, et JROUTER_MODE_SEF.
|
protected |
|
protected |
|
protected |
Process the build uri query data based on custom defined rules
\JUri | &$uri | The URI |
string | $stage | The stage that should be processed. Possible values: 'preprocess', 'postprocess' and '' for the main build stage |
Références $component, $item, $itemid, $lang, $query, $route, $uri, JROUTER_MODE_SEF, et null.
|
protected |
Process the parsed router variables based on custom defined rules
\JUri | &$uri | The URI to parse |
string | $stage | The stage that should be processed. Possible values: 'preprocess', 'postprocess' and '' for the main parse stage |
Références $start, $uri, JROUTER_MODE_SEF, et null.
setComponentRouter | ( | $component, | |
$router | |||
) |
Set a router for a component
Références $component.
|
protected |
|
protected |
|
protected |