<?php

if (!empty($user->user_id)) {
 $user_id = $user->user_id;
 $user_role_object = user_role::find_by_userId($user_id);
 $user_group_object = user_group::find_by_userId($user_id);
 if (empty($user_role_object)) {
  $user_role_object = array(new user_role());
 }
  if (empty($user_group_object)) {
    $user_group_object = array(new user_group());
 }
} else {
 $user_role_object = array(new user_role());
 $user_group_object = array(new user_group());
}

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

$allRoles = role_path::all_roles();

$mode =2 ; $readonly = 1;
?>