|
eZ Publish
[4.2]
|
Keeps track of expiry keys and their timestamps. More...
Public Member Functions | |
| eZExpiryHandler () | |
| hasTimestamp ($name) | |
| isModified () | |
| Returns the data modification status. | |
| restore () | |
| setTimestamp ($name, $value) | |
| store () | |
| timestamp ($name) | |
Static Public Member Functions | |
| static | fetchData ($path) |
| static | getTimestamp ($name, $default=false) |
| static | hasInstance () |
| static | instance () |
| Returns a shared instance of the eZExpiryHandler class. | |
| static | registerShutdownFunction () |
| static | shutdown () |
Public Attributes | |
| $IsModified | |
| $Timestamps | |
Static Private Attributes | |
| static | $isShutdownFunctionRegistered = false |
Keeps track of expiry keys and their timestamps.
Definition at line 40 of file ezexpiryhandler.php.
| eZExpiryHandler::eZExpiryHandler | ( | ) |
Constructor
Definition at line 45 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.
Definition at line 69 of file ezexpiryhandler.php.
| static eZExpiryHandler::getTimestamp | ( | $ | name, |
| $ | default = false |
||
| ) | [static] |
false if not, Definition at line 134 of file ezexpiryhandler.php.
Referenced by eZTemplateCacheBlock\handle(), and eZTemplateCacheFunction\processCached().
| static eZExpiryHandler::hasInstance | ( | ) | [static] |
Definition at line 164 of file ezexpiryhandler.php.
Referenced by shutdown().
| eZExpiryHandler::hasTimestamp | ( | $ | name | ) |
Definition at line 112 of file ezexpiryhandler.php.
| static eZExpiryHandler::instance | ( | ) | [static] |
Returns a shared instance of the eZExpiryHandler class.
Definition at line 149 of file ezexpiryhandler.php.
Referenced by eZContentClassAttribute\cachedInfo(), eZContentClass\canInstantiateClasses(), eZContentClass\canInstantiateClassList(), eZContentClassAttribute\classAttributeIdentifiersHash(), eZContentClass\classIdentifiersHash(), eZCache\clearContentCache(), eZCache\clearContentTreeMenu(), eZCache\clearImageAlias(), eZCache\clearItem(), eZCache\clearTemplateBlockCache(), eZCache\clearUserInfoCache(), eZContentObject\expireAllCache(), eZContentObject\expireAllViewCache(), eZURLWildcard\expireCache(), eZRole\expireCache(), eZTSTranslator\expireCache(), eZContentClassAttribute\expireCache(), eZContentObject\expireComplexViewModeCache(), eZContentObject\expireTemplateBlockCache(), eZURLWildcard\expiryTimestamp(), eZExpiryHandler(), eZTSTranslator\eZTSTranslator(), eZUserDiscountRule\fetchIDListByUserID(), getTimestamp(), eZContentObject\isCacheExpired(), eZContentObject\isComplexViewModeCacheExpired(), eZContentObjectStateGroup\limitations(), eZRole\revertFromTemporaryVersion(), shutdown(), eZUserDiscountRule\store(), eZContentObjectStateGroup\store(), eZContentClass\store(), and eZContentClass\storeDefined().
| eZExpiryHandler::isModified | ( | ) |
Returns the data modification status.
Definition at line 196 of file ezexpiryhandler.php.
| static eZExpiryHandler::registerShutdownFunction | ( | ) | [static] |
Registers shutdown function to be called at the end of script execution
Definition at line 183 of file ezexpiryhandler.php.
Referenced by eZContentClassAttribute\cachedInfo(), eZContentClass\canInstantiateClasses(), eZContentClass\canInstantiateClassList(), eZContentClassAttribute\classAttributeIdentifiersHash(), eZContentClass\classIdentifiersHash(), eZUser\cleanupCache(), eZCache\clearContentCache(), eZCache\clearContentTreeMenu(), eZCache\clearImageAlias(), eZCache\clearItem(), eZCache\clearTemplateBlockCache(), eZCache\clearUserInfoCache(), eZContentObject\expireAllCache(), eZContentObject\expireAllViewCache(), eZRole\expireCache(), eZTSTranslator\expireCache(), eZContentObject\expireComplexViewModeCache(), eZContentObject\expireTemplateBlockCache(), eZUserDiscountRule\fetchIDListByUserID(), eZUser\groups(), eZTemplateCacheBlock\handle(), eZUser\instance(), eZContentObject\isCacheExpired(), eZContentObject\isComplexViewModeCacheExpired(), eZImageManager\isImageTimestampValid(), eZContentObjectStateGroup\limitations(), eZUser\limitValueList(), eZTemplateCacheFunction\processCached(), eZRole\revertFromTemporaryVersion(), eZUser\roleIDList(), eZUserDiscountRule\store(), eZUser\store(), eZContentObjectStateGroup\store(), eZContentClass\store(), eZContentClass\storeDefined(), and eZUser\userInfoExpiry().
| eZExpiryHandler::restore | ( | ) |
Will load timestamp values from disk.
Definition at line 58 of file ezexpiryhandler.php.
Referenced by eZExpiryHandler().
| eZExpiryHandler::setTimestamp | ( | $ | name, |
| $ | value | ||
| ) |
Sets the timestamp value $value for expiry key $name.
Definition at line 103 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 172 of file ezexpiryhandler.php.
| eZExpiryHandler::store | ( | ) |
Will store the current timestamp values to disk.
Definition at line 78 of file ezexpiryhandler.php.
| eZExpiryHandler::timestamp | ( | $ | name | ) |
false if not, Definition at line 120 of file ezexpiryhandler.php.
| eZExpiryHandler::$IsModified |
Definition at line 213 of file ezexpiryhandler.php.
eZExpiryHandler::$isShutdownFunctionRegistered = false [static, private] |
Definition at line 205 of file ezexpiryhandler.php.
Referenced by registerShutdownFunction().
| eZExpiryHandler::$Timestamps |
Definition at line 207 of file ezexpiryhandler.php.
Referenced by fetchData(), and restore().