/** * folderlistAction * @author Thomas Schedler <*****@*****.**> * @version 1.0 */ public function folderlistAction() { $this->core->logger->debug('core->controllers->FolderController->folderlistAction()'); $intPortalId = $this->objRequest->getParam('portalId'); $intFolderId = $this->objRequest->getParam('folderId'); $this->getModelFolders(); $objFolderContent = $this->objModelFolders->loadFolderContentById($intFolderId); $this->view->assign('objFolderContent', $objFolderContent); $this->view->assign('intFolderId', $intFolderId); $this->view->assign('listTitle', $objFolderContent[0]->folderTitle); }
/** * listAction * @author Thomas Schedler <*****@*****.**> * @version 1.0 */ public function listAction() { $this->core->logger->debug('core->controllers->FolderController->listAction()'); $strSearchValue = $this->getRequest()->getParam('search'); $strOrderColumn = $this->getRequest()->getParam('order') != '' ? $this->getRequest()->getParam('order') : ''; $strOrderSort = $this->getRequest()->getParam('sort') != '' ? $this->getRequest()->getParam('sort') : ''; $intPortalId = $this->objRequest->getParam('portalId'); $intFolderId = $this->objRequest->getParam('folderId'); $this->getModelFolders(); $objFolderSelect = $this->objModelFolders->loadFolderContentById($intFolderId, $strSearchValue, $strOrderColumn, $strOrderSort); $objAdapter = new Zend_Paginator_Adapter_DbTableSelect($objFolderSelect); $objFolderPaginator = new Zend_Paginator($objAdapter); $objFolderPaginator->setItemCountPerPage((int) $this->getRequest()->getParam('itemsPerPage', $this->core->sysConfig->list->default->itemsPerPage)); $objFolderPaginator->setCurrentPageNumber($this->getRequest()->getParam('page')); $objFolderPaginator->setView($this->view); $this->view->assign('folderPaginator', $objFolderPaginator); $this->view->assign('intFolderId', $intFolderId); $this->view->assign('strOrderColumn', $strOrderColumn); $this->view->assign('strOrderSort', $strOrderSort); $this->view->assign('strSearchValue', $strSearchValue); //$this->view->assign('listTitle', $objFolderContent[0]->folderTitle); }