JCacheController::getInstance: Difference between revisions
From Joomla! Documentation
m moving preparation |
m clean up |
||
| Line 4: | Line 4: | ||
Returns a reference to a cache adapter object, always creating it. | Returns a reference to a cache adapter object, always creating it. | ||
{{Description:JCacheController::getInstance}} | {{subst:Description:JCacheController::getInstance}} | ||
<source lang="php"> | <source lang="php"> | ||
public static function getInstance ( | public static function getInstance ( | ||
| Line 42: | Line 40: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Cache|Cache]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Cache|Cache]] | ||
* [[API17:JCacheController::getInstance|Other versions of JCacheController::getInstance]] | * [[API17:JCacheController::getInstance|Other versions of JCacheController::getInstance]] | ||
{{SeeAlso:JCacheController::getInstance}} | {{subst:SeeAlso:JCacheController::getInstance}} | ||
===User contributed notes=== | ===User contributed notes=== | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
Revision as of 14:50, 24 March 2017
JCacheController::getInstance
Description
Returns a reference to a cache adapter object, always creating it.
{{subst:Description:JCacheController::getInstance}}
public static function getInstance (
$type= 'output'
$options=array
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $type | string | 'output' | The cache object type to instantiate |
| $options | array() |
- Returns object A object
- Defined on line 69 of libraries/joomla/cache/controller.php
- Since

- Referenced by
See also
JCacheController::getInstance source code on BitBucket
Class JCacheController
Subpackage Cache- Other versions of JCacheController::getInstance
{{subst:SeeAlso:JCacheController::getInstance}}
User contributed notes
<CodeExamplesForm />