Difference between revisions of "JRequest::setVar"
From Joomla! Documentation
(Bulk upload by Doxiki2) |
m (moving preparation) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JRequest::setVar|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JRequest::setVar|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public static | + | public static function setVar ( |
+ | $name | ||
+ | $value=null | ||
+ | $hash= 'method' | ||
+ | $overwrite=true | ||
+ | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 42: | Line 44: | ||
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' string Previous value | |
− | string Previous value | + | * '''Defined''' on line 288 of libraries/joomla/environment/request.php |
− | + | * '''Since''' {{JVer|11.1 }} | |
− | libraries/joomla/environment/request.php | + | * '''Referenced by''' |
− | + | ** [[API17:JApplicationHelper::getComponentName|JApplicationHelper::getComponentName]] | |
− | * [[JApplicationHelper | + | ** [[API17:JController::getInstance|JController::getInstance]] |
− | * [[JController | + | ** [[API17:JModelList::getUserStateFromRequest|JModelList::getUserStateFromRequest]] |
− | * [[JModelList | ||
===See also=== | ===See also=== | ||
+ | * {{JVer|11.1}} '''JRequest::setVar source code''' on [[jplatform:environment/request.php#cl-280|BitBucket]] | ||
+ | * {{JVer|11.1}} Class [[API17:JRequest|JRequest]] | ||
+ | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Environment|Environment]] | ||
+ | * [[API17:JRequest::setVar|Other versions of JRequest::setVar]] | ||
+ | {{SeeAlso:JRequest::setVar}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JRequest::setVar|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JRequest::setVar|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | + | ===User contributed notes=== | |
− | |||
− | |||
− | === | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 65: | Line 68: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Revision as of 21:24, 11 May 2013
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.
JRequest::setVar[edit]
Description[edit]
Set a variabe in one of the request variables.
Template:Description:JRequest::setVar [Edit Descripton]
public static function setVar (
$name
$value=null
$hash= 'method'
$overwrite=true
)
Parameter | Type | Default | Description |
---|---|---|---|
$name | string | Name | |
$value | string | null | Value |
$hash | string | 'method' | Hash |
$overwrite | boolean | true | Boolean |
- Returns string Previous value
- Defined on line 288 of libraries/joomla/environment/request.php
- Since
- Referenced by
See also[edit]
- JRequest::setVar source code on BitBucket
- Class JRequest
- Subpackage Environment
- Other versions of JRequest::setVar
Template:SeeAlso:JRequest::setVar [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />