API17

Difference between revisions of "JApplication::setUserState"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
m (→‎See also: moving preparation)
(4 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JApplication::setUserState|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JApplication::setUserState|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JApplication->setUserState ($key, $value)
+
public function setUserState (
 +
        $key
 +
        $value
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 30: Line 32:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' mixed The previous state, if one existed. since 1.5
mixed The previous state, if one existed. since 1.5
+
* '''Defined''' on line 493 of libraries/joomla/application/application.php
===Defined in===
 
libraries/joomla/application/application.php
 
===Referenced by===
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JApplication::setUserState source code''' on [[jplatform:application/application.php#cl-485|BitBucket]]
 +
* {{JVer|11.1}} Class [[API17:JApplication|JApplication]]
 +
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]]
 +
* [[API17:JApplication::setUserState|Other versions of JApplication::setUserState]]
 +
{{SeeAlso:JApplication::setUserState}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JApplication::setUserState|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JApplication::setUserState|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JApplication/11.1|JApplication]]
+
===User contributed notes===
* [[JApplication::setUserState|Other versions of this method]]
 
{{SeeAlso:JApplication::setUserState}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 50: Line 51:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JApplication]][[Category:JApplication::setUserState]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Revision as of 19:42, 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.

Joomla 11.1 JApplication::setUserState[edit]

Description[edit]

Sets the value of a user state variable.

Template:Description:JApplication::setUserState [Edit Descripton]

public function setUserState (
        $key
        $value
)
Parameter Type Default Description
$key string The path of the state.
$value string The value of the variable.
  • Returns mixed The previous state, if one existed. since 1.5
  • Defined on line 493 of libraries/joomla/application/application.php

See also[edit]

Template:SeeAlso:JApplication::setUserState [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />