/** Delete publication details */ public function deleteAction() { if ($this->_getParam('id', false)) { if ($this->_request->isPost()) { $id = (int) $this->_request->getPost('id'); $del = $this->_request->getPost('del'); if ($del == 'Yes' && $id > 0) { $publications = new Publications(); $where = array(); $where = $publications->getAdapter()->quoteInto('id = ?', $this->_getParam('id')); $this->_flashMessenger->addMessage('Record deleted!'); $publications->delete($where); $this->_helper->solrUpdater->deleteById('beopublications', $id); } $this->_redirect(self::REDIRECT); } else { $id = (int) $this->_request->getParam('id'); if ($id > 0) { $publications = new Publications(); $this->view->publication = $publications->fetchRow('id= ' . (int) $this->_getParam('id')); } } } else { throw new Pas_Exception_Param($this->_missingParameter); } }