Joomla! 1.5 API

Packages

Package: Joomla-Framework

License

Content on this site is copyright © 2005 - 2011 Open Source Matters Inc and can be used in accordance with the Joomla! Electronic Documentation License. Some parts of this website may be subject to other licenses.

 Class JCacheCallback

Description

Joomla! Cache callback type object

  • since: 1.5

Located in /joomla/cache/handler/callback.php (line 25)

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])
Variables

Inherited Variables

Inherited from JObject

Variable JObject::$_errors
Methods
call (line 42)

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 60)

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::getStores()
 JCache::remove()
 JCache::setCacheValidation()
 JCache::setCaching()
 JCache::setLifeTime()
 JCache::store()
 JCache::_getStorage()

Inherited From JObject

 JObject::JObject()
 JObject::__construct()
 JObject::get()
 JObject::getError()
 JObject::getErrors()
 JObject::getProperties()
 JObject::getPublicProperties()
 JObject::set()
 JObject::setError()
 JObject::setProperties()
 JObject::toString()
Support Joomla!