-----------------------------------------------------
Constructors
OCSP_CMS_PEARCACHE
OCSP_CMS_PEARCACHE
()
adds or replaces a host if $aId is 0 the host is removed from the cache
void
addProjIdFromHTTP_HOST
(int $aId, [string $aHost = ""], [string $urlRegex = ""], [ $aServerName = ""])
-
int
$aId: (0 -> unset the cache object)
-
string
$aHost
-
string
$urlRegex
-
$aServerName
clears the cache by removing the cache directory
void
cleanProject
(
CMS_PROJECT $aProject, [
boolean $debug =
FALSE])
void
clearProjIdFromHTTP_HOST
([boolean $debug = FALSE])
void
&getMenuCacheObj
([boolean $chkDir = FALSE], [boolean $debug = FALSE])
-
boolean
$chkDir
-
boolean
$debug
array
getMenuCacheOptions
([boolean $chkDir = FALSE], [boolean $debug = FALSE])
-
boolean
$chkDir: (if true the existens of page cache dir is checked)
-
boolean
$debug
returns an array with all data for a menu node
mixed
getMenuData
( $aId, [boolean $debug = FALSE], int $pag_id)
-
int
$pag_id
-
boolean
$debug
-
$aId
boolean
getMenuKeyTree
(int $projId, [ $debug = FALSE], string $treeKey)
-
int
$projId
-
string
$treeKey
-
$debug
sets the global environment of the tree from the cache
boolean
getMenuNodesVal
(int $projId, [ $debug = FALSE], string $treeKey)
-
int
$projId
-
string
$treeKey
-
$debug
array
getMenuPageListVal
(mixed $aId, [boolean $debug = FALSE])
-
mixed
$aId: (int) menu id or (string) PROJ_$*PROJ_ID$ for project root pages
-
boolean
$debug
returns an array with page values
mixed
getMenuVal
(int $aId, [boolean $debug = FALSE])
void
&getPageCacheObj
([boolean $chkDir = FALSE], [boolean $debug = FALSE])
-
boolean
$chkDir
-
boolean
$debug
array
getPageCacheOptions
([boolean $chkDir = FALSE], [boolean $debug = FALSE])
-
boolean
$chkDir: (if true the existens of page cache dir is checked)
-
boolean
$debug
returns an array with all data for a page
mixed
getPageData
( $aId, [boolean $debug = FALSE], int $pag_id)
-
int
$pag_id
-
boolean
$debug
-
$aId
string
getPageHeader
(
CMS_PAGE_V2 $pageObj, [
boolean $debug =
FALSE])
array
getPageTmplRow
(int $projId, $tmplId, [boolean $debug = FALSE], int $pageId)
-
int
$projId
-
int
$pageId
-
boolean
$debug
-
$tmplId
returns an array with page values
mixed
getPageVal
(int $aId, [boolean $debug = FALSE])
Cache_Lite
&getProjCacheObj
(int $projId, [boolean $chkDir = FALSE], [boolean $debug = FALSE])
-
int
$projId
-
boolean
$chkDir
-
boolean
$debug
array
getProjCssArray
(int $projId, [boolean $debug = FALSE])
-
int
$projId
-
boolean
$debug
gets a projects database values from the cache
array
getProjDBValues
(int $projId, [boolean $debug = FALSE])
-
int
$projId
-
boolean
$debug
int
getProjIdFromHTTP_HOST
([boolean $debug = FALSE])
returns if the global menu nodeval array has been loaded
boolean
menuNodesValLoaded
(int $projId, [string $menuTreeIndex = 'T_CMS_MENU'])
-
int
$projId
-
string
$menuTreeIndex
sets page cache values
boolean
setMenuData
(
&$aNode, [
boolean $debug =
FALSE],
CMS_PAGE_V2 $aPage)
stores a projects database values to the cache
void
setMenuKeyTree
(
$projId,
$keyArr, [
boolean $debug =
FALSE],
CMS_PROJECT $aProj)
array
setMenuPageListVal
(mixed $aId, $arr_cache, [boolean $debug = FALSE])
-
mixed
$aId: (int) menu id or (string) PROJ_$*PROJ_ID$ for project root pages
-
boolean
$debug
-
$arr_cache
sets the menuTreeKey (index of $GLOBALS['OCSP_VAL']['DBMS_TREE'][$this->menuTreeIndex])
void
setMenuTreeIndex
(string $treeName)
sets page cache values
boolean
setPageData
(
&$aPage, [
boolean $debug =
FALSE],
CMS_PAGE_V2 $aPage)
array
setPageTmplRow
(int $projId, $tmplId, $tmplRow, [boolean $debug = FALSE], int $pageId, array $pageRow)
-
int
$projId
-
int
$pageId
-
array
$pageRow
-
boolean
$debug
-
$tmplId
-
$tmplRow
array
setProjCssArray
(int $projId, $cssArr, [boolean $debug = FALSE])
-
int
$projId
-
boolean
$debug
-
$cssArr
stores a projects database values to the cache
void
setProjDBValues
(
CMS_PROJECT $aProj, [
boolean $debug =
FALSE])