/**
  * @see AbstractJob::execute()
  */
 function execute()
 {
     // only consider highscore users since we assume that they are actually playing and not waiting for a team assignment or something.
     $users = UsersDataService::getActiveUsersWithHighscore($this->_websoccer, $this->_db, 0, 1000);
     foreach ($users as $user) {
         UserInactivityDataService::computeUserInactivity($this->_websoccer, $this->_db, $user['id']);
     }
 }
 public function getTemplateParameters()
 {
     $count = UsersDataService::countActiveUsersWithHighscore($this->_websoccer, $this->_db);
     $eps = $this->_websoccer->getConfig("entries_per_page");
     $paginator = new Paginator($count, $eps, $this->_websoccer);
     if ($count > 0) {
         $users = UsersDataService::getActiveUsersWithHighscore($this->_websoccer, $this->_db, $paginator->getFirstIndex(), $eps);
     } else {
         $users = array();
     }
     return array("users" => $users, "paginator" => $paginator);
 }