Ejemplo n.º 1
0
 /**
  * Views all currently logged in BackendUsers and their sessions
  *
  * @return void
  */
 public function onlineAction()
 {
     $onlineUsersAndSessions = array();
     $onlineUsers = $this->backendUserRepository->findOnline();
     foreach ($onlineUsers as $onlineUser) {
         $onlineUsersAndSessions[] = array('backendUser' => $onlineUser, 'sessions' => $this->backendUserSessionRepository->findByBackendUser($onlineUser));
     }
     $this->view->assign('dateFormat', $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy']);
     $this->view->assign('timeFormat', $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm']);
     $this->view->assign('onlineUsersAndSessions', $onlineUsersAndSessions);
     $this->view->assign('currentSessionId', $GLOBALS['BE_USER']->user['ses_id']);
 }