API17

JSessionStorage::getInstance: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
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.  


{{Description:JSessionStorage::getInstance}}
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JSessionStorage::getInstance|Edit Descripton]]<nowiki>]</nowiki>
</span>
===Since===
{{JVer|11.1 }}
===Synopsis===
<source lang="php">
<source lang="php">
public static JSessionStorage::getInstance ($name= 'none', $options=array())
public static function getInstance (
        $name= 'none'
        $options=array
)
</source>
</source>
{| class="wikitable"
{| class="wikitable"
Line 32: Line 30:
|-
|-
|}
|}
===Returns===
* '''Returns''' database A  object
database A  object
* '''Defined''' on line 43 of libraries/joomla/session/storage.php
===Defined in===
* '''Since''' {{JVer|11.1 }}
libraries/joomla/session/storage.php
* '''Referenced by'''
===Referenced by===
** [[API17:JSession::__construct|JSession::__construct]]
* [[JSession/__construct/11.1|JSession::__construct]]
===See also===
===See also===
<span class="editsection" style="font-size:76%;">
* {{JVer|11.1}} '''JSessionStorage::getInstance source code''' on [[jplatform:session/storage.php#cl-35|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JSessionStorage::getInstance|Edit See Also]]<nowiki>]</nowiki>
* {{JVer|11.1}} Class [[API17:JSessionStorage|JSessionStorage]]
</span>
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Session|Session]]
* [[JSessionStorage/11.1|JSessionStorage]]
* [[API17:JSessionStorage::getInstance|Other versions of JSessionStorage::getInstance]]
* [[JSessionStorage::getInstance|Other versions of this method]]
 
{{SeeAlso:JSessionStorage::getInstance}}
 
===Examples===
===User contributed notes===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JSessionStorage::getInstance
category=JSessionStorage::getInstance
category=CodeExample
namespace=CodeExample
category=MethodExample
category=MethodExample
include=*
include=*
namespace=CodeExample
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:JSessionStorage]][[Category:JSessionStorage::getInstance]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 03:39, 25 March 2017

Joomla 11.1 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 Joomla 11.1
  • Referenced by

See also


User contributed notes

Code Examples