Example #1
0
 /**
  * Check if last FE login was within the last 2h
  * 
  * @return boolean
  */
 public function isOnline()
 {
     if (method_exists($this->getLastlogin(), 'getTimestamp') && $this->getLastlogin()->getTimestamp() > time() - 2 * 60 * 60 && UserUtility::checkFrontendSessionToUser($this)) {
         return true;
     }
     return $this->isOnline;
 }