/**
  * It's used for make attendance invisible
  * render to attendance_list view
  * @param int	$attendanceId
  */
 public function attendanceSetInvisible($attendanceId)
 {
     $attendance = new Attendance();
     if (!empty($attendanceId)) {
         $affectedRows = $attendance->changeVisibility($attendanceId, 0);
     }
     if ($affectedRows) {
         $message['message_attendance_delete'] = true;
     }
     $this->attendance_list();
 }