File/cms/page/CMS_PAGE_V2.phpclass

Description

Class file CMS_PAGE_V2.phpclass

Classes
Class Description
 class CMS_PAGE_V2 class to handel PAGES
Includes
 require_once (cms.conf.phpinc) (line 15)
Functions
cacheValues (line 2006)

writes the page values to the pear cache

  • since: pk-07-08-14
void cacheValues ([boolean $debug = False])
  • boolean $debug
chpater_MoveToPosition (line 1231)

moves a chapter to a specified positon (SORTORDER)

first updates the chapter and than calls $this->resortChapters(False,True,$debug)

void chpater_MoveToPosition (int $chaId, int $position, [boolean $debug = False])
  • int $chaId
  • int $position
  • boolean $debug
content (line 1766)

echos the content of the page

  • version: pk-05-11-10 debug infos
  • since: pk-04-08-19
void content ([int $chaShowMode = 0], [boolean $debug = False])
  • int $chaShowMode
  • boolean $debug
copyChaptersFrom (line 1147)

copies the chpaters from the page with id $sourceId into this page

  • version: pk-07-10-02
  • version: pk-05-03-12 bugfix
  • todo: CMS_PAGE_V2::copyChaptersFrom() inline SQL
void copyChaptersFrom (int $sourceId, [bool $outdated = False], [bool $debug = False])
  • int $sourceId: PAG_ID of sourcepage
  • bool $outdated: if true copy only pages with show till > now
  • bool $debug
execPrependCmds (line 1751)

executes a prepend script before the page output starts

  • abstract:
  • since: pk-07-10-04
void execPrependCmds ([boolean $debug = False])
  • boolean $debug
getChapPageModes (line 1489)

returns a comma seperated list of chapter page modes to show from $GLOBALS['OCSP_CMS']['CHAPTERSTATE']

  • since: pk-03-12-18
array getChapPageModes ()
getChapterObj (line 1090)
  • todo: CMS_PAGE_V2::getChapterObj() use cache
  • todo: CMS_PAGE_V2::getChapterObj() include chapter class if not exists
CMS_CHAPTER_V2 getChapterObj (int $chaId, [array $chaRow = NULL], [boolean $debug = False])
  • int $chaId
  • array $chaRow
  • boolean $debug
getChapterObjArray (line 1036)

returns an array of chapter objects

NOTE does not use CMS_PAGE_V2::getChapQuery()

  • version: pk-05-10-10
  • version: pk-05-11-16 checks if certain columns exists added
  • version: pk-07-09-11 use $this->getChapQuery
  • todo: CMS_PAGE_V2::getChapterObjArray() cacheing
  • since: pk-05-10-05
array getChapterObjArray ([int $showMode = 0], [boolean $onlineOnly = False], [boolean $debug = False])
  • int $showMode: (0=all)
  • boolean $onlineOnly
  • boolean $debug
getChapterTag (line 1667)

returns the tag for a single chapter

  • version: pk-05-10-10
  • version: pk-06-10-02 set MenId to the chapter
  • version: pk-07-06-01
  • since: pk-04-07-29
  • access: public
$string getChapterTag (array $chapRow, [boolean $debug = False], bool $chkShowVal)
  • array $chapRow
  • bool $chkShowVal
  • boolean $debug
getCSSHeaderTag (line 1806)

returns the css tag to echo in the header

  • version: pk-05-06-29 PROJ_ID added to style
  • version: pk-04-11-18
  • version: pk-05-09-01
  • version: pk-05-12-13
  • version: pk-06-07-19 write styles directly to the file
  • version: pk-06-01-04
  • since: pk-04-08-02
string getCSSHeaderTag ([boolean $debug = False], [boolean $asTemplate = False])
  • boolean $debug
  • boolean $asTemplate: do not parse the return value with $this->getDBVal();
getEditLink (line 1453)

returns the link to the first page state 8 (edit)

  • since: pk-05-03-16
