You are here

class QuizStatsController in Quiz 8.4

Hierarchy

Expanded class hierarchy of QuizStatsController

File

modules/quiz_stats/lib/Drupal/quiz_stats/Controller/QuizStatsController.php, line 11

Namespace

Drupal\quiz_stats\Controller
View source
class QuizStatsController implements ContainerInjectionInterface {
  public static function create(ContainerInterface $container) {
    return new static($container
      ->get('module_handler'));
  }
  public function quizStatistics() {
    module_load_include('admin.inc', 'quiz_stats');
    return quiz_stats_get_basic_stats();
  }
  public function quizStatisticsReport(NodeInterface $node) {
    module_load_include('admin.inc', 'quiz_stats');
    return quiz_stats_revision_selector_page($node);
  }
  public function quizStatisticsPage(NodeInterface $node, $vid) {
    module_load_include('admin.inc', 'quiz_stats');
    return quiz_stats_get_adv_stats($vid);
  }
  public function quizUserStatistics($uid) {
    module_load_include('admin.inc', 'quiz_stats');
    return quiz_stats_get_basic_stats($uid);
  }
  public function quizUserStatisticsView($vid) {
    module_load_include('admin.inc', 'quiz_stats');
    return quiz_stats_get_adv_stats($vid);
  }

}

Members