Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (CMSApplication $app=null, AbstractMenu $menu=null) | |
parseCheckSSL (&$router, &$uri) | |
parseInit (&$router, &$uri) | |
parseFormat (&$router, &$uri) | |
parseSefRoute (&$router, &$uri) | |
parseRawRoute (&$router, &$uri) | |
parsePaginationData (&$router, &$uri) | |
buildInit (&$router, &$uri) | |
buildComponentPreprocess (&$router, &$uri) | |
buildSefRoute (&$router, &$uri) | |
buildPaginationData (&$router, &$uri) | |
buildFormat (&$router, &$uri) | |
buildRewrite (&$router, &$uri) | |
buildBase (&$router, &$uri) | |
getComponentRouter ($component) | |
setComponentRouter ($component, $router) | |
Fonctions membres publiques hérités de Router | |
parse (&$uri, $setVars=false) | |
build ($url) | |
setVar ($key, $value, $create=true) | |
setVars ($vars=array(), $merge=true) | |
getVar ($key) | |
getVars () | |
attachBuildRule (callable $callback, $stage=self::PROCESS_DURING) | |
attachParseRule (callable $callback, $stage=self::PROCESS_DURING) | |
detachRule ($type, $rule, $stage=self::PROCESS_DURING) | |
getRules () | |
Attributs protégés | |
$componentRouters = [] | |
$app | |
$menu | |
Attributs protégés hérités de Router | |
$vars = array() | |
$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' |
Fonctions membres protégées hérités de Router | |
processParseRules (&$uri, $stage=self::PROCESS_DURING) | |
processBuildRules (&$uri, $stage=self::PROCESS_DURING) | |
createUri ($url) | |
Attributs protégés statiques hérités de Router | |
static | $instances = array() |
Class to create and parse routes for the site application
__construct | ( | CMSApplication | $app = null , |
AbstractMenu | $menu = null |
||
) |
Class constructor
CMSApplication | $app | Application Object |
AbstractMenu | $menu | Menu object |
Références $app, $menu, $this, class, et Factory\getContainer().
buildBase | ( | & | $router, |
& | $uri | ||
) |
Add the basepath to the URI
SiteRouter | &$router | Router object |
Uri | &$uri | URI object to process |
Références $uri, et Uri\root().
buildComponentPreprocess | ( | & | $router, |
& | $uri | ||
) |
Run the component preprocess method
SiteRouter | &$router | Router object |
Uri | &$uri | URI object to process |
Références $component, $item, $query, et $uri.
buildFormat | ( | & | $router, |
& | $uri | ||
) |
buildInit | ( | & | $router, |
& | $uri | ||
) |
buildPaginationData | ( | & | $router, |
& | $uri | ||
) |
Convert limits for pagination
SiteRouter | &$router | Router object |
Uri | &$uri | URI object to process |
buildRewrite | ( | & | $router, |
& | $uri | ||
) |
Create a uri based on a full or partial URL string
SiteRouter | &$router | Router object |
Uri | &$uri | URI object to process |
buildSefRoute | ( | & | $router, |
& | $uri | ||
) |
Build the SEF route
SiteRouter | &$router | Router object |
Uri | &$uri | URI object to process |
Références $component, $item, $parts, $query, $tmp, $uri, et null.
getComponentRouter | ( | $component | ) |
Get component router
string | $component | Name of the component including com_ prefix |
Références $component.
parseCheckSSL | ( | & | $router, |
& | $uri | ||
) |
parseFormat | ( | & | $router, |
& | $uri | ||
) |
parseInit | ( | & | $router, |
& | $uri | ||
) |
Do some initial cleanup before parsing the URL
SiteRouter | &$router | Router object |
Uri | &$uri | URI object to process |
In some environments (e.g. CLI we can't form a valid base URL). In this case we catch the exception thrown by URI and set an empty base URI for further work.
Références $path, $uri, Uri\base(), et JPATH_SITE.
parsePaginationData | ( | & | $router, |
& | $uri | ||
) |
parseRawRoute | ( | & | $router, |
& | $uri | ||
) |
Convert a raw route to an internal URI
SiteRouter | &$router | Router object |
Uri | &$uri | URI object to process |
parseSefRoute | ( | & | $router, |
& | $uri | ||
) |
Convert a sef route to an internal URI
SiteRouter | &$router | Router object |
Uri | &$uri | URI object to process |
Références $component, $item, $items, $route, $this, $uri, et null.
setComponentRouter | ( | $component, | |
$router | |||
) |
Set a router for a component
Références $component.
|
protected |
|
protected |
|
protected |