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> | ||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public | + | public function setVar ( |
+ | $name | ||
+ | $value | ||
+ | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 32: | Line 32: | ||
|- | |- | ||
|} | |} | ||
− | + | * '''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 |
− | + | * '''Since''' {{JVer|11.1 }} | |
− | libraries/joomla/environment/uri.php | ||
− | |||
===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> | ||
− | + | ===User contributed notes=== | |
− | |||
− | |||
− | === | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 52: | Line 52: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category:JURI | + | <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.
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
See also[edit]
- JURI::setVar source code on BitBucket
- Class JURI
- Subpackage Environment
- Other versions of JURI::setVar
Template:SeeAlso:JURI::setVar [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />