API17

Difference between revisions of "JCache::getInstance"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by the same user not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JCache::getInstance|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JCache::getInstance|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JCache::getInstance ($type= 'output', $options=array())
+
public static function getInstance (
 +
        $type= 'output'
 +
        $options=array
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 32: Line 32:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' object A  object
object A  object
+
* '''Defined''' on line 84 of libraries/joomla/cache/cache.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/cache/cache.php
+
* '''Referenced by'''
===Referenced by===
+
** [[JFactory::getCache/11.1|JFactory::getCache]]
* [[JFactory/getCache/11.1|JFactory::getCache]]
 
 
===See also===
 
===See also===
 +
* {{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}} Subpackage [[Subpackage_Cache/11.1|Cache]]
 +
* [[JCache::getInstance|Other versions of JCache::getInstance]]
 +
{{SeeAlso:JCache::getInstance}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JCache::getInstance|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JCache::getInstance|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JCache/11.1|JCache]]
+
===User contributed notes===
* [[JCache::getInstance|Other versions of this method]]
 
{{SeeAlso:JCache::getInstance}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 53: Line 54:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JCache]][[Category:JCache::getInstance]]</noinclude>
 
<noinclude>[[Category:JCache]][[Category:JCache::getInstance]]</noinclude>

Revision as of 20:14, 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 JCache::getInstance[edit]

Description[edit]

Returns a reference to a cache adapter object, always creating it.

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

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]

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

User contributed notes[edit]

<CodeExamplesForm />