Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5

 Class JCacheCallback

Description

Joomla! Cache callback type object

Located in /joomla/cache/handlers/callback.php (line 26)

Class JObject   (Subpackage Base)

Abstract class JCache
   
   Class JCacheCallback   (Subpackage Cache)
Method Summary
Method mixed call ()
Method mixed get (mixed $callback, array $args, [ $id = false])
Methods
call (line 43)

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

Since arguments to this function are read with func_get_args you can pass any number of arguments to this method as long as the first argument passed is the callback definition.

The callback definition can be in several forms:

  • Standard PHP Callback array <http://php.net/callback> [recommended]
  • Function name as a string eg. 'foo' for function foo()
  • Static method name as a string eg. 'MyClass::myMethod' for method myMethod() of class MyClass

  • return: Result of the callback
  • since: 1.5
  • access: public
mixed call ()
get (line 61)

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

  • return: Result of the callback
  • since: 1.5
  • access: public
mixed get (mixed $callback, array $args, [ $id = false])
  • mixed $callback: Callback or string shorthand for a callback
  • array $args: Callback arguments
  • $id

Redefinition of:
JCache::get()
Get cached data by id and group

Inherited Methods

Inherited From JCache

 JCache::__construct()
 JCache::clean()
 JCache::gc()
 JCache::get()
 JCache::getInstance()
 JCache::remove()
 JCache::setCacheValidation()
 JCache::setCaching()
 JCache::setLifeTime()
 JCache::store()
 JCache::_getStorageHandler()

Inherited From JObject

 JObject::JObject()
 JObject::__construct()
 JObject::get()
 JObject::getPublicProperties()
 JObject::set()
 JObject::toString()

Documentation generated on Mon, 05 Mar 2007 20:53:47 +0000 by phpDocumentor 1.3.1