Difference between revisions of "JCacheController::getInstance"
From Joomla! Documentation
m (→User contributed notes: moving preparation) |
m (preparing for archive only) |
||
(2 intermediate revisions by the same user not shown) | |||
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. | ||
− | + | ||
− | + | ||
− | |||
− | |||
<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::getInstance | + | ** [[API17:JCache::getInstance|JCache::getInstance]] |
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JCacheController::getInstance source code''' on [[jplatform:cache/controller.php#cl-61|BitBucket]] | * {{JVer|11.1}} '''JCacheController::getInstance source code''' on [[jplatform:cache/controller.php#cl-61|BitBucket]] | ||
− | * {{JVer|11.1}} Class [[JCacheController | + | * {{JVer|11.1}} Class [[API17:JCacheController|JCacheController]] |
− | * {{JVer|11.1}} Subpackage [[Subpackage_Cache | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Cache|Cache]] |
− | * [[JCacheController::getInstance|Other versions of JCacheController::getInstance]] | + | * [[API17:JCacheController::getInstance|Other versions of JCacheController::getInstance]] |
− | + | ||
− | + | ||
− | |||
− | |||
===User contributed notes=== | ===User contributed notes=== | ||
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JCacheController::getInstance | category=JCacheController::getInstance | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* |
Latest revision as of 21:25, 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.
JCacheController::getInstance[edit]
Description[edit]
Returns a reference to a cache adapter object, always creating it.
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[edit]
- JCacheController::getInstance source code on BitBucket
- Class JCacheController
- Subpackage Cache
- Other versions of JCacheController::getInstance
User contributed notes[edit]
Code Examples[edit]