API17

JCacheController: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
Layout updates
Doxiki2 (talk | contribs)
Updated to r1448:247ba8d88526
Line 1: Line 1:
__NOTOC__
__NOTOC__
=={{JVer|11.1}} JCacheController==
===Description===
{{Description:JCacheController}}
<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JCacheController|Edit Descripton]]<nowiki>]</nowiki>
<nowiki>[</nowiki>[[Description:JCacheController|Edit Descripton]]<nowiki>]</nowiki>
</span>
</span>
{{Description:JCacheController}}
===Defined in===
libraries/joomla/cache/controller.php
* see source code in [[jplatform:cache/controller.php|BitBucket]]
===Subpackage===
[[Subpackage Cache/11.1|Cache]]
===Extends===
===Extended by===
* [[JCacheControllerCallback/11.1|JCacheControllerCallback]]
* [[JCacheControllerOutput/11.1|JCacheControllerOutput]]
* [[JCacheControllerPage/11.1|JCacheControllerPage]]
* [[JCacheControllerView/11.1|JCacheControllerView]]
===Methods===
===Methods===
{| class="wikitable sortable"
{| class="wikitable sortable"
|-
|-
!Visibility
!Method name
!Method name
!Description
!Description
|-
|-
|public
|[[JCacheController::__call/11.1|__call]]
|[[JCacheController::__call/11.1|__call]]
|
|
|-
|-
|public
|[[JCacheController::__construct/11.1|__construct]]
|[[JCacheController::__construct/11.1|__construct]]
|Constructor.  
|Constructor.  
|-
|-
|public
|[[JCacheController::get/11.1|get]]
|[[JCacheController::get/11.1|get]]
|Get stored cached data by id and group.  
|Get stored cached data by id and group.  
|-
|-
|public
|[[JCacheController::setCaching/11.1|setCaching]]
|[[JCacheController::setCaching/11.1|setCaching]]
|Set caching enabled state.  
|Set caching enabled state.  
|-
|-
|public
|[[JCacheController::setLifeTime/11.1|setLifeTime]]
|[[JCacheController::setLifeTime/11.1|setLifeTime]]
|Set cache lifetime.  
|Set cache lifetime.  
|-
|-
|public
|[[JCacheController::store/11.1|store]]
|[[JCacheController::store/11.1|store]]
|Store data to cache by id and group.  
|Store data to cache by id and group.  
|-
|-
|public static
|[[JCacheController::addIncludePath/11.1|addIncludePath]]
|[[JCacheController::addIncludePath/11.1|addIncludePath]]
|Add a directory where  should search for controllers.  
|Add a directory where  should search for controllers.  
|-
|-
|public static
|[[JCacheController::getInstance/11.1|getInstance]]
|[[JCacheController::getInstance/11.1|getInstance]]
|Returns a reference to a cache adapter object, always creating it.  
|Returns a reference to a cache adapter object, always creating it.  
|-
|-
|}
|}
* '''Defined in''' libraries/joomla/cache/controller.php
* '''Extended by'''
** [[JCacheControllerCallback/11.1|JCacheControllerCallback]]
** [[JCacheControllerOutput/11.1|JCacheControllerOutput]]
** [[JCacheControllerPage/11.1|JCacheControllerPage]]
** [[JCacheControllerView/11.1|JCacheControllerView]]
===Importing===
===Importing===
<source lang="php">jimport( 'joomla.cache.controller' );</source>
<source lang="php">jimport( 'joomla.cache.controller' );</source>
===See also===
===See also===
* JCacheController source code in [[jplatform:cache/controller.php|BitBucket]]
* {{JVer|11.1}} '''JCacheController source code''' on [[jplatform:cache/controller.php|BitBucket]]
* [[JCacheController|Other versions of this class]]
* {{JVer|11.1}} Subpackage [[Subpackage Cache/11.1|Cache]]
* [[JCacheController|Other versions of JCacheController]]
{{SeeAlso:JCacheController}}
{{SeeAlso:JCacheController}}
<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JCacheController|Edit See Also]]<nowiki>]</nowiki>
<nowiki>[</nowiki>[[SeeAlso:JCacheController|Edit See Also]]<nowiki>]</nowiki>
</span>
</span>
===Examples===
===User contributed notes===
<CodeExamplesForm />
<CodeExamplesForm />
<dpl>
<dpl>
Line 63: Line 70:
category=ClassExample
category=ClassExample
include=*
include=*
namespace=CodeExample
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JCacheController]]</noinclude>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JCacheController]]</noinclude>

Revision as of 22:56, 27 April 2011

Joomla 11.1 JCacheController

Description

Template:Description:JCacheController [Edit Descripton]

Methods

Visibility Method name Description
public __call
public __construct Constructor.
public get Get stored cached data by id and group.
public setCaching Set caching enabled state.
public setLifeTime Set cache lifetime.
public store Store data to cache by id and group.
public static addIncludePath Add a directory where should search for controllers.
public static getInstance Returns a reference to a cache adapter object, always creating it.

Importing

jimport( 'joomla.cache.controller' );

See also

Template:SeeAlso:JCacheController [Edit See Also]

User contributed notes

<CodeExamplesForm />