[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/libraries/joomla/cache/handler/ -> callback.php (summary)

(no description)

Copyright: Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
License: GNU/GPL, see LICENSE.php
Version: $Id: callback.php 14401 2010-01-26 14:10:00Z louis $
File Size: 133 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

JCacheCallback:: (3 methods):
  call()
  get()
  _makeId()


Class: JCacheCallback  - X-Ref

Joomla! Cache callback type object

call()   X-Ref
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: mixed    Result of the callback

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

param: mixed    Callback or string shorthand for a callback
param: array    Callback arguments
return: mixed    Result of the callback

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

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



Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1