public function ScormReport::generateHtml in Opigno module 3.x
Same name and namespace in other branches
- 8 ActivityTypes/opigno_scorm_activity/src/ScormReport.php \Drupal\opigno_scorm_activity\ScormReport::generateHtml()
Determines options for interaction, generates a human readable HTML report.
@inheritdoc
File
- ActivityTypes/
opigno_scorm_activity/ src/ ScormReport.php, line 15
Class
- ScormReport
- Class H5PReport.
Namespace
Drupal\opigno_scorm_activityCode
public function generateHtml($answer_data, $full_table = FALSE) {
$headerHtml = $this
->generateHeader(t('Questions'));
$tableHTML = $this
->generateTable($answer_data, $full_table);
return '<div class="h5p-reporting-container h5p-choices-container result-item">' . $headerHtml . $tableHTML . '</div>';
}