JCacheControllerCallback: Difference between revisions
From Joomla! Documentation
Bulk upload by Doxiki2 |
m preparing for archive only |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
=={{JVer|11.1}} JCacheControllerCallback== | |||
===Description=== | |||
{{ | |||
=== | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
!Visibility | |||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
|[[JCacheControllerCallback::call | |public | ||
|[[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. | ||
|- | |- | ||
|[[JCacheControllerCallback::get | |public | ||
|[[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 | |||
* '''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}} Subpackage [[API17:Subpackage Cache|Cache]] | ||
* [[API17:JCacheControllerCallback|Other versions of JCacheControllerCallback]] | |||
===Examples=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JCacheControllerCallback | category=JCacheControllerCallback | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
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