API15

JRouter/getVar: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
No edit summary
m removing red link to edit, no existant pages
Line 3: Line 3:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JRouter/getVar|Edit Descripton]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>


{{Description:JRouter/getVar}}
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 40: Line 40:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JRouter/getVar|Edit See Also]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>
{{SeeAlso:JRouter/getVar}}
<! removed transcluded page call, red link never existed >


===Examples===
===Examples===
Line 55: Line 55:
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API15]]

Revision as of 18:45, 12 May 2013

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

<CodeExamplesForm />