protected function getLeaveTypeList()
 {
     $leaveTypeService = new LeaveTypeService();
     $leaveTypeDao = new LeaveTypeDao();
     $leaveTypeService->setLeaveTypeDao($leaveTypeDao);
     return $leaveTypeService->getLeaveTypeList();
 }
 /**
  * Get editable leave types:
  * @return <type>
  */
 private function _getEditableLeaveTypesIds()
 {
     $editableLeaveTypeIds = array();
     $leaveTypeService = new LeaveTypeService();
     $leaveTypeService->setLeaveTypeDao(new LeaveTypeDao());
     $leaveTypeList = $leaveTypeService->getLeaveTypeList();
     $leaveTypeRuleService = new LeaveTypeRuleService();
     foreach ($leaveTypeList as $leaveType) {
         $leaveTypeRule = $leaveTypeRuleService->getLeaveTypeRuleFromXML($leaveType->getLeaveRules());
         if ($leaveTypeRule->getLeaveEntitlementRule()->getIsAdminAdjust() == 1) {
             $editableLeaveTypeIds[] = $leaveType->getLeaveTypeId();
         }
     }
     return $editableLeaveTypeIds;
 }