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