API17

Difference between revisions of "JCache::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 reference to a cache adapter object, always creating it.  
 
Returns a reference to a cache adapter object, always creating it.  
  
{{Description:JCache::getInstance}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JCache::getInstance|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
 
<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'''
** [[JFactory::getCache/11.1|JFactory::getCache]]
+
** [[API17:JFactory::getCache|JFactory::getCache]]
 
===See also===
 
===See also===
 
* {{JVer|11.1}} '''JCache::getInstance source code''' on [[jplatform:cache/cache.php#cl-76|BitBucket]]
 
* {{JVer|11.1}} '''JCache::getInstance source code''' on [[jplatform:cache/cache.php#cl-76|BitBucket]]
* {{JVer|11.1}} Class [[JCache/11.1|JCache]]
+
* {{JVer|11.1}} Class [[API17:JCache|JCache]]
* {{JVer|11.1}} Subpackage [[Subpackage_Cache/11.1|Cache]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Cache|Cache]]
* [[JCache::getInstance|Other versions of JCache::getInstance]]
+
* [[API17:JCache::getInstance|Other versions of JCache::getInstance]]
{{SeeAlso:JCache::getInstance}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[SeeAlso:JCache::getInstance|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
 
===User contributed notes===
 
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JCache::getInstance
 
category=JCache::getInstance
category=CodeExample
+
namespace=CodeExample
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
Line 57: Line 53:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JCache]][[Category:JCache::getInstance]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 21:24, 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.

Joomla 11.1 JCache::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 84 of libraries/joomla/cache/cache.php
  • Since Joomla 11.1
  • Referenced by

See also[edit]


User contributed notes[edit]

Code Examples[edit]