Class JCacheControllerCallback
Joomla! Cache callback type object
-
JCacheController
-
JCacheControllerCallback
Methods summary
public
mixed
|
#
call( )
Executes a cacheable callback if not found in cache else returns cached
output and result
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 see <https://secure.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
Deprecated
4.0
Returns
mixed - Result of the callback
Since
11.1
|
public
mixed
|
#
get( mixed $callback, array $args = array(), mixed $id = false, boolean $wrkarounds = false, array $woptions = array() )
Executes a cacheable callback if not found in cache else returns cached
output and result
Executes a cacheable callback if not found in cache else returns cached
output and result
Parameters
- $callback
mixed - $callback Callback or string shorthand for a callback
- $args
array - $args Callback arguments
- $id
mixed - $id Cache ID
- $wrkarounds
boolean - $wrkarounds True to use wrkarounds
- $woptions
array - $woptions Workaround options
Returns
mixed - Result of the callback
Since
11.1
Overrides
|
protected
string
|
#
_makeId( callable $callback, array $args )
Generate a callback cache ID
Generate a callback cache ID
Parameters
- $callback
callable - $callback Callback to cache
- $args
array - $args Arguments to the callback method to cache
Returns
string - MD5 Hash
Since
11.1
|
__call()
,
__construct()
,
addIncludePath()
,
getInstance()
,
store()
Magic methods summary
Properties summary
$cache
,
$options