Actions

API16

JCacheCallback/call

From Joomla! Documentation

< API16:JCacheCallback
Revision as of 17:38, 22 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Executes a cacheable callback if not found in cache else returns cached output and result

[Edit Descripton]

Description:JCacheCallback/call

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);
}

[Edit See Also] SeeAlso:JCacheCallback/call

Examples

<CodeExamplesForm />