|
eZ Publish
[trunk]
|
Keeps track of expiry keys and their timestamps. More...
Public Member Functions | |
| eZExpiryHandler () | |
| Constructor. | |
| hasTimestamp ($name) | |
| Checks if an expiry timestamp exist. | |
| isModified () | |
| Returns the data modification status. | |
| restore () | |
| Load the expiry timestamps from cache. | |
| setTimestamp ($name, $value) | |
| Sets the expiry timestamp for a key. | |
| store () | |
| Stores the current timestamps values to cache. | |
| timestamp ($name) | |
| Returns the expiry timestamp for a key. | |
Static Public Member Functions | |
| static | fetchData ($path) |
| Includes the expiry file and extracts the $Timestamps variable from it. | |
| static | getTimestamp ($name, $default=false) |
| Returns the expiry timestamp for a key, or a default value if it isn't set. | |
| static | hasInstance () |
| Checks if a shared instance of eZExpiryHandler exists. | |
| static | instance () |
| Returns a shared instance of the eZExpiryHandler class. | |
| static | registerShutdownFunction () |
| Registers the shutdown function. | |
| static | shutdown () |
| Called at the end of execution and will store the data if it is modified. | |
Public Attributes | |
| $IsModified | |
| $Timestamps | |
Static Private Attributes | |
| static | $isShutdownFunctionRegistered = false |
Keeps track of expiry keys and their timestamps.
Definition at line 15 of file ezexpiryhandler.php.
Constructor.
Definition at line 20 of file ezexpiryhandler.php.
Referenced by hasInstance(), and instance().
| static eZExpiryHandler::fetchData | ( | $ | path | ) | [static] |
Includes the expiry file and extracts the $Timestamps variable from it.
| string | $path |
Definition at line 46 of file ezexpiryhandler.php.
| static eZExpiryHandler::getTimestamp | ( | $ | name, |
| $ | default = false |
||
| ) | [static] |
Returns the expiry timestamp for a key, or a default value if it isn't set.
| string | $name | Expiry key name |
| int | $default | Default value that will be returned if the key isn't set |
Definition at line 113 of file ezexpiryhandler.php.
Referenced by eZTemplateCacheBlock\handle(), and eZTemplateCacheFunction\processCached().
| static eZExpiryHandler::hasInstance | ( | ) | [static] |
Checks if a shared instance of eZExpiryHandler exists.
Definition at line 144 of file ezexpiryhandler.php.
Referenced by shutdown().
| eZExpiryHandler::hasTimestamp | ( | $ | name | ) |
Checks if an expiry timestamp exist.
| string | $name | Expiry key name |
Definition at line 83 of file ezexpiryhandler.php.
| static eZExpiryHandler::instance | ( | ) | [static] |
Returns a shared instance of the eZExpiryHandler class.
Definition at line 128 of file ezexpiryhandler.php.
Referenced by ezpRestCacheStorageApcCluster\__construct(), eZExtension\activeExtensions(), eZContentClassAttribute\cachedInfo(), eZContentClass\canInstantiateClassList(), eZContentClassAttribute\classAttributeIdentifiersHash(), eZContentClass\classIdentifiersHash(), eZCache\clearActiveExtensions(), ezpRestRoutesCacheClear\clearCache(), eZCache\clearContentCache(), eZCache\clearContentTreeMenu(), eZCache\clearImageAlias(), eZCache\clearItem(), eZCache\clearTemplateBlockCache(), eZCache\clearUserInfoCache(), eZContentObject\expireAllCache(), eZContentObject\expireAllViewCache(), eZURLWildcard\expireCache(), eZTSTranslator\expireCache(), eZContentClassAttribute\expireCache(), eZContentObject\expireComplexViewModeCache(), eZContentObject\expireTemplateBlockCache(), eZURLWildcard\expiryTimestamp(), eZExpiryHandler(), eZContentFunctionCollection\fetchContentTreeMenuExpiry(), eZUserDiscountRule\fetchIDListByUserID(), getTimestamp(), eZContentObject\isCacheExpired(), eZContentObject\isComplexViewModeCacheExpired(), eZContentObjectStateGroup\limitations(), eZTSTranslator\loadTranslationFile(), eZRole\revertFromTemporaryVersion(), shutdown(), eZUserDiscountRule\store(), eZContentObjectStateGroup\store(), eZContentClass\store(), and eZContentClass\storeVersioned().
Returns the data modification status.
Definition at line 177 of file ezexpiryhandler.php.
| static eZExpiryHandler::registerShutdownFunction | ( | ) | [static] |
Registers the shutdown function.
Definition at line 164 of file ezexpiryhandler.php.
Referenced by ezpRestCacheStorageApcCluster\__construct(), eZContentClassAttribute\cachedInfo(), eZContentClass\canInstantiateClassList(), eZContentClassAttribute\classAttributeIdentifiersHash(), eZContentClass\classIdentifiersHash(), eZUser\cleanupCache(), eZCache\clearActiveExtensions(), eZCache\clearContentCache(), eZCache\clearContentTreeMenu(), eZCache\clearImageAlias(), eZCache\clearItem(), eZCache\clearTemplateBlockCache(), eZCache\clearUserInfoCache(), eZContentObject\expireAllCache(), eZContentObject\expireAllViewCache(), eZTSTranslator\expireCache(), eZContentObject\expireComplexViewModeCache(), eZContentObject\expireTemplateBlockCache(), eZContentFunctionCollection\fetchContentTreeMenuExpiry(), eZUserDiscountRule\fetchIDListByUserID(), eZTemplateCacheBlock\handle(), eZContentObject\isCacheExpired(), eZContentObject\isComplexViewModeCacheExpired(), eZImageManager\isImageTimestampValid(), eZContentObjectStateGroup\limitations(), eZTemplateCacheFunction\processCached(), eZRole\revertFromTemporaryVersion(), eZUserDiscountRule\store(), eZContentObjectStateGroup\store(), eZContentClass\store(), eZContentClass\storeVersioned(), and eZUser\userInfoExpiry().
Load the expiry timestamps from cache.
Definition at line 35 of file ezexpiryhandler.php.
Referenced by eZExpiryHandler().
| eZExpiryHandler::setTimestamp | ( | $ | name, |
| $ | value | ||
| ) |
Sets the expiry timestamp for a key.
| string | $name | Expiry key |
| int | $value | Expiry timestamp value |
Definition at line 70 of file ezexpiryhandler.php.
| static eZExpiryHandler::shutdown | ( | ) | [static] |
Called at the end of execution and will store the data if it is modified.
Definition at line 152 of file ezexpiryhandler.php.
Stores the current timestamps values to cache.
Definition at line 55 of file ezexpiryhandler.php.
| eZExpiryHandler::timestamp | ( | $ | name | ) |
Returns the expiry timestamp for a key.
| string | $name | Expiry key |
Definition at line 95 of file ezexpiryhandler.php.
| eZExpiryHandler::$IsModified |
Definition at line 198 of file ezexpiryhandler.php.
eZExpiryHandler::$isShutdownFunctionRegistered = false [static, private] |
Definition at line 186 of file ezexpiryhandler.php.
Referenced by registerShutdownFunction().
| eZExpiryHandler::$Timestamps |
Definition at line 192 of file ezexpiryhandler.php.
Referenced by fetchData(), and restore().