Beispiel #1
0
 /**
  * unpublishAction() - zdjęcie publikacji filtra
  *
  * @todo przerobić na ajaxcontext
  */
 public function unpublishAction()
 {
     $request = $this->getRequest();
     $id = $request->getParam('id');
     $id = $this->_helper->IdConvert->hexToStr($id);
     $filtr = new Logic_Filter();
     try {
         $filtr->unpublishFilter($id);
         $this->_helper->messenger("success", 'Filter was successfully hidden.');
         $this->_helper->redirector('index');
     } catch (Exception $e) {
         $this->_helper->messenger('error', MSG_ERROR, $e);
     }
 }