Packageindex Classtrees Modulegroups Elementlist Report XML Files

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

 

Methods inherited from jpeto_core

jpeto_core, getkey, getuniqueidfromkey, getlanguagefromkey, getversionfromkey, conv, translate, reconv

Public Method Summary

void

jpeto_cache_manager([ integer $UniqueID, string $Language, string $Version ])

Constructor for jpeto_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

$UniqueID

unique identifier of current object
integer

$p_UniqueID

unique identifier of parent object
array

$parentList

list of parent objects
string

$Expires

default expiry date

Included files inherited from jpeto_core

jpeto/jpeto_config.php, jpeto/jpeto_util.php, jpeto/jpeto_cache_manager.php

Included files Summary, Type: include_once

jpeto/jpeto_core.php Warning: documentation is missing.
jpeto/jpeto_object.php Warning: documentation is missing.

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


Included Files, Type: include_once

jpeto/jpeto_core.php

include_once( jpeto/jpeto_core.php )



jpeto/jpeto_object.php

include_once( jpeto/jpeto_object.php )




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta