public function H5PReportXAPIData::getChildren in Opigno module 3.x
Same name and namespace in other branches
- 8 ActivityTypes/opigno_h5p/src/H5PReportXAPIData.php \Drupal\opigno_h5p\H5PReportXAPIData::getChildren()
Get list of children with given parentID.
2 calls to H5PReportXAPIData::getChildren()
- H5PReportXAPIData::saveXAPIData in ActivityTypes/
opigno_h5p/ src/ H5PReportXAPIData.php - Recursive save of xAPI data.
- H5PReportXAPIData::validateData in ActivityTypes/
opigno_h5p/ src/ H5PReportXAPIData.php - Checks if data is valid.
File
- ActivityTypes/
opigno_h5p/ src/ H5PReportXAPIData.php, line 52
Class
- H5PReportXAPIData
- Class H5PReportXAPIData.
Namespace
Drupal\opigno_h5pCode
public function getChildren($parentID = NULL) {
$children = [];
// Parse children data.
if (!empty($this->children)) {
foreach ($this->children as $child) {
$children[] = new H5PReportXAPIData($this->question, $this->answer, $child, $parentID);
}
}
return $children;
}