OCSPFUNC_checkRowOnline (line
146)
checks if a page (as DB-ROW) is online
boolean
OCSPFUNC_checkRowOnline
(array $pArr, [boolean $directCall = FALSE], [boolean $debug = FALSE])
-
array
$pArr
-
boolean
$directCall
-
boolean
$debug
OCSPFUNC_findPageOnline (line
222)
finds the page to show online
- first checks if a page with $pParams['PAG_ID'] is to show
- if $pParams['PAG_ID']=0 the first page of the menu with $pParams['MEN_ID'] is returned
- if $pParams['MEN_ID'] has no page and $searchInMenu == TRUE the menparents are searched for
a page to show with the current user rights or if $enableLogin the user is asked to login
$pParams is a array with the following keys:
- PROJ_ID: the currentproject id
- MEN_ID: the id of the current menu
- LANG_ID: the language id
- PAG_ID: the page id
CMS_PAGE
OCSPFUNC_findPageOnline
(
array $pParams, [
boolean $searchInMenu =
FALSE], [
boolean $enableLogin =
FALSE], [
boolean $debug =
FALSE])
-
array
$pParams
-
boolean
$searchInMenu
-
boolean
$enableLogin
-
boolean
$debug
OCSPFUNC_getPageObjFromRow (line
65)
creates a page object out of a given row array by useing OCSPFUNC_newPageObject() and populates it with the array data
mixed
OCSPFUNC_getPageObjFromRow
(array $row, [boolean $debug = FALSE])
-
array
$row
-
boolean
$debug
OCSPFUNC_loadFromDB (line
36)
first selects a the page from T_CMS_PAGE and returns OCSPFUNC_getPageObjFromRow($row)
mixed
OCSPFUNC_loadFromDB
(DBOBJ &$DB, int $projId, int $pageId, [int $langId = 0], [bool $debug = FALSE])
-
DBOBJ
&$DB
-
int
$projId
-
int
$pageId
-
int
$langId
-
bool
$debug
OCSPFUNC_newPageObject (line
99)
creates a page object of type $classpageV2
mixed
OCSPFUNC_newPageObject
([string $class = ""], [boolean $debug = FALSE])
-
string
$class
-
boolean
$debug
OCSPFUNC_showStatesCSV (line
293)
generates a comma seperated string with page states to show online
string
OCSPFUNC_showStatesCSV
()