/**
  * indexAction
  * @author Cornelius Hansjakob <*****@*****.**>
  * @version 1.0
  */
 public function indexAction()
 {
     $this->getModelFolders();
     $objRootLevels = $this->objModelFolders->loadAllRootLevelsWithGroups($this->core->sysConfig->modules->contacts);
     $objRootLevelNavigation = new NavigationTree();
     if (count($objRootLevels) > 0) {
         $intOrder = 0;
         foreach ($objRootLevels as $objRootLevel) {
             $intOrder++;
             if (!$objRootLevelNavigation->hasSubTree($objRootLevel->name)) {
                 $objNavGroup = new NavigationTree();
                 $objNavGroup->setId($objRootLevel->idRootLevelGroups);
                 $objNavGroup->setItemId($objRootLevel->name);
                 $objNavGroup->setTypeId($objRootLevel->idRootLevelGroups);
                 $objNavGroup->setTitle($objRootLevel->rootLevelGroupTitle);
                 $objNavGroup->setUrl($objRootLevel->href);
                 $objNavGroup->setLanguageId((int) $objRootLevel->rootLevelGuiLanguageId > 0 ? $objRootLevel->rootLevelGuiLanguageId : $objRootLevel->rootLevelLanguageId);
                 $objRootLevelNavigation->addTree($objNavGroup, $objRootLevel->name);
             }
             $objNavItem = new NavigationItem();
             $objNavItem->setId($objRootLevel->id);
             $objNavItem->setItemId($objRootLevel->name);
             $objNavItem->setTypeId($objRootLevel->idRootLevelTypes);
             $objNavItem->setTitle($objRootLevel->title);
             $objNavItem->setUrl($objRootLevel->href);
             $objNavItem->setOrder($intOrder);
             $objNavItem->setParentId($objRootLevel->idRootLevelGroups);
             $objNavItem->setLanguageId((int) $objRootLevel->rootLevelGuiLanguageId > 0 ? $objRootLevel->rootLevelGuiLanguageId : $objRootLevel->rootLevelLanguageId);
             $objRootLevelNavigation->addToParentTree($objNavItem, $objRootLevel->name . '_' . $objRootLevel->id);
         }
     }
     $this->view->assign('rootLevelNavigation', $objRootLevelNavigation);
     $this->view->assign('rootLevelId', $this->getRequest()->getParam('rootLevelId'));
     $this->view->assign('rootLevelGroupId', $this->getRequest()->getParam('rootLevelGroupId'));
     $this->view->assign('rootLevelGroupKey', $this->getRequest()->getParam('rootLevelGroupKey'));
     $this->view->assign('rootLevelType', $this->getRequest()->getParam('rootLevelType'));
     $this->core->logger->debug($this->getRequest()->getParam('rootLevelId'));
     $this->core->logger->debug($this->getRequest()->getParam('rootLevelGroupId'));
     $this->core->logger->debug($this->getRequest()->getParam('rootLevelType'));
     $strRenderSciprt = $this->getRequest()->getParam('layoutType') == 'list' ? 'list.phtml' : 'tree.phtml';
     $this->renderScript('navigation/' . $strRenderSciprt);
 }
 /**
  * indexAction
  * @author Cornelius Hansjakob <*****@*****.**>
  * @version 1.0
  */
 public function indexAction()
 {
     $this->getModelFolders();
     $objRootLevels = $this->objModelFolders->loadAllRootLevels($this->core->sysConfig->modules->cms);
     $objRootLevelNavigation = new NavigationTree();
     if (count($objRootLevels) > 0) {
         $intOrder = 0;
         foreach ($objRootLevels as $objRootLevel) {
             $intOrder++;
             if (!$objRootLevelNavigation->hasSubTree('order_' . $objRootLevel->order)) {
                 $objNavGroup = new NavigationTree();
                 $objNavGroup->setId($objRootLevel->order);
                 $objNavGroup->setItemId($objRootLevel->id);
                 $objNavGroup->setTypeId($objRootLevel->idRootLevelTypes);
                 $objNavGroup->setTitle($objRootLevel->title);
                 $objNavGroup->setUrl($objRootLevel->href);
                 $objNavGroup->setLanguageId((int) $objRootLevel->rootLevelGuiLanguageId > 0 ? $objRootLevel->rootLevelGuiLanguageId : $objRootLevel->rootLevelLanguageId);
                 $objRootLevelNavigation->addTree($objNavGroup, 'order_' . $objRootLevel->order);
             }
             $objNavItem = new NavigationItem();
             $objNavItem->setId($objRootLevel->id);
             $objNavItem->setItemId($objRootLevel->id);
             $objNavItem->setTypeId($objRootLevel->idRootLevelTypes);
             $objNavItem->setTitle($objRootLevel->title);
             $objNavItem->setUrl($objRootLevel->href);
             $objNavItem->setOrder($intOrder);
             $objNavItem->setParentId($objRootLevel->order);
             $objNavItem->setLanguageId((int) $objRootLevel->rootLevelGuiLanguageId > 0 ? $objRootLevel->rootLevelGuiLanguageId : $objRootLevel->rootLevelLanguageId);
             $objRootLevelNavigation->addToParentTree($objNavItem, 'rootLevelId_' . $objRootLevel->id);
         }
     }
     $this->view->assign('rootLevelNavigation', $objRootLevelNavigation);
     $this->view->assign('rootLevelMaintenances', $this->loadActiveMaintenances());
     $this->view->assign('folderFormDefaultId', $this->core->sysConfig->form->ids->folders->default);
     $this->view->assign('folderBlogFormDefaultId', $this->core->sysConfig->form->ids->folders->blog);
     $this->view->assign('pageFormDefaultId', $this->core->sysConfig->page_types->page->default_formId);
     $this->view->assign('pageTemplateDefaultId', $this->core->sysConfig->page_types->page->default_templateId);
     $this->view->assign('pageTypeDefaultId', $this->core->sysConfig->page_types->page->id);
 }