Difference between revisions of "JSessionStorage::getInstance"
From Joomla! Documentation
(Layout updates) |
m (preparing for archive only) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
Returns a session storage handler object, only creating it if it doesn't already exist. | Returns a session storage handler object, only creating it if it doesn't already exist. | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public static | + | public static function getInstance ( |
+ | $name= 'none' | ||
+ | $options=array | ||
+ | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 32: | Line 30: | ||
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' database A object | |
− | database A object | + | * '''Defined''' on line 43 of libraries/joomla/session/storage.php |
− | + | * '''Since''' {{JVer|11.1 }} | |
− | libraries/joomla/session/storage.php | + | * '''Referenced by''' |
− | * | + | ** [[API17:JSession::__construct|JSession::__construct]] |
− | |||
− | * [[JSession::__construct | ||
===See also=== | ===See also=== | ||
− | + | * {{JVer|11.1}} '''JSessionStorage::getInstance source code''' on [[jplatform:session/storage.php#cl-35|BitBucket]] | |
− | + | * {{JVer|11.1}} Class [[API17:JSessionStorage|JSessionStorage]] | |
− | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Session|Session]] | |
− | * | + | * [[API17:JSessionStorage::getInstance|Other versions of JSessionStorage::getInstance]] |
− | * [[JSessionStorage::getInstance|Other versions of | + | |
− | + | ||
− | ===Examples=== | + | ===User contributed notes=== |
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JSessionStorage::getInstance | category=JSessionStorage::getInstance | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 22:39, 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.
JSessionStorage::getInstance[edit]
Description[edit]
Returns a session storage handler object, only creating it if it doesn't already exist.
public static function getInstance (
$name= 'none'
$options=array
)
Parameter | Type | Default | Description |
---|---|---|---|
$name | name | 'none' | The session store to instantiate |
$options | array() |
- Returns database A object
- Defined on line 43 of libraries/joomla/session/storage.php
- Since
- Referenced by
See also[edit]
- JSessionStorage::getInstance source code on BitBucket
- Class JSessionStorage
- Subpackage Session
- Other versions of JSessionStorage::getInstance
User contributed notes[edit]
Code Examples[edit]