public function actionTopPlayedGames()
 {
     $sHelper = new Steam_Helper_Steam();
     $visitor = XenForo_Visitor::getInstance();
     $visitorPerms = $visitor->getPermissions();
     //Make the following a XenForo Option
     $queryLimit = 25;
     if (!$visitorPerms['SteamAuth']['viewStats']) {
         return $this->responseError(new XenForo_Phrase('steam_do_not_have_permission'));
     } else {
         $viewParams = array('gameStats' => $sHelper->getGamePlayedStatistics($queryLimit));
         return $this->responseView('Steam_ViewPublic_Played', 'steam_public_played', $viewParams);
     }
 }
 /**
  * Section that lists all top played games (in hours)
  */
 public function actionTopPlayed()
 {
     $sHelper = new Steam_Helper_Steam();
     //Make the following a XenForo Option
     $queryLimit = 25;
     $viewParams = array('gameStats' => $sHelper->getGamePlayedStatistics($queryLimit));
     return $this->responseView('XenForo_ViewAdmin_Steam_TopPlayed', 'steam_stats_topPlayed', $viewParams);
 }