Ejemplo n.º 1
0
 /**
  * loadRootContactsAndUnits
  * @author Thomas Schedler <*****@*****.**>
  * @version 1.0
  */
 protected function loadRootContactsAndUnits()
 {
     $this->core->logger->debug('cms->controllers->OverlayController->loadRootContactsAndUnits()');
     $this->intRootLevelId = 5;
     $this->getModelContacts();
     $objRootUnits = $this->objModelContacts->loadNavigation($this->intRootLevelId, null, true);
     $objRootContacts = $this->objModelContacts->loadContactsByUnitId($this->intRootLevelId);
     $this->view->assign('navElements', $objRootUnits);
     $this->view->assign('listElements', $objRootContacts);
     $this->view->assign('rootLevelId', $this->intRootLevelId);
 }
 /**
  * contactnavigationAction
  * @author Thomas Schedler <*****@*****.**>
  * @version 1.0
  */
 public function contactnavigationAction()
 {
     $this->core->logger->debug('properties->controllers->NavigationController->contactnavigationAction()');
     $objRequest = $this->getRequest();
     $intCurrLevel = $objRequest->getParam('currLevel');
     if ($intCurrLevel == 1) {
         $intItemId = 0;
     } else {
         $intItemId = $objRequest->getParam("itemId");
     }
     /**
      * get navigation
      */
     $this->getModelContacts();
     $objContactNavElements = $this->objModelContacts->loadNavigation($intItemId);
     $this->view->assign('elements', $objContactNavElements);
     $this->view->assign('currLevel', $intCurrLevel);
 }
 /**
  * contactnavigationAction
  * @author Cornelius Hansjakob <*****@*****.**>
  * @version 1.0
  */
 public function contactnavigationAction()
 {
     $this->core->logger->debug('contacts->controllers->NavigationController->contactnavigationAction()');
     $objRequest = $this->getRequest();
     $intCurrLevel = $objRequest->getParam('currLevel');
     $intRootLevelId = $objRequest->getParam('rootLevelId');
     if ($intCurrLevel == 1) {
         $intItemId = 0;
     } else {
         $intItemId = $objRequest->getParam('itemId');
     }
     /**
      * get navigation
      */
     $this->getModelContacts();
     $objContactNavElements = $this->objModelContacts->loadNavigation($intRootLevelId, $intItemId);
     $this->view->assign('elements', $objContactNavElements);
     $this->view->assign('currLevel', $intCurrLevel);
     $this->view->assign('rootLevelId', $intRootLevelId);
     $this->view->assign('rootLevelTypeId', $this->core->sysConfig->root_level_types->contacts);
     $this->view->assign('unitFormDefaultId', $this->core->sysConfig->form->ids->units->default);
     $this->view->assign('contactFormDefaultId', $this->core->sysConfig->form->ids->contacts->default);
 }