File/cms/page/function.phpinc

Description

CMS page Functions

Functions
OCSPFUNC_checkRowOnline (line 146)

checks if a page (as DB-ROW) is online

  • version: pk-04-12-21
  • since: pk-04-12-14
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

  • todo: show login when enableLogin is TRUE
  • todo: language support not fully implemented
  • since: pk-04-12-14
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

  • return: PAGE* object
  • version: pk-05-09-01
  • since: pk-04-07-30
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)

  • return: PAGE_* object or NULL in case of now row
  • since: pk-04-07-30
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

  • return: PAGE* object
  • since: pk-04-07-30
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

  • since: pk-04-12-14
string OCSPFUNC_showStatesCSV ()

Documentation generated on Thu, 08 Jan 2009 17:44:15 +0100 by phpDocumentor 1.4.0a2