API15:JRouter/parse
From Joomla! Documentation
Description
Function to convert a route to an internal URI
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
parse(&$uri)
| Parameter Name | Default Value | Description |
|---|---|---|
| &$uri |
Defined in
libraries/joomla/application/router.php
Importing
jimport( 'joomla.application.router' );
Source Body
function parse(&$uri)
{
$vars = array();
// Process the parsed variables based on custom defined rules
$vars = $this->_processParseRules($uri);
// Parse RAW URL
if($this->_mode == JROUTER_MODE_RAW) {
$vars += $this->_parseRawRoute($uri);
}
// Parse SEF URL
if($this->_mode == JROUTER_MODE_SEF) {
$vars += $vars + $this->_parseSefRoute($uri);
}
return array_merge($this->getVars(), $vars);
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
Code Examples