public function deleteAction() { $request = $this->getRequest(); $id = $request->getParam('id'); $id = $this->_helper->IdConvert->hexToStr($id); $logic = new WsServiceValidator(); try { $logic->deleteValidator($id); $this->_helper->messenger("success"); return $this->_helper->redirector("index", "servicesms"); } catch (Logic_Uzytkownik_Exception $e) { $this->_helper->error(MSG_ERROR, $e); } }
/** * * @param type $idService * @param array $appEnv * @param type $wsClientId * @return Zend_Db_Table_Rowset */ public function getLimitsForService($idService, array $appEnv = array(), $wsClientId = null) { $limitModel = new WsServiceValidator(); $select = $limitModel->select()->where('ws_service_id=?', $idService)->where('ghost IS FALSE'); if (false === empty($appEnv)) { $select->where('app_env IN (?)', $appEnv); } if (null !== $wsClientId) { $select->where('ws_client_id=?', $appEnv); } return $limitModel->fetchAll($select); }