Difference between revisions of "JCacheStorage::getInstance"
From Joomla! Documentation
(Updated to r1448:247ba8d88526) |
m (preparing for archive only) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
Returns a cache storage handler object, only creating it if it doesn't already exist. | Returns a cache storage handler object, only creating it if it doesn't already exist. | ||
− | + | ||
− | + | ||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
public static function getInstance ( | public static function getInstance ( | ||
Line 36: | Line 34: | ||
* '''Since''' {{JVer|11.1 }} | * '''Since''' {{JVer|11.1 }} | ||
* '''Referenced by''' | * '''Referenced by''' | ||
− | ** [[JCache::_getStorage | + | ** [[API17:JCache::_getStorage|JCache::_getStorage]] |
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JCacheStorage::getInstance source code''' on [[jplatform:cache/storage.php#cl-86|BitBucket]] | * {{JVer|11.1}} '''JCacheStorage::getInstance source code''' on [[jplatform:cache/storage.php#cl-86|BitBucket]] | ||
− | * {{JVer|11.1}} Class [[JCacheStorage | + | * {{JVer|11.1}} Class [[API17:JCacheStorage|JCacheStorage]] |
− | * {{JVer|11.1}} Subpackage [[Subpackage_Cache | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Cache|Cache]] |
− | * [[JCacheStorage::getInstance|Other versions of JCacheStorage::getInstance]] | + | * [[API17:JCacheStorage::getInstance|Other versions of JCacheStorage::getInstance]] |
− | + | ||
− | + | ||
− | |||
− | |||
===User contributed notes=== | ===User contributed notes=== | ||
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JCacheStorage::getInstance | category=JCacheStorage::getInstance | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Line 57: | Line 53: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 21:26, 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.
JCacheStorage::getInstance[edit]
Description[edit]
Returns a cache storage handler object, only creating it if it doesn't already exist.
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
- Referenced by
See also[edit]
- JCacheStorage::getInstance source code on BitBucket
- Class JCacheStorage
- Subpackage Cache
- Other versions of JCacheStorage::getInstance
User contributed notes[edit]
Code Examples[edit]