JCacheControllerCallback: Difference between revisions
From Joomla! Documentation
Updated to r1448:247ba8d88526 |
m preparing for archive only |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
=={{JVer|11.1}} JCacheControllerCallback== | =={{JVer|11.1}} JCacheControllerCallback== | ||
===Description=== | ===Description=== | ||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
| Line 14: | Line 12: | ||
|- | |- | ||
|public | |public | ||
|[[JCacheControllerCallback::call | |[[API17:JCacheControllerCallback::call|call]] | ||
|Executes a cacheable callback if not found in cache else returns cached output and result. | |Executes a cacheable callback if not found in cache else returns cached output and result. | ||
|- | |- | ||
|public | |public | ||
|[[JCacheControllerCallback::get | |[[API17:JCacheControllerCallback::get|get]] | ||
|Executes a cacheable callback if not found in cache else returns cached output and result. | |Executes a cacheable callback if not found in cache else returns cached output and result. | ||
|- | |- | ||
|} | |} | ||
* '''Defined in''' libraries/joomla/cache/controller/callback.php | * '''Defined in''' libraries/joomla/cache/controller/callback.php | ||
* '''Extends''' [[JCacheController | * '''Extends''' [[API17:JCacheController|JCacheController]] | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.cache.controller.callback' );</source> | <source lang="php">jimport( 'joomla.cache.controller.callback' );</source> | ||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JCacheControllerCallback source code''' on [[jplatform:cache/controller/callback.php|BitBucket]] | * {{JVer|11.1}} '''JCacheControllerCallback source code''' on [[jplatform:cache/controller/callback.php|BitBucket]] | ||
* {{JVer|11.1}} Subpackage [[Subpackage Cache | * {{JVer|11.1}} Subpackage [[API17:Subpackage Cache|Cache]] | ||
* [[JCacheControllerCallback|Other versions of JCacheControllerCallback]] | * [[API17:JCacheControllerCallback|Other versions of JCacheControllerCallback]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JCacheControllerCallback | category=JCacheControllerCallback | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
| Line 45: | Line 41: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude> | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> | ||
Latest revision as of 02:25, 25 March 2017
JCacheControllerCallback
Description
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | call | Executes a cacheable callback if not found in cache else returns cached output and result. |
| public | get | Executes a cacheable callback if not found in cache else returns cached output and result. |
- Defined in libraries/joomla/cache/controller/callback.php
- Extends JCacheController
Importing
jimport( 'joomla.cache.controller.callback' );
See also
JCacheControllerCallback source code on BitBucket
Subpackage Cache- Other versions of JCacheControllerCallback
User contributed notes
Code Examples