string getEditLink ([boolean $preview = False], [boolean $debug = False])
  • boolean $preview
  • boolean $debug
getFeeter (line 1738)
void getFeeter ([ $debug = False])
  • $debug
getFeeterTag (line 1719)

returns the page feeter

  • return: (html)
  • version: pk-08-06-09
string getFeeterTag ([boolean $debug = False])
  • boolean $debug
getHead (line 1575)

returns the html code of the page header

  • version: pk-04-10-11
  • version: pk-07-02-27 pcf_get_htmlJsInclude
  • version: pk-05-04-19 lang added to html (@see http://www.w3.org/TR/WCAG10-HTML-TECHS/#identify-primary-lang)
  • version: pk-05-07-12 bugfix $withStyles
  • todo: take lang from the LANG_ID
  • requires: __OCSP_PHPINCPATH__."common/OCSP_BROWSER.phpclass" (_OCSP_USEPEARCACHE_)
string getHead ([boolean $withStyles = True], [boolean $debug = False], [boolean $withEndTag = True])
  • boolean $withStyles
  • boolean $debug
  • boolean $withEndTag: </ pk-04-10-11>
getHTMLRedirect (line 1965)

returns a HTML Redirector

  • version: pk-05-10-07 bugfix
  • since: pk-05-09-06
string getHTMLRedirect (string $destUrl, [string $destFrame = &quot;_self&quot;], boolean $debug)
  • string $destUrl
  • string $destFrame
  • boolean $debug
getHTMLTitle (line 1942)

returns the html-title tag

  • version: pk-05-12-13 "\t" added
  • since: pk-04-08-04
string getHTMLTitle ()
getJavaHeaderTag (line 1921)

returns the java tag

  • version: pk-04-09-08 param debug added
  • since: pk-04-08-02
string getJavaHeaderTag ([boolean $debug = False])
  • boolean $debug
getMetaHeaderTag (line 1872)

returns the meta tag

  • version: pk-06-05-24
  • since: pk-04-08-02
string getMetaHeaderTag ()
getMyParentLink (line 1401)

returns the link to the parent menu

  • since: pk-07-02-15
string getMyParentLink ([boolean $debug = False])
  • boolean $debug
getNewLink (line 1425)

returns the link to the first page state 7 (insert)

  • since: pk-05-03-16
string getNewLink ([boolean $preview = False], [boolean $debug = False])
  • boolean $preview
  • boolean $debug
getNextPage (line 1313)

returns the id of the next sibling

int getNextPage ([boolean $preview = False], [boolean $debug = False])
  • boolean $preview
  • boolean $debug
getNextPageUrl (line 1345)

returns the link to the next page by adding setting getParam PAG_ID in the menu query

  • since: pk-07-01-11
string getNextPageUrl ([boolean $preview = False], [boolean $debug = False])
  • boolean $preview
  • boolean $debug
getPreviousPage (line 1363)

returns the id of the previous sibling

  • version: pk-08-05-08
int getPreviousPage ([boolean $preview = False], [boolean $debug = False])
  • boolean $preview
  • boolean $debug
getSiblingQueryString (line 1264)

returns a query to find a sibling if $preview is True showdate is ignored

  • version: pk-05-03-16
string getSiblingQueryString ([boolean $preview = False], [boolean $idOnly = True], [boolean $debug = False])
  • boolean $preview
  • boolean $idOnly
  • boolean $debug
preview (line 1507)

shows the page in preview mode

  • todo: rewrite the method
void preview ([int $mode = 0], [bool $debug = False])
  • int $mode
  • bool $debug
resortChapters (line 1188)

resorts the chapters

  • since: pk-05-03-23
void resortChapters ([boolean $orderByState = False], [boolean $orderByShowMode = True], [boolean $debug = False])
  • boolean $orderByState
  • boolean $orderByShowMode
  • boolean $debug
view (line 1778)
void view ([ $chaShowMode = 0], [ $debug = False])
  • $chaShowMode
  • $debug

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