JSessionStorage::getInstance: Difference between revisions
From Joomla! Documentation
Bulk upload by Doxiki2 |
m preparing for archive only |
||
| (6 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 | |||
===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 03:39, 25 March 2017
JSessionStorage::getInstance
Description
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
JSessionStorage::getInstance source code on BitBucket
Class JSessionStorage
Subpackage Session- Other versions of JSessionStorage::getInstance
User contributed notes
Code Examples