API17:JRequest::setVar
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
| 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''' |
| − | * | + | ** [[JApplicationHelper::getComponentName/11.1|JApplicationHelper::getComponentName]] |
| − | + | ** [[JController::getInstance/11.1|JController::getInstance]] | |
| − | * [[JApplicationHelper::getComponentName/11.1|JApplicationHelper::getComponentName]] | + | ** [[JModelList::getUserStateFromRequest/11.1|JModelList::getUserStateFromRequest]] |
| − | * [[JController::getInstance/11.1|JController::getInstance]] | + | |
| − | * [[JModelList::getUserStateFromRequest/11.1|JModelList::getUserStateFromRequest]] | + | |
===See also=== | ===See also=== | ||
| + | * {{JVer|11.1}} '''JRequest::setVar source code''' on [[jplatform:environment/request.php#cl-280|BitBucket]] | ||
| + | * {{JVer|11.1}} Class [[JRequest/11.1|JRequest]] | ||
| + | * {{JVer|11.1}} Subpackage [[Subpackage_Environment/11.1|Environment]] | ||
| + | * [[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 66: | Line 68: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JRequest]][[Category:JRequest::setVar]]</noinclude> | <noinclude>[[Category:JRequest]][[Category:JRequest::setVar]]</noinclude> | ||
Revision as of 21:33, 27 April 2011
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JRequest::setVar
Description
Set a variabe in one of the request variables.
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
-
JRequest::setVar source code on BitBucket
-
Class JRequest
-
Subpackage Environment
- Other versions of JRequest::setVar
SeeAlso:JRequest::setVar [Edit See Also]
User contributed notes
<CodeExamplesForm />
