Source for file INFA_CMS_PAGE.phpclass
Documentation is available at INFA_CMS_PAGE.phpclass
* @project Open CSP-Management
* @author Peter Krebs <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: INFA_CMS_PAGE.phpclass,v 1.7 2008/08/16 09:21:12 pitlinz Exp $
// ---------------------------------------------------------
// ---------------------------------------------------------
if (!defined('CHAPTER_SHOWMODE_PAGEALL')) define('CHAPTER_SHOWMODE_PAGEALL',0);
if (!defined('CHAPTER_SHOWMODE_ALLWAYS_TOP')) define('CHAPTER_SHOWMODE_ALLWAYS_TOP',1);
if (!defined('CHAPTER_SHOWMODE_ALLWAYS_BOTTOM')) define('CHAPTER_SHOWMODE_ALLWAYS_BOTTOM',2);
if (!defined('CHAPTER_SHOWMODE_PAGEONLY')) define('CHAPTER_SHOWMODE_PAGEONLY',3);
if (!defined('CHAPTER_SHOWMODE_SUMMARYONLY')) define('CHAPTER_SHOWMODE_SUMMARYONLY',4);
if (!defined('CHAPTER_SHOWMODE_PROGRAMM')) define('CHAPTER_SHOWMODE_PROGRAMM',5);
* openCSP interface INFA_CMS_PAGE
* @project Open CSP-Management
* @author Peter Krebs <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: INFA_CMS_PAGE.phpclass,v 1.7 2008/08/16 09:21:12 pitlinz Exp $
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
/*** class vars ------------------------------------------------------ */
/*** class methods --------------------------------------------------- */
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
/*** compostion --------------------------------------------------- */
/*** attributes -------------------------------------------------- */
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
public function setId($aId);
* returns the page state id
* has the method getContent been called?
* getContent has been called or is to omit
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* returns a field => value array as stored in the db
* ensure PAG_OBJECTVARS is serialized with the current values
* @param bool $withoutNull null values are not added to the array
* @param bool $debug show debug info?
public function getDBRow($withoutNull=
True,$debug=
False);
* sets a database row to the object fields
* unserializes PAG_OBJECTVARS
* @param array $row the row form a select * from DBMS_TABLEOBJ::myTable
* @param boolean $asPopulated set populateTS as if the object has been populated
public function setDBRow($row,$asPopulated=
True,$debug=
False);
* sets all fields of an array to the objcet
public function setDBVal($valArr,$debug=
False);
/*** form / editing --------------------------------------------------- */
* returns the form for the page
* @param int $mode (form mode)
* @param string $frmClass
* @requires CMS_PAGE_FORM
public function &getForm($mode=
FRM_MODE_READONLY,$frmName=
'',$frmClass=
'CMS_PAGE_FORM',$debug=
False);
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* returns the cms project id
* sets the cms project id
* @param $aId int Project ID
* returns the Project Object
* @param boolean $setAsCurrent if true and method $this->setAsCurrent() exists it will be called
* @param boolean $forceObj (if true a new object will be instanciated if none is set)
function &getMyProject($setAsCurrent=
False,$debug=
False,$forceObj=
True);
* sets the project object of the page
* also sets the project id form $aProjObj
* @param CMS_PROJECT aProjObj
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* returns the cms menu id
* returns the menu node of the object
* sets the menu node object
* @param CMS_MENU_NODE $aNode
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* returns if the page is the current page
* returns if the current page is online
* returns if the page is expired
* returns if the current user can open the page
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
/*** preview / editing ----------------------------------------------- */
* returns the preview uri
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* executes a prepend script before the page output starts
/*** HTML_PAGE --------------------------------------------------- */
* @param CMS_HTML_PAGE $aHTMLPage
* @param int $chaShowMode
/*** templates ---------------------------------------------------- */
* returns the template id
* if col PTMP_ID is 0 the menu is asked for a template id
* returns the template object
* @return CMS_PAGE_TEMPLATE
* returns an array of chapter template names with chapter template ID as index
* returns false if the page does not support chapter input
Documentation generated on Thu, 08 Jan 2009 17:44:25 +0100 by phpDocumentor 1.4.0a2