Implements interfaces:
Class CMS_MENU_NODE
Located in /cms/menu/CMS_MENU_NODE.phpclass (line 39)
OCSP_OBJ | --DBMS_TABLEOBJ | --DBMS_TREE_NODE | --CMS_MENU_NODE
Class | Description |
---|---|
![]() |
openCSP class PGP_CMS_MENU |
array with key -> project association
array of the menu pages
Id of the template to use if PTMP_ID is not used
timestamp the page list has been populated
Inherited from DBMS_TREE_NODE
DBMS_TREE_NODE::$changesParent
DBMS_TREE_NODE::$level
DBMS_TREE_NODE::$myChildCacheTTL
DBMS_TREE_NODE::$myChildren
DBMS_TREE_NODE::$myChildrenPopulateTS
DBMS_TREE_NODE::$myFilterArr
DBMS_TREE_NODE::$myLink
DBMS_TREE_NODE::$myParent
DBMS_TREE_NODE::$myTree
DBMS_TREE_NODE::$orderNr
Inherited from DBMS_TABLEOBJ
DBMS_TABLEOBJ::$autoIncFld
DBMS_TABLEOBJ::$dbTableDefinitions
DBMS_TABLEOBJ::$frmPostSubOjects
DBMS_TABLEOBJ::$hasObjVals
DBMS_TABLEOBJ::$initTS
DBMS_TABLEOBJ::$myCacheTS
DBMS_TABLEOBJ::$myFields
DBMS_TABLEOBJ::$myKeys
DBMS_TABLEOBJ::$myLinkedTableRows
DBMS_TABLEOBJ::$myMode
DBMS_TABLEOBJ::$myObjVals
DBMS_TABLEOBJ::$myObjValsPopulateTS
DBMS_TABLEOBJ::$objError
DBMS_TABLEOBJ::$objErrorMsg
DBMS_TABLEOBJ::$populateTS
DBMS_TABLEOBJ::$staticClassVars
DBMS_TABLEOBJ::$valChangeTS
Inherited from OCSP_OBJ
OCSP_OBJ::$global_currentUser
OCSP_OBJ::$global_defaultDBObj_read
OCSP_OBJ::$global_defaultDBObj_write
OCSP_OBJ::$myDBObj
fakotry the propper menu node from the key
the key can be seperated with a _ in this case the first element is the MEN_ID and the second one is passed to the new node
* class methods ----------------------------------------------
cunstructor checks if we have a key of $this->mytable or a composed one and populates the menu node from T_CMS_MENU if $auto_populate is true
composed keys consists of at least 2 parts seperated by "-"
1st Part: MEN_ID 2nd Part: modulekey ....
example 1_PGP_1_1
adds a node to childArray($key)
PROTOTYPE:
returns if html-code should add an intend statement before children(list) is outputed
checks if the menu is to show from date
return values are:
copies the childs from the menu with id $sourceId into this menu
copies the pages from the menu with id $sourceId into this menu
returns if the current user can add a childmenu
returns if the current user can add a page
returns if the current user can delete the menu
returns if the current user can edit the menu
returns if the current user can open the menu
deletes a node from the database
returns a database form
ensures that LANG_ID is set and sets $this->mySortFld to IFNULL(MAX(".$this->mySortFld."),1)
ensures that LANG_ID is set
returns a array of pointers to the child objects
if filtered $this->myFilterArr is used to check the child
returns the link url to other projekts coresponding page
returns the current Page this is the first page found and the user has rights to show
returns an array of db default values
returns the first child
returns the form used for manipulating the node
replaces dbGetForm and returns a OCSP_FORM
returns the form class name to use
if you overwrite this method make sure the returned form class source has been included
returns the required form name
normaly this function return Null to let $this->getForm decide which form ($this->getMyTable()) to use. In some subclasses it can be useful to overwrite this methode to get a special form
This is also a way to tell ajax reloads to change form. in jOCSP/formRPC.php is checked wether the currently loaded form (from the environment) fits to the forms tableobject if this function returns a value.
returns the <a ... </a> tag for the menu link
returns the id
returns the menu key
the menu key is a '-' separeted string where the first part is the ocsp CMS MEN_ID
returns the link url
abstract class to get the cms menu node for special menu objects overwrite in this classes
returns the next menu (sibling)
first check if we have a menu node with the same parent and MEN_SORTORDER > $this->MEN_SORTORDER if not then go down in the tree if $goDown
returns a array of variables used by the menu object
array[varName]=array( [TYPE] datatype [FLDCLASS] name of DBMS_FIELD* class [CLASSVALS] array of values of [FLDCLASS]
gets an array of page database rows
2 additional "colums" are calculated:
SHOWFROM_OK SHOWTILL_OK
returns the first pageId if $goDown and no page is found for the menu childs are asked for a page
returns an array with some page vales of the node
NOTE if $xtraConditions is set caching is disabled
returns the page template Id for the subpages
get the where clause to select the menu pages
returns the parent object or null if parent is root
returns the previos menu (sibling)
first check if we have a menu node with the same parent and MEN_SORTORDER < $this->MEN_SORTORDER then go up in the tree if $goUp
returns a link url to use in project tabs
the links are stored in column MEN_PROJCROSSLNK
returns a array back to the root if we have MEN_LINKTYPE 10 ($page->subMenu()) the page menu is included in the rootPath if $GLOBALS['CURRENT_PROJ']->curMen
returns the html-code for the sidemenu link
returns the template id set in menu or project
converts the title to a dirname this can be used with url-rewriting
returns myTree object
checks if the node has children which are on
return if the menu type can have editable pages
if not the menu generates it's page object himself users are not able to add pages to the menu
checks if the menu is the current menu
returns if the node is deletable or not
returns if the node is editable
checks if the object is in the rootPath $rPath if $rPath is not an array $GLOBALS['CURRENT_ROOTPATH'] is checked
PROTOTYPE:
returns if the object is to echo in the tree when creating the html-code or only children are to show
checks if the node is on
creates a child object out of database row checks $dbRow['MEN_OBJCLASS'] to determine the class of the new object
NOTE does not add the object to the tree only sets objects parent
populates the children
populates the pages from the database
sets the node as current menu node
sets all fields of an array to the objcet if $valArr['PEARCACHE_TS'] isset this will become the populateTS
sets the project object of the page NOTE: does not set the current project ID the values of $this->PROJ_ID and $this->myProjObj->getId() can differ
call parent::setParentObj and sets the project from the parent
checks if the object has the rigth class (type of $this->MEN_OBJCLASS) and returns the proper object
checks if the object is the current menu and returns the proper object
writes a sidemneu row
writes a sidemneu row on Path to the selected node
Inherited From DBMS_TREE_NODE
DBMS_TREE_NODE::DBMS_TREE_NODE()
DBMS_TREE_NODE::addChildNode()
DBMS_TREE_NODE::changeParent()
DBMS_TREE_NODE::changesParent()
DBMS_TREE_NODE::childListIsPopulated()
DBMS_TREE_NODE::filterAdd()
DBMS_TREE_NODE::filterClear()
DBMS_TREE_NODE::filterRemoveKey()
DBMS_TREE_NODE::getChild()
DBMS_TREE_NODE::getChildQueryString()
DBMS_TREE_NODE::getChildrenList()
DBMS_TREE_NODE::getChildTblName()
DBMS_TREE_NODE::getGlobalTreeKey()
DBMS_TREE_NODE::getId()
DBMS_TREE_NODE::getLevel()
DBMS_TREE_NODE::getOrderNr()
DBMS_TREE_NODE::getParentId()
DBMS_TREE_NODE::getParentObj()
DBMS_TREE_NODE::getRootPath()
DBMS_TREE_NODE::getRootPathIdx()
DBMS_TREE_NODE::getTree()
DBMS_TREE_NODE::hasChildren()
DBMS_TREE_NODE::matchFilter()
DBMS_TREE_NODE::moveChildDown()
DBMS_TREE_NODE::moveChildUp()
DBMS_TREE_NODE::newChildObj()
DBMS_TREE_NODE::newTreeObj()
DBMS_TREE_NODE::numberOfChildren()
DBMS_TREE_NODE::populateChildren()
DBMS_TREE_NODE::populateTree()
DBMS_TREE_NODE::resortChildren()
DBMS_TREE_NODE::setChildClassVar()
DBMS_TREE_NODE::setConfigurationArr()
DBMS_TREE_NODE::setId()
DBMS_TREE_NODE::setLevel()
DBMS_TREE_NODE::setLink()
DBMS_TREE_NODE::setOrderNr()
DBMS_TREE_NODE::setParentId()
DBMS_TREE_NODE::setParentObj()
DBMS_TREE_NODE::setTreeObj()
Inherited From DBMS_TABLEOBJ
DBMS_TABLEOBJ::DBMS_TABLEOBJ()
DBMS_TABLEOBJ::cacheRestore()
DBMS_TABLEOBJ::cacheWriteTo()
DBMS_TABLEOBJ::clearErrors()
DBMS_TABLEOBJ::dbDelete()
DBMS_TABLEOBJ::dbGetDataArray()
DBMS_TABLEOBJ::dbGetForm()
DBMS_TABLEOBJ::dbInsert()
DBMS_TABLEOBJ::dbPopulate()
DBMS_TABLEOBJ::dbReplace()
DBMS_TABLEOBJ::dbSave()
DBMS_TABLEOBJ::db_SetKey()
DBMS_TABLEOBJ::db_SetKeyArray()
DBMS_TABLEOBJ::getClassInclude()
DBMS_TABLEOBJ::getDbDesc()
DBMS_TABLEOBJ::getDBField()
DBMS_TABLEOBJ::getDBRow()
DBMS_TABLEOBJ::getDBVal()
DBMS_TABLEOBJ::getDefaults()
DBMS_TABLEOBJ::getErrorMsg()
DBMS_TABLEOBJ::getFieldDBDefault()
DBMS_TABLEOBJ::getForm()
DBMS_TABLEOBJ::getFormClassName()
DBMS_TABLEOBJ::getFormName()
DBMS_TABLEOBJ::getJSON()
DBMS_TABLEOBJ::getKeyArr()
DBMS_TABLEOBJ::getMyTable()
DBMS_TABLEOBJ::getObjValArray()
DBMS_TABLEOBJ::getObjValValue()
DBMS_TABLEOBJ::getPopulateTs()
DBMS_TABLEOBJ::getWhere()
DBMS_TABLEOBJ::hasChanged()
DBMS_TABLEOBJ::hasColumn()
DBMS_TABLEOBJ::hasErrors()
DBMS_TABLEOBJ::hasObjVals()
DBMS_TABLEOBJ::init()
DBMS_TABLEOBJ::isInit()
DBMS_TABLEOBJ::isPopulated()
DBMS_TABLEOBJ::keysAreSet()
DBMS_TABLEOBJ::populateFromKeys()
DBMS_TABLEOBJ::populateFromValues()
DBMS_TABLEOBJ::populateObjVals()
DBMS_TABLEOBJ::p_cacheIsExpired()
DBMS_TABLEOBJ::saveLinkedRow()
DBMS_TABLEOBJ::saveLinkedTableRows()
DBMS_TABLEOBJ::saveObjVals()
DBMS_TABLEOBJ::setChanged()
DBMS_TABLEOBJ::setDBField()
DBMS_TABLEOBJ::setDBFieldIfDiff()
DBMS_TABLEOBJ::setDBFieldIfEmpty()
DBMS_TABLEOBJ::setDBRow()
DBMS_TABLEOBJ::setDBVal()
DBMS_TABLEOBJ::setDefaults()
DBMS_TABLEOBJ::setError()
DBMS_TABLEOBJ::setLinkedTableRow()
DBMS_TABLEOBJ::setMyTable()
DBMS_TABLEOBJ::setObjValArray()
DBMS_TABLEOBJ::setObjValValue()
DBMS_TABLEOBJ::setObjVarIfEmpty()
DBMS_TABLEOBJ::setUnChanged()
DBMS_TABLEOBJ::userIsAllowed()
DBMS_TABLEOBJ::writeDebugInfo()
DBMS_TABLEOBJ::xmladdDOMElement()
DBMS_TABLEOBJ::xmlExport()
DBMS_TABLEOBJ::_getCacheFileName()
DBMS_TABLEOBJ::_getDBFields()
Inherited From OCSP_OBJ
OCSP_OBJ::castObj()
OCSP_OBJ::cloneMe()
OCSP_OBJ::currentUser()
OCSP_OBJ::dbConnect()
OCSP_OBJ::defaultDBObj()
OCSP_OBJ::defaultReadDBObj()
OCSP_OBJ::defaultWriteDBObj()
OCSP_OBJ::getConf()
OCSP_OBJ::getDBObj()
OCSP_OBJ::get_myClassConstant()
OCSP_OBJ::get_myObject_vars()
OCSP_OBJ::get_mySourceFile()
OCSP_OBJ::isConnected()
OCSP_OBJ::isMultiByteStr()
OCSP_OBJ::isUTF8()
OCSP_OBJ::setConf()
OCSP_OBJ::setDBObj()
OCSP_OBJ::set_myObject_vars()
OCSP_OBJ::set_myVarsFrom()
Inherited from DBMS_TABLEOBJ
DBMS_TABLEOBJ::CLASS_SRC_FILE
Inherited from OCSP_OBJ
OCSP_OBJ::CLASS_SRC_FILE
Documentation generated on Thu, 08 Jan 2009 17:39:21 +0100 by phpDocumentor 1.4.0a2