} break; case 'changeLeaveStatus': if (!$operationObject->changeLeaveStatus($data)) { $message = "Could not Cancel Leave...!!!"; echo AppUtil::getReturnStatus("fail", $message); } break; case 'searchLeaveByDate': if (!$operationObject->searchLeaveByDate($data)) { $message = "Leave details not available...!!!"; echo AppUtil::getReturnStatus("fail", $message); } break; case 'getYears': if (!$operationObject->getYears()) { $message = "Year Details Not Available...!!!"; echo AppUtil::getReturnStatus("fail", $message); } break; case 'getEmployees': $operationObject->getEmployees(); break; case 'searchLeaveByEmployee': if (!$operationObject->searchLeaveByEmployee($data)) { $message = "Leave details not available...!!!"; echo AppUtil::getReturnStatus("fail", $message); } break; case 'getEmployeeDetails': $operationObject->getEmployeeDetails();