[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Cache/Controller/ -> CallbackController.php (summary)

Joomla! Content Management System

Copyright: (C) 2007 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 229 lines (5 kb)
Included or required:0 times
Referenced: 2 times
Includes or requires: 0 files

Defines 1 class

CallbackController:: (3 methods):
  get()
  store()
  _makeId()


Class: CallbackController  - X-Ref

Joomla! Cache callback type object

get($callback, $args = array()   X-Ref
Executes a cacheable callback if not found in cache else returns cached output and result

param: callable  $callback    Callback or string shorthand for a callback
param: array     $args        Callback arguments
param: mixed     $id          Cache ID
param: boolean   $wrkarounds  True to use workarounds
param: array     $woptions    Workaround options
return: mixed  Result of the callback

store($data, $id, $group = null, $wrkarounds = true)   X-Ref
Store data to cache by ID and group

param: mixed    $data        The data to store
param: string   $id          The cache data ID
param: string   $group       The cache data group
param: boolean  $wrkarounds  True to use wrkarounds
return: boolean  True if cache stored

_makeId($callback, $args)   X-Ref
Generate a callback cache ID

param: mixed  $callback  Callback to cache
param: array  $args      Arguments to the callback method to cache
return: string  MD5 Hash



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer