$res = "FAILURE"; } echo json_encode(array("RESPONSE" => $res)); } if ($method == $APPROVE_EXEMPTION) { $exemptionMgr = ExemptionMgr::getInstance(); $bool = $exemptionMgr->approveExemption($_GET['seq'], $_GET['flag']); $res = "SUCCESS"; if ($bool == false) { $res = "FAILURE"; } echo json_encode(array("RESPONSE" => $res)); } if ($method == $REQUEST_EXEMPTION_COMMENTS) { $exemptionMgr = ExemptionMgr::getInstance(); $comments = $exemptionMgr->findCommentsByExemptionSeqJSON($_GET['seq']); echo $comments; } if ($method == $SAVE_EXEMPTION_COMMENT) { $exemptionMgr = ExemptionMgr::getInstance(); $res = $exemptionMgr->saveExemptionComment($_GET); echo json_encode($res); } if ($method == $SAVE_VALIDATION_OR_EXEMPTION) { $commentsMgr = CommentsMgr::getInstance(); $res = $commentsMgr->saveValidationOrExeptionMaster($_GET); echo json_encode($res); } ?>