/** * Pobranie komunikatów z bazy * * @return array */ protected function _getMessages() { $result = array(); $logic = new Logic_Message(); $result = $logic->getMessages(); return $result; }
/** * Przywrócenie komunikatu * */ public function undeleteAction() { $request = $this->getRequest(); $id = $request->getParam('id'); $id = $this->_helper->IdConvert->hexToStr($id); $logic = new Logic_Message(); try { $logic->undeleteMessage($id); $this->cache->remove('global_messenger_cache_id'); $this->_helper->messenger("success", 'Message was successfully restored.'); //$this->_helper->AdminActionLog->delete('komunikat', 'usunięcie ' , 'success', $logic); $this->_helper->redirector('index'); return; } catch (Logic_Komunikat_Exception $e) { //$this->_helper->AdminActionLog->delete('komunikat', 'usunięcie ' , 'error', $logic); $this->_helper->error(MSG_ERROR, $e); } }