API15

API15:JCacheCallback/call

From Joomla! Documentation

Revision as of 22:11, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Executes a cacheable callback if not found in cache else returns cached output and result <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Descr...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

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

[Edit Descripton]

Template: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] Template:SeeAlso:JCacheCallback/call

Examples

<CodeExamplesForm />