function aktualByDateAction() { $givenDate = $this->_getParam('givenDate') ? $this->_getParam('givenDate') : ''; $modelCatalog = new Pandamp_Modules_Dms_Catalog_Model_Catalog(); $decorator = new Pandamp_BeanContext_Decorator($modelCatalog); if ($givenDate) { $rowset = $decorator->fetchFromFolderByDateAsEntity('fb29', $givenDate); } else { //$rowset = $decorator->fetchFromFolderAsEntity('fb29',0,5,'warta'); $rowset = $decorator->fetchFromFolderAsEntity('fb29', 0, 5); } $content = 0; $data = array(); foreach ($rowset as $row) { $modelCatalogAttribute = new Pandamp_Modules_Dms_Catalog_Model_CatalogAttribute(); $data[$content][0] = $modelCatalogAttribute->getCatalogAttributeValue($row->getId(), 'fixedTitle'); $data[$content][1] = $row->getShortTitle(); $data[$content][2] = date("d/m/y", strtotime($row->getCreatedDate())); $data[$content][3] = $row->getId(); $content++; } $num_rows = count($rowset); $this->view->numberOfRows = $num_rows; $this->view->data = $data; }