<?php

 if (!empty($_GET['employee_id'])) {
  $employee_id_h = $_GET['employee_id'];
  $$class->employee_id = $employee_id_h;
  $leave_balance_object = $$class->findBy_employeeId($employee_id_h);
 } 
 
 if(empty($leave_balance_object)){
  $leave_balance_object = array(new hr_leave_balance());
  $employee_id_h = null;
 }

 if (!empty($$class->employee_id)) {
  $emp_details = hr_employee::find_by_id($$class->employee_id);
  $$class->identification_id = $emp_details->identification_id;
  $$class->employee_name = $emp_details->first_name . ' ' . $emp_details->last_name;
 }

?>