|
|
|
File: c:/web/jpeto2/jpeto/jpeto_cache_manager.php
JPETo - James's Publishing & Editing Tool - jpeto_system
jpeto_cache_manager
jpeto_core | +-- jpeto_cache_manager
This class provides the cache manager
|
private class jpeto_cache_manager extends jpeto_core
This class provides the cache manager
|
| |
|
|
|
|
|
Private Method Summary |
| void |
updateParents()Startpoint for the recursive Update of all parent Objects |
| void |
updateParent(integer $UniqueID, string $Language, string $Version, string $Expires)Checks, if a parent Object's expires later than it's subobjects and calls updateExpirydate if necessary |
| void |
updateExpirydate(integer $UniqueID, string $Language, string $Version, string $Expires)Updates the ExpiryDate of an Object |
| boolean |
purgeCache(integer $UniqueID, string $Language, string $Version, string $Expires)removes the object from the Cache |
|
Fields inherited from jpeto_core |
| $j_language, $j_version, $j_jpetotype, $o_jpetotype, $adminmode, $islast, $isfirst, $recordset, $pointer, $subtype, $j_parentobject |
|
Private Field Summary |
| integer |
$UniqueIDunique identifier of current object |
| integer |
$p_UniqueIDunique identifier of parent object |
| array |
$parentListlist of parent objects |
| string |
$Expiresdefault expiry date |
|
|
|
|
|
Public Method Details |
jpeto_cache_manager |
|
public void jpeto_cache_manager( [ integer $UniqueID, string $Language, string $Version ] )
|
| |
Constructor for jpeto_cache_manager
|
| Parameter |
|
| integer |
$UniqueID |
= >>0<< |
|
the Unique Identifier of the Object to deal with |
|
|
| string |
$Language |
= >>"DE"<< |
|
sets the current language (Default: DE) |
|
|
| string |
$Version |
= >>"O"<< |
|
sets the current version (Default: O = Online) |
|
| Returns |
void |
|
|
Private Method Details |
updateParents |
|
private void updateParents( )
|
| |
Startpoint for the recursive Update of all parent Objects
|
| Returns |
void |
|
updateParent |
|
private void updateParent( integer $UniqueID, string $Language, string $Version, string $Expires )
|
| |
Checks, if a parent Object's expires later than it's subobjects and calls updateExpirydate if necessary
|
| Parameter |
|
| integer |
$UniqueID |
|
|
the Unique Identifier of the parent object |
|
|
| string |
$Language |
|
|
the Language of the parent object |
|
|
| string |
$Version |
|
|
the Version of the parent object |
|
|
| string |
$Expires |
|
|
the expiring date |
|
| Returns |
void |
|
updateExpirydate |
|
private void updateExpirydate( integer $UniqueID, string $Language, string $Version, string $Expires )
|
| |
Updates the ExpiryDate of an Object
|
| Parameter |
|
| integer |
$UniqueID |
|
|
the Unique Identifier of the object |
|
|
| string |
$Language |
|
|
the Language of the object |
|
|
| string |
$Version |
|
|
the Version of the object |
|
|
| string |
$Expires |
|
|
the new ExpiriyDate of the Object |
|
| Returns |
void |
|
purgeCache |
|
private boolean purgeCache( integer $UniqueID, string $Language, string $Version, string $Expires )
|
| |
removes the object from the Cache
|
| Parameter |
|
| integer |
$UniqueID |
|
|
the Unique Identifier of the object |
|
|
| string |
$Language |
|
|
the Language of the object |
|
|
| string |
$Version |
|
|
the Version of the object |
|
|
| string |
$Expires |
|
|
the ExpiriyDate of the Object |
|
| Returns |
boolean $success |
|
|
Private Field Details |
$UniqueID |
|
private integer $UniqueID
>><<
unique identifier of current object
|
|
$p_UniqueID |
|
private integer $p_UniqueID
>><<
unique identifier of parent object
|
|
$parentList |
|
private array $parentList
>>array()<<
list of parent objects
|
|
$Expires |
|
private string $Expires
>>"2100-01-01 00:00:00"<<
default expiry date
|
|
|
|
|
|
|
|
| PHPDoc 1.0beta |