API15:JRouter/getVar
From Joomla! Documentation
Description
Get a router variable
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
getVar($key)
| Parameter Name | Default Value | Description |
|---|---|---|
| $key | $key The name of the variable $return mixed Value of the variable |
Defined in
libraries/joomla/application/router.php
Importing
jimport( 'joomla.application.router' );
Source Body
function getVar($key)
{
$result = null;
if(isset($this->_vars[$key])) {
$result = $this->_vars[$key];
}
return $result;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
Code Examples