You are here

public function MatchingProcessor::generateTable in Opigno module 3.x

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

Generates response table, response pattern, dropzones and draggables.

1 call to MatchingProcessor::generateTable()
MatchingProcessor::generateHTML in ActivityTypes/opigno_h5p/src/TypeProcessors/MatchingProcessor.php
Processes xAPI data and returns a human readable HTML report.

File

ActivityTypes/opigno_h5p/src/TypeProcessors/MatchingProcessor.php, line 127

Class

MatchingProcessor
Class MatchingProcessor.

Namespace

Drupal\opigno_h5p\TypeProcessors

Code

public function generateTable($mappedCRP, $mappedResponse, $dropzones, $draggables) {
  $header = $this
    ->generateTableHeader();
  $rows = $this
    ->generateRows($mappedCRP, $mappedResponse, $dropzones, $draggables);
  return '<table class="h5p-matching-table">' . $header . $rows . '</table>';
}