You are here

protected function TypeProcessor::getCRP in Opigno module 8

Same name and namespace in other branches
  1. 3.x ActivityTypes/opigno_h5p/src/TypeProcessors/TypeProcessor.php \Drupal\opigno_h5p\TypeProcessors\TypeProcessor::getCRP()

Decode and retrieve Correct Responses Pattern from xAPI data.

Parameters

mixed $xapiData: XAPI data.

Return value

mixed XAPI data response pattern.

1 call to TypeProcessor::getCRP()
TypeProcessor::generateReport in ActivityTypes/opigno_h5p/src/TypeProcessors/TypeProcessor.php
Generate HTML for report.

File

ActivityTypes/opigno_h5p/src/TypeProcessors/TypeProcessor.php, line 169

Class

TypeProcessor
Class TypeProcessor.

Namespace

Drupal\opigno_h5p\TypeProcessors

Code

protected function getCRP($xapiData) {
  return json_decode($xapiData->correct_responses_pattern, TRUE);
}