checks if the menu is to show from date
return values are:
- 1: yes
- 0: showtill is outdate
- -2: showfrom is not reached
int
checkShowDate
([ $debug = False])
returns if the current user can add a childmenu
boolean
curUserCanAddChild
([boolean $debug = False])
returns if the current user can add a page
boolean
curUserCanAddPage
([boolean $debug = False])
returns if the current user can delete the menu
boolean
curUserCanDelete
([boolean $debug = False])
returns if the current user can edit the menu
boolean
curUserCanEdit
([boolean $debug = False])
returns if the current user can open the menu
boolean
curUserCanOpen
([boolean $debug = False])
returns a array of pointers to the child objects
if filtered $this->myFilterArr is used to check the child
array
getChildrenList
([boolean $useCache = True], [boolean $debug = False], [boolean $filtered = False])
-
boolean
$useCache
-
boolean
$debug
-
boolean
$filtered
returns the current Page this is the first page found and the user has rights to show
CMS_PAGE
&getCurrentPage
([
boolean $goDown =
False], [
boolean $online =
True], [
array $xtraConditions =
Null], [
boolean $debug =
False])
-
boolean
$goDown: (check children if the node has no page to show)
-
boolean
$online: (check if the page is online if false all pages are returned)
-
array
$xtraConditions: (array of columns to check to)
-
boolean
$debug
returns the menu id
int
getId
()
returns the menu key
the menu key is a '-' seperated string where the 1st part is the ocsp MEN_ID
string
getKey
()
returns the link url
string
getLinkUrl
([array $valArr = array()], [boolean $debug = False])
-
array
$valArr
-
boolean
$debug
returns the Project Object
CMS_PROJECT
&getMyProject
([
boolean $debug =
False], [
boolean $forceObj =
True], [
boolean $setAsCurrent =
False])
-
boolean
$debug
-
boolean
$forceObj: (if false no new object will be instanciated)
-
boolean
$setAsCurrent: (if true call $this->setAsCurrent())
returns the orderNr
int
getOrderNr
()
returns the parent object or null if parent is root
CMS_MENU_NODE
&getParentObj
([
boolean $useCache =
True], [
boolean $debug =
False])
-
boolean
$useCache
-
boolean
$debug
returns a array back to the root
array
getRootPath
([boolean $useCache = True], [boolean $debug = False])
-
boolean
$useCache
-
boolean
$debug
returns the template id set in menu or project
int
getTemplateId
([boolean $debug = False])
string
getTitle
([int $langId = 0], [boolean $debug = False])
-
int
$langId
-
boolean
$debug
returns myTree object
CMS_MENU
&getTree
([
boolean $useCache =
True], [
boolean $debug =
False], [
boolean $checkParent =
True])
-
boolean
$useCache
-
boolean
$debug
-
boolean
$checkParent: (if false $this->getParentObj is not called)
returns if the node has children
boolean
hasChildren
([boolean $debug = False])
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
boolean
hasEditablePages
([boolean $debug = False])
checks if the menu is the current menu
boolean
isCurrent
([boolean $debug = False])
returns if the node is editable
boolean
isEditable
([boolean $debug = False])
returns if the object is to echo in the tree when creating the html-code or only children are to show instead of the node
boolean
isToEcho
([boolean $debug = False])
checks if the node is on
bool
isToShow
([boolean $checkDate = True], [boolean $checkGroup = True], [boolean $debug = False], [boolean $checkShow = True])
-
boolean
$checkDate
-
boolean
$checkGroup
-
boolean
$debug
-
boolean
$checkShow
sets the node as current menu node
void
setAsCurrent
([boolean $debug = False])
sets the OrderNr
void
setOrderNr
(int $aOrderNr)
sets the tree object
void
setTreeObj
(
&$aTree,
CMS_MENU $aTree)