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(); break; case 'getNoOfLeaves': $operationObject->getNoOfLeaves($data); break; case 'getLeavesApproval': if (!$operationObject->getLeavesApproval($userId)) { $message = "Leave Approval details not available...!!!"; echo AppUtil::getReturnStatus("fail", $message); }