API17

Difference between revisions of "JCacheStorage::getInstance"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JCacheStorage::getInstance|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JCacheStorage::getInstance|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JCacheStorage::getInstance ($handler=null, $options=array())
+
public static function getInstance (
 +
        $handler=null
 +
        $options=array
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 32: Line 32:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' object A JCacheStorageHandler object
object A JCacheStorageHandler object
+
* '''Defined''' on line 94 of libraries/joomla/cache/storage.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/cache/storage.php (line 94)
+
* '''Referenced by'''
* see source code in [[jplatform:cache/storage.php#cl-94|BitBucket]]
+
** [[JCache::_getStorage/11.1|JCache::_getStorage]]
===Referenced by===
 
* [[JCache::_getStorage/11.1|JCache::_getStorage]]
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JCacheStorage::getInstance source code''' on [[jplatform:cache/storage.php#cl-86|BitBucket]]
 +
* {{JVer|11.1}} Class [[JCacheStorage/11.1|JCacheStorage]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Cache/11.1|Cache]]
 +
* [[JCacheStorage::getInstance|Other versions of JCacheStorage::getInstance]]
 +
{{SeeAlso:JCacheStorage::getInstance}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JCacheStorage::getInstance|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JCacheStorage::getInstance|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JCacheStorage/11.1|JCacheStorage]]
+
===User contributed notes===
* [[JCacheStorage::getInstance|Other versions of this method]]
 
{{SeeAlso:JCacheStorage::getInstance}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 54: Line 54:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JCacheStorage]][[Category:JCacheStorage::getInstance]]</noinclude>
 
<noinclude>[[Category:JCacheStorage]][[Category:JCacheStorage::getInstance]]</noinclude>

Revision as of 20:16, 27 April 2011

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 JCacheStorage::getInstance[edit]

Description[edit]

Returns a cache storage handler object, only creating it if it doesn't already exist.

Template:Description:JCacheStorage::getInstance [Edit Descripton]

public static function getInstance (
        $handler=null
        $options=array
)
Parameter Type Default Description
$handler string null The cache storage handler to instantiate
$options array()
  • Returns object A JCacheStorageHandler object
  • Defined on line 94 of libraries/joomla/cache/storage.php
  • Since Joomla 11.1
  • Referenced by

See also[edit]

Template:SeeAlso:JCacheStorage::getInstance [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />