Back to Joomla project (class list)

Class CallbackController - list of methods

Joomla! Cache callback type object

Extends

Package: Joomla\CMS\Cache\Controller
Copyright: (C) 2007 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Cache/Controller/CallbackController.php
Project: Joomla

Method Summary

public mixed
(mixed $callback, mixed $args = array(), mixed $id = false, mixed $wrkarounds = false, mixed $woptions = array())

Executes a cacheable callback if not found in cache else returns cached output and result
Parameters
  • callable $callback Callback or string shorthand for a callback
  • array $args Callback arguments
  • mixed $id Cache ID
  • bool $wrkarounds True to use workarounds
  • array $woptions Workaround options
Returns
  • mixed Result of the callback
Since
  • 1.7.0
Show source code of this method: get Source Code

public bool
(mixed $data, mixed $id, mixed $group = null, mixed $wrkarounds = true)

Store data to cache by ID and group
Parameters
  • mixed $data The data to store
  • string $id The cache data ID
  • string $group The cache data group
  • bool $wrkarounds True to use wrkarounds
Returns
  • bool True if cache stored
Since
  • 4.0.0
Show source code of this method: store Source Code

protected string
(mixed $callback, mixed $args)

Generate a callback cache ID
Parameters
  • mixed $callback Callback to cache
  • array $args Arguments to the callback method to cache
Returns
  • string MD5 Hash
Since
  • 1.7.0
Show source code of this method: _makeId Source Code

Tags Summary

Since
1.7.0