Exemplo n.º 1
0
     }
     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();
     break;
 case 'getNoOfLeaves':
     $operationObject->getNoOfLeaves($data);
     break;
 case 'getLeavesApproval':
     if (!$operationObject->getLeavesApproval($userId)) {