JCacheCallback/call: Difference between revisions
From Joomla! Documentation
m removing red link to edit, no existant pages |
m clean up |
||
| Line 2: | Line 2: | ||
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 | ||
<! removed transcluded page call, red link never existed > | <! removed transcluded page call, red link never existed > | ||
| Line 32: | Line 30: | ||
</source> | </source> | ||
<! removed transcluded page call, red link never existed > | <! removed transcluded page call, red link never existed > | ||
Revision as of 13:42, 24 March 2017
Description
Executes a cacheable callback if not found in cache else returns cached output and result
<! removed transcluded page call, red link never existed >
Syntax
call()
Returns
mixed Result of the callback
Defined in
libraries/joomla/cache/handler/callback.php
Importing
jimport( 'joomla.cache.handler.callback' );
Source Body
function call()
{
// Get callback and arguments
$args = func_get_args();
$callback = array_shift($args);
return $this->get($callback, $args);
}
<! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />