Difference between revisions of "JCacheControllerCallback::get"
From Joomla! Documentation
(Bulk upload by Doxiki2) |
m (preparing for archive only) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
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. | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public | + | public function get ( |
+ | $callback | ||
+ | $args=array | ||
+ | $id=false | ||
+ | $wrkarounds=false | ||
+ | $woptions=array | ||
+ | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 47: | Line 48: | ||
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' mixed Result of the callback | |
− | mixed Result of the callback | + | * '''Defined''' on line 59 of libraries/joomla/cache/controller/callback.php |
− | + | * '''Since''' {{JVer|11.1 }} | |
− | libraries/joomla/cache/controller/callback.php | ||
− | |||
===See also=== | ===See also=== | ||
− | + | * {{JVer|11.1}} '''JCacheControllerCallback::get source code''' on [[jplatform:cache/controller/callback.php#cl-51|BitBucket]] | |
− | + | * {{JVer|11.1}} Class [[API17:JCacheControllerCallback|JCacheControllerCallback]] | |
− | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Cache|Cache]] | |
− | * | + | * [[API17:JCacheControllerCallback::get|Other versions of JCacheControllerCallback::get]] |
− | * [[JCacheControllerCallback::get|Other versions of | + | |
− | + | ||
− | ===Examples=== | + | ===User contributed notes=== |
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JCacheControllerCallback::get | category=JCacheControllerCallback::get | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 21:25, 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.
JCacheControllerCallback::get[edit]
Description[edit]
Executes a cacheable callback if not found in cache else returns cached output and result.
public function get (
$callback
$args=array
$id=false
$wrkarounds=false
$woptions=array
)
Parameter | Type | Default | Description |
---|---|---|---|
$callback | mixed | Callback or string shorthand for a callback | |
$args | array | array() | Callback arguments |
$id | string | false | Cache id |
$wrkarounds | boolean | false | Perform workarounds on data? |
$woptions | array | array() | Workaround options |
- Returns mixed Result of the callback
- Defined on line 59 of libraries/joomla/cache/controller/callback.php
- Since
See also[edit]
- JCacheControllerCallback::get source code on BitBucket
- Class JCacheControllerCallback
- Subpackage Cache
- Other versions of JCacheControllerCallback::get
User contributed notes[edit]
Code Examples[edit]