You are here

public static function H5PReport::getInstance in Opigno module 3.x

Same name and namespace in other branches
  1. 8 ActivityTypes/opigno_h5p/src/H5PReport.php \Drupal\opigno_h5p\H5PReport::getInstance()

Caches instance of report generator.

3 calls to H5PReport::getInstance()
CompoundProcessor::generateHTML in ActivityTypes/opigno_h5p/src/TypeProcessors/CompoundProcessor.php
Determines options for interaction, generates a human readable HTML report.
ModuleResultForm::buildForm in src/Form/ModuleResultForm.php
Form constructor.
template_preprocess_opigno_user_result_item__opigno_h5p in ActivityTypes/opigno_h5p/opigno_h5p.module
Implements hook_preprocess_HOOK().

File

ActivityTypes/opigno_h5p/src/H5PReport.php, line 72

Class

H5PReport
Class H5PReport.

Namespace

Drupal\opigno_h5p

Code

public static function getInstance() {
  static $instance;
  if (!$instance) {
    $instance = new H5PReport();
  }
  return $instance;
}