예제 #1
0
 /**
  * Publish a set
  *
  * @return void
  */
 public function publishsetAction()
 {
     $request = $this->getRequest();
     $id = $this->_helper->IdConvert->hexToStr($request->getParam('id'));
     if (empty($id)) {
         $this->_helper->messenger->error('Nie podano parametru ID');
         return $this->_helper->redirector('index');
     }
     try {
         $auth = Zend_Auth::getInstance()->getIdentity();
         $this->_model->publishSet($id, $auth->ws_client_id);
         $this->_helper->messenger->success();
         $this->_helper->redirector('index');
         return;
     } catch (Logic_Ws_Exception $e) {
         $this->_helper->error(MSG_ERROR, $e);
     }
 }