You are here

private function H5PReportXAPIData::getObjectDefinition in Opigno module 3.x

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

Get object definition property or default value if not set.

Parameters

string $property: Property name.

mixed $default: If not set. Default default is blank string.

Return value

mixed Property value.

4 calls to H5PReportXAPIData::getObjectDefinition()
H5PReportXAPIData::getAdditionals in ActivityTypes/opigno_h5p/src/H5PReportXAPIData.php
Get additional data for some interaction types.
H5PReportXAPIData::getCorrectResponsesPattern in ActivityTypes/opigno_h5p/src/H5PReportXAPIData.php
Get the correct response patterns.
H5PReportXAPIData::getDescription in ActivityTypes/opigno_h5p/src/H5PReportXAPIData.php
Get the description of the interaction.
H5PReportXAPIData::getInteractionType in ActivityTypes/opigno_h5p/src/H5PReportXAPIData.php
Get the type of interaction.

File

ActivityTypes/opigno_h5p/src/H5PReportXAPIData.php, line 152

Class

H5PReportXAPIData
Class H5PReportXAPIData.

Namespace

Drupal\opigno_h5p

Code

private function getObjectDefinition($property, $default = '') {
  return isset($this->statement->object->definition->{$property}) ? $this->statement->object->definition->{$property} : $default;
}