Methods

Returns microtime (Unix-Timestamp), used to calculate time of execution.

_getMicroTime() : float

access private

Returns

floatTimestamp

_initPEARCache()

_initPEARCache() 

Raises any defined event code by using eval().

_raiseEvent(string $name) : void

access private

Parameters

$name

string

Name of event 2 raise

Add option 4 caching (e. g. $_GET,$_POST, $_COOKIE, ...). Used 2 generate the id for caching.

addOption(string $name, string $option) : void

Parameters

$name

string

Name of option

$option

string

Value of option (any variable)

Constructor of cConCache

cConCache(string $cachedir, string $cachegroup, string $cacheprefix) 

Parameters

$cachedir

string

Directory 2 cache files

$cachegroup

string

Subdirectory 2 cache files

$cacheprefix

string

Prefixname 2 add 2 cached files

Set/Get the flag 2 debug cache object (prints out miss/hit state with execution time).

debug(bool $debug) : mixed

Parameters

$debug

bool

True 2 activate debugging or false.

Returns

mixedDebug flag or void

Set/Get the flag 2 enable caching.

enable(bool $enable) : mixed

Parameters

$enable

bool

True 2 enable chaching or false

Returns

mixedEnable flag or void

Handles ending of PEAR caching.

end() : void

Returns information cache hit/miss and execution time if caching is enabled.

getInfo() : string

Returns

stringInformation about cache if caching is enabled, otherwhise nothing.

Set/Get flag 2 print out cache info as html comment.

htmlComment(bool $htmlcomment) : void

Parameters

$htmlcomment

bool

True debugging or false.

Set/Get template to use on printing the chache info.

infoTemplate(string $template) : void

Parameters

$template

string

Template string including the '%s' format definition.

Set/Get caching lifetime in seconds.

lifetime(int $seconds) : mixed

Parameters

$seconds

int

New Lifetime in seconds

Returns

mixedActual lifetime or void

Removes any cached content if exists.

removeFromCache() : void

This is nesessary to delete cached articles, if they are changed on backend.

Handles PEAR caching. The script will be terminated by calling die(), if any cached content is found.

start(int $iPageStartTime) : void

Parameters

$iPageStartTime

int

Optional start time, e. g. start time of main script

 Properties

 

Option array 4 pear caching.

$_aCacheOptions : array

 

Handler array 2 store code, beeing executed on some events.

$_aEventCode : array

We have actually two events: - 'beforeoutput': code to execute before doing the output - 'afteroutput' code to execute after output

 

Option array 4 generating cache identifier (e. g. $_GET,$_POST, $_COOKIE, ...).

$_aIDOptions : array

 

Flag for output of debug informations.

$_bDebug : bool

 

Flag 2 activate caching.

$_bEnableCaching : bool

 

Flag 2 print html comment including some debug informations.

$_bHtmlComment : bool

 

Default lifetime of cached files.

$_iLifetime : int

 

Start time of caching.

$_iStartTime : int

 

PEAR Cache Output Object

$_oPearCache : \obj

 

Used 2 store debug message.

$_sDebugMsg : string

 

HTML code template used for debug message.

$_sDebugTpl : string

 

Directory 2 store cached output.

$_sDir : string

 

Subdirectory 2 store cached output.

$_sGroup : string

 

HTML comment template used for generating some debug infos.

$_sHtmlCommentTpl : string

 

Unique identifier for caching.

$_sID : string

 

Substring 2 add as prefix to cache-filename.

$_sPrefix : string