You are here

public function H5PReportXAPIData::getChildren in Quiz 7.4

Get list of children with given parentID

 

Parameters

int $parentID:

Return value

array

1 call to H5PReportXAPIData::getChildren()
H5PReportXAPIData::validateData in question_types/quiz_h5p/report/h5p-report-xapi-data.class.php
Checks if data is valid

File

question_types/quiz_h5p/report/h5p-report-xapi-data.class.php, line 42

Class

H5PReportXAPIData

Code

public function getChildren($parentID = NULL) {
  $children = array();

  // Parse children data
  if (!empty($this->children)) {
    foreach ($this->children as $child) {
      $children[] = new H5PReportXAPIData($child, $parentID);
    }
  }
  return $children;
}