/** * locationnavigationAction * @author Thomas Schedler <*****@*****.**> * @version 1.0 */ public function locationnavigationAction() { $this->core->logger->debug('properties->controllers->NavigationController->locationnavigationAction()'); $objRequest = $this->getRequest(); $intCurrLevel = $objRequest->getParam('currLevel'); $intRootLevelId = $objRequest->getParam('rootLevelId'); if ($intCurrLevel == 1) { $intItemId = 0; } else { $intItemId = $objRequest->getParam("itemId"); } /** * get navigation */ $this->getModelLocations(); $objLocationNavElements = $this->objModelLocations->loadNavigation($intRootLevelId, $intItemId, true); $this->view->assign('elements', $objLocationNavElements); $this->view->assign('currLevel', $intCurrLevel); $this->view->assign('itemId', $intItemId); }
/** * locationnavigationAction * @author Cornelius Hansjakob <*****@*****.**> * @version 1.0 */ public function locationnavigationAction() { $this->core->logger->debug('contacts->controllers->NavigationController->locationnavigationAction()'); $objRequest = $this->getRequest(); $intCurrLevel = $objRequest->getParam('currLevel'); $intRootLevelId = $objRequest->getParam('rootLevelId'); if ($intCurrLevel == 1) { $intItemId = 0; } else { $intItemId = $objRequest->getParam('itemId'); } /** * get navigation */ $this->getModelLocations(); $objLocationNavElements = $this->objModelLocations->loadNavigation($intRootLevelId, $intItemId, true); $this->view->assign('elements', $objLocationNavElements); $this->view->assign('currLevel', $intCurrLevel); $this->view->assign('rootLevelId', $intRootLevelId); $this->view->assign('rootLevelTypeId', $this->core->sysConfig->root_level_types->locations); $this->view->assign('unitFormDefaultId', $this->core->sysConfig->form->ids->units->default); $this->view->assign('locationFormDefaultId', $this->core->sysConfig->form->ids->locations->default); $this->view->assign('itemId', $intItemId); }