Class Zend_Cache_Frontend_Function

Description
  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Cache/Frontend/Function.php (line 36)

Zend_Cache_Core
   |
   --Zend_Cache_Frontend_Function
Variable Summary
Method Summary
 Zend_Cache_Frontend_Function __construct ([array $options = array()])
 mixed call (string $name, [array $parameters = array()], [array $tags = array()], [int $specificLifetime = false])
Variables
array $_specificOptions = array(
'cache_by_default' => true,
'cached_functions' => array(),'non_cached_functions'=>array())
(line 57)

This frontend specific options

====> (boolean) cache_by_default :

  • if true, function calls will be cached by default
====> (array) cached_functions :
  • an array of function names which will be cached (even if cache_by_default = false)
====> (array) non_cached_functions :
  • an array of function names which won't be cached (even if cache_by_default = true)

  • var: options
  • access: protected

Redefinition of:
Zend_Cache_Core::$_specificOptions
Not used for the core, just a sort a hint to get a common setOption() method (for the core and for frontends)

Inherited Variables

Inherited from Zend_Cache_Core

Zend_Cache_Core::$_backwardCompatibilityArray
Zend_Cache_Core::$_directivesList
Zend_Cache_Core::$_options
Methods
Constructor __construct (line 73)

Constructor

  • access: public
Zend_Cache_Frontend_Function __construct ([array $options = array()])
  • array $options: associative array of options

Redefinition of:
Zend_Cache_Core::__construct()
Constructor
call (line 90)

Main method : call the specified function or get the result from cache

  • return: result
  • access: public
mixed call (string $name, [array $parameters = array()], [array $tags = array()], [int $specificLifetime = false])
  • string $name: function name
  • array $parameters: function parameters
  • array $tags: cache tags
  • int $specificLifetime: if != false, set a specific lifetime for this cache record (null => infinite lifetime)

Inherited Methods

Inherited From Zend_Cache_Core

 Zend_Cache_Core::__construct()
 Zend_Cache_Core::clean()
 Zend_Cache_Core::get()
 Zend_Cache_Core::load()
 Zend_Cache_Core::remove()
 Zend_Cache_Core::save()
 Zend_Cache_Core::setBackend()
 Zend_Cache_Core::setLifetime()
 Zend_Cache_Core::setOption()
 Zend_Cache_Core::test()
 Zend_Cache_Core::_log()
 Zend_Cache_Core::_loggerSanity()

Documentation generated on Sat, 05 May 2007 11:55:14 -0700 by phpDocumentor 1.3.2