public function MatchingProcessor::generateTable in Opigno module 8
Same name and namespace in other branches
- 3.x 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\TypeProcessorsCode
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>';
}