Controller/Action/Helper/Cache.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Controller  
Version
$Id: Cache.php 24853 2012-05-31 23:19:27Z adamlundrigan $  

\Zend_Controller_Action_Helper_Cache

Package: Zend\Controller
Parent(s)
\Zend_Controller_Action_Helper_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotected\Zend_Controller_Action $_actionController = null
inherited
$_actionController
Inherited from: \Zend_Controller_Action_Helper_Abstract::$$_actionController
>VPropertyprotectedarray $_caching = array()
Indexed map of Actions to attempt Page caching on by Controller
Default valuearray()Details
Type
array
>VPropertyprotectedarray $_extensions = array()
Indexed map of Extensions by Controller and Action
Default valuearray()Details
Type
array
>VPropertyprotectedmixed $_frontController = null
Default valuenullDetails
Type
mixed
Inherited_from
\Zend_Controller_Action_Helper_Abstract::$$_frontController  
>VPropertyprotected\Zend_Cache_Manager $_manager = null
Local Cache Manager object used by Helper
Default valuenullDetails
Type
\Zend_Cache_Manager
>VPropertyprotected$_obStarted = false
Track output buffering condition
Default valuefalseDetails
Type
n/a
>VPropertyprotectedarray $_tags = array()
Indexed map of Tags by Controller and Action
Default valuearray()Details
Type
array

Methods

methodpublic__call(string $method, array $args) : mixed

Proxy non-matched methods back to Zend_Cache_Manager where appropriate

Parameters
NameTypeDescription
$methodstring
$argsarray
Returns
TypeDescription
mixed
methodprotected_encodeCacheId(string $requestUri) : string

Encode a Cache ID as hexadecimal.

This is a workaround because Backend ID validation is trapped in the Frontend classes. Will try to get this reversed for ZF 2.0 because it's a major annoyance to have IDs so restricted!

Parameters
NameTypeDescription
$requestUristring
Returns
TypeDescription
string
methodpublicdirect(array $actions, array $tags = array(),  $extension = null) : void

Tell the helper which actions are cacheable and under which tags (if applicable) they should be recorded with

Parameters
NameTypeDescription
$actionsarray
$tagsarray
$extension
methodpublicgetActionController() : \Zend_Controller_Action
inherited

Retrieve current action controller

Inherited from: \Zend_Controller_Action_Helper_Abstract::getActionController()
Returns
TypeDescription
\Zend_Controller_Action
methodpublicgetCacheableActions() : array

Return a list of actions for the current Controller marked for caching

Returns
TypeDescription
array
methodpublicgetCacheableTags() : array

Return a list of tags set for all cacheable actions

Returns
TypeDescription
array
methodpublicgetFrontController() : \Zend_Controller_Front
inherited

Retrieve front controller instance

Inherited from: \Zend_Controller_Action_Helper_Abstract::getFrontController()
Returns
TypeDescription
\Zend_Controller_Front
methodpublicgetManager() : \Zend_Cache_Manager

Get the Cache Manager instance or instantiate the object if not exists.

Attempts to load from bootstrap if available.

Returns
TypeDescription
\Zend_Cache_Manager
methodpublicgetName() : string
inherited

getName()

Inherited from: \Zend_Controller_Action_Helper_Abstract::getName()
Returns
TypeDescription
string
methodpublicgetRequest() : \Zend_Controller_Request_Abstract
inherited

getRequest() -

Inherited from: \Zend_Controller_Action_Helper_Abstract::getRequest()
Returns
TypeDescription
\Zend_Controller_Request_Abstract$request
methodpublicgetResponse() : \Zend_Controller_Response_Abstract
inherited

getResponse() -

Inherited from: \Zend_Controller_Action_Helper_Abstract::getResponse()
Returns
TypeDescription
\Zend_Controller_Response_Abstract$response
methodpublicinit() : void
inherited

Hook into action controller initialization

Inherited from: \Zend_Controller_Action_Helper_Abstract::init()
methodpublicpostDispatch() : void
inherited

Hook into action controller postDispatch() workflow

Inherited from: \Zend_Controller_Action_Helper_Abstract::postDispatch()
methodpublicpreDispatch() : void

Commence page caching for any cacheable actions

methodpublicremovePage(string $relativeUrl, bool $recursive = false) : mixed

Remove a specific page cache static file based on its relative URL from the application's public directory.

The file extension is not required here; usually matches the original REQUEST_URI that was cached.

Parameters
NameTypeDescription
$relativeUrlstring
$recursivebool
Returns
TypeDescription
mixed
methodpublicremovePagesTagged(array $tags) : mixed

Remove a specific page cache static file based on its relative URL from the application's public directory.

The file extension is not required here; usually matches the original REQUEST_URI that was cached.

Parameters
NameTypeDescription
$tagsarray
Returns
TypeDescription
mixed
methodpublicsetActionController(\Zend_Controller_Action $actionController = null) : \Zend_Controller_ActionHelper_Abstract
inherited

setActionController()

Inherited from: \Zend_Controller_Action_Helper_Abstract::setActionController()
Parameters
NameTypeDescription
$actionController\Zend_Controller_Action
Returns
TypeDescription
\Zend_Controller_ActionHelper_AbstractProvides a fluent interface
methodpublicsetManager(\Zend_Cache_Manager $manager) : void

Set an instance of the Cache Manager for this helper

Parameters
NameTypeDescription
$manager\Zend_Cache_Manager
Documentation was generated by phpDocumentor 2.0.0a12.