Difference between revisions of "JURI::setVar"
From Joomla! Documentation
m (→User contributed notes: re-categorisation) |
m (preparing for archive only) |
||
(4 intermediate revisions by the same 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. | ||
− | + | ||
− | + | ||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
public function setVar ( | public function setVar ( | ||
Line 37: | Line 35: | ||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JURI::setVar source code''' on [[jplatform:environment/uri.php#cl-346|BitBucket]] | * {{JVer|11.1}} '''JURI::setVar source code''' on [[jplatform:environment/uri.php#cl-346|BitBucket]] | ||
− | * {{JVer|11.1}} Class [[JURI | + | * {{JVer|11.1}} Class [[API17:JURI|JURI]] |
− | * {{JVer|11.1}} Subpackage [[Subpackage_Environment | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Environment|Environment]] |
− | * [[JURI::setVar|Other versions of JURI::setVar]] | + | * [[API17:JURI::setVar|Other versions of JURI::setVar]] |
− | + | ||
− | + | ||
− | |||
− | |||
===User contributed notes=== | ===User contributed notes=== | ||
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JURI::setVar | category=JURI::setVar | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Line 55: | Line 51: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 22:53, 24 March 2017
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.
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
User contributed notes[edit]
Code Examples[edit]