JURI::setVar/1.5

From Joomla! Documentation
< JURI::setVar(Difference between revisions)
Jump to: navigation, search
(Bulk upload by Doxiki2)
 
m (User contributed notes: re-categorisation)
 
(One intermediate revision by one user not shown)
Line 4: Line 4:
 
Adds a query variable and value, replacing the value if it already exists and returning the old value.  
 
Adds a query variable and value, replacing the value if it already exists and returning the old value.  
  
 +
{{Description:JURI::setVar}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JURI/setVar|Edit Descripton]]<nowiki>]</nowiki>
+
<nowiki>[</nowiki>[[Description:JURI::setVar|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
{{Description:JURI/setVar}}
 
===Since===
 
{{JVer|1.5 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JURI->setVar ($name, $value)
+
public function setVar (
 +
        $name
 +
        $value
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 32: Line 32:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' string Previous value for the query variable
string Previous value for the query variable
+
* '''Defined''' on line 390 of libraries/joomla/environment/uri.php
===Defined in===
+
* '''Since''' {{JVer|1.5 }}
libraries/joomla/environment/uri.php
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|1.5}} '''JURI::setVar''' on [http://api.joomla.org/Joomla-Framework/Environment/JURI.html#setVar api.joomla.org]
 +
* {{JVer|1.5}} '''JURI source code''' on [[jframework15:environment/uri.php|JoomlaCode]]
 +
* {{JVer|1.5}} Class [[JURI/1.5|JURI]]
 +
* {{JVer|1.5}} Subpackage [[Subpackage_Environment/1.5|Environment]]
 +
* [[JURI::setVar|Other versions of JURI::setVar]]
 +
{{SeeAlso:JURI::setVar}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JURI/setVar|Edit See Also]]<nowiki>]</nowiki>
+
<nowiki>[</nowiki>[[SeeAlso:JURI::setVar|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
{{SeeAlso:JURI/setVar}}
+
===User contributed notes===
* [[JURI/1.5|JURI]]
+
* [[JURI::setVar|Other versions of this method]]
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 50: Line 51:
 
category=JURI::setVar
 
category=JURI::setVar
 
category=CodeExample
 
category=CodeExample
category=ClassExample
+
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JURI]][[Category:JURI::setVar]]</noinclude>
+
<noinclude>[[Category:JURI]]</noinclude>

Latest revision as of 13:06, 9 August 2012

[edit] Joomla 1.5 JURI::setVar

[edit] Description

Adds a query variable and value, replacing the value if it already exists and returning the old value.

Description:JURI::setVar [Edit Descripton]

public function setVar (
        $name
        $value
)
Parameter Type Default Description
$name string Name of the query variable to set
$value string Value of the query variable
  • Returns string Previous value for the query variable
  • Defined on line 390 of libraries/joomla/environment/uri.php
  • Since Joomla 1.5

[edit] See also

SeeAlso:JURI::setVar [Edit See Also]

[edit] User contributed notes

<CodeExamplesForm />


Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox