Cache/Frontend/Page.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Cache
- Subpackage
- Zend_Cache_Frontend
- Version
- $Id$
\Zend_Cache_Frontend_Page
- Parent(s)
- \Zend_Cache_Core
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

array $_activeOptions = array()array()Details- Type
- array

array $_specificOptions = array('http_conditional' => false, 'debug_header' => false, 'content_type_memorization' => false, 'memorize_headers' => array(), 'default_options' => array('cache_with_get_variables' => false, 'cache_with_post_variables' => false, 'cache_with_session_variables' => false, 'cache_with_files_variables' => false, 'cache_with_cookie_variables' => false, 'make_id_with_get_variables' => true, 'make_id_with_post_variables' => true, 'make_id_with_session_variables' => true, 'make_id_with_files_variables' => true, 'make_id_with_cookie_variables' => true, 'cache' => true, 'specific_lifetime' => false, 'tags' => array(), 'priority' => null), 'regexps' => array())array('http_conditional' => false, 'debug_header' => false, 'content_type_memorization' => false, 'memorize_headers' => array(), 'default_options' => array('cache_with_get_variables' => false, 'cache_with_post_variables' => false, 'cache_with_session_variables' => false, 'cache_with_files_variables' => false, 'cache_with_cookie_variables' => false, 'make_id_with_get_variables' => true, 'make_id_with_post_variables' => true, 'make_id_with_session_variables' => true, 'make_id_with_files_variables' => true, 'make_id_with_cookie_variables' => true, 'cache' => true, 'specific_lifetime' => false, 'tags' => array(), 'priority' => null), 'regexps' => array())Details- Type
- array
Methods

__construct(array $options = array()) : voidConstructor
| Name | Type | Description |
|---|---|---|
| $options | array | Associative array of options |
| Exception | Description |
|---|---|
| \Zend_Cache_Exception |

_flush(string $data) : stringcallback for output buffering (shouldn't really be called manually)
| Name | Type | Description |
|---|---|---|
| $data | string | Buffered output |
| Type | Description |
|---|---|
| string | Data to send to browser |

_makeId() : mixed | falseMake an id depending on REQUEST_URI and superglobal arrays (depending on options)
| Type | Description |
|---|---|
| mixed | false | a cache id (string), false if the cache should have not to be used |

_makePartialId(string $arrayName, bool $bool1, bool $bool2) : mixed | falseMake a partial id depending on options
| Name | Type | Description |
|---|---|---|
| $arrayName | string | Superglobal array name |
| $bool1 | bool | If true, cache is still on even if there are some variables in the superglobal array |
| $bool2 | bool | If true, we have to use the content of the superglobal array to make a partial id |
| Type | Description |
|---|---|
| mixed | false | Partial id (string) or false if the cache should have not to be used |

_setContentTypeMemorization(boolean $value) : voidSet the deprecated contentTypeMemorization option
| Name | Type | Description |
|---|---|---|
| $value | boolean | value |
- Deprecated

_setDefaultOptions(array $options) : voidSpecific setter for the 'default_options' option (with some additional tests)
| Name | Type | Description |
|---|---|---|
| $options | array | Associative array |
| Exception | Description |
|---|---|
| \Zend_Cache_Exception |

_setRegexps( $regexps) : voidSpecific setter for the 'regexps' option (with some additional tests)
| Name | Type | Description |
|---|---|---|
| $regexps |
| Exception | Description |
|---|---|
| \Zend_Cache_Exception |

start(string $id = false, boolean $doNotDie = false) : booleanStart the cache
| Name | Type | Description |
|---|---|---|
| $id | string | (optional) A cache id (if you set a value here, maybe you have to use Output frontend instead) |
| $doNotDie | boolean | For unit testing only ! |
| Type | Description |
|---|---|
| boolean | True if the cache is hit (false else) |