<?php

if (empty($$class->hr_attendance_id)) {
 $$class->status = 'ENTERED';
 if (!empty($_SESSION['user_id']) && empty($$class->hr_employee_id)) {
  $user_details = ino_user::find_by_id($_SESSION['user_id']);
  $$class->hr_employee_id = $user_details->hr_employee_id;
 }
}



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