Class Zend_Cache_Frontend_Function

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

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

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

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::$_backend
Zend_Cache_Core::$_backendCapabilities
Zend_Cache_Core::$_directivesList
Zend_Cache_Core::$_extendedBackend
Zend_Cache_Core::$_options
Methods
Constructor __construct (line 63)

Constructor

  • access: public
void __construct ([ $options = array()])
  • array $options: Associative array of options

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

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], [int $priority = 8])
  • 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)
  • int $priority: integer between 0 (very low priority) and 10 (maximum priority) used by some particular backends

Inherited Methods

Inherited From Zend_Cache_Core

 Zend_Cache_Core::__construct()
 Zend_Cache_Core::clean()
 Zend_Cache_Core::getBackend()
 Zend_Cache_Core::getFillingPercentage()
 Zend_Cache_Core::getIds()
 Zend_Cache_Core::getIdsMatchingTags()
 Zend_Cache_Core::getIdsNotMatchingTags()
 Zend_Cache_Core::getOption()
 Zend_Cache_Core::getTags()
 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::touch()
 Zend_Cache_Core::_log()
 Zend_Cache_Core::_loggerSanity()

Documentation generated on Fri, 08 Jan 2010 17:21:05 -0500 by phpDocumentor 1.4.3