API17

Difference between revisions of "JURI::setVar"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
m (→‎User contributed notes: re-categorisation)
(2 intermediate revisions by one other user not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JURI::setVar|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JURI::setVar|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===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 354 of libraries/joomla/environment/uri.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/environment/uri.php
 
===Referenced by===
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JURI::setVar source code''' on [[jplatform:environment/uri.php#cl-346|BitBucket]]
 +
* {{JVer|11.1}} Class [[JURI/11.1|JURI]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Environment/11.1|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>
* [[JURI/11.1|JURI]]
+
===User contributed notes===
* [[JURI::setVar|Other versions of this method]]
 
{{SeeAlso:JURI::setVar}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 52: Line 52:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JURI]][[Category:JURI::setVar]]</noinclude>
+
<noinclude>[[Category:JURI]]</noinclude>

Revision as of 12:41, 9 August 2012

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JURI::setVar[edit]

Description[edit]

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

Template: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 354 of libraries/joomla/environment/uri.php
  • Since Joomla 11.1

See also[edit]

Template:SeeAlso:JURI::setVar [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />