예제 #1
0
 /**
  * Get customer's current status
  *
  * @return string
  */
 public function getCurrentStatus()
 {
     $log = $this->getCustomerLog();
     $interval = $this->modelLog->getOnlineMinutesInterval();
     if ($log->getLogoutAt() || strtotime($this->dateTime->now()) - strtotime($log->getLastVisitAt()) > $interval * 60) {
         return __('Offline');
     }
     return __('Online');
 }