public function H5PReportXAPIData::validateData in Opigno module 3.x
Same name and namespace in other branches
- 8 ActivityTypes/opigno_h5p/src/H5PReportXAPIData.php \Drupal\opigno_h5p\H5PReportXAPIData::validateData()
Checks if data is valid.
Return value
bool True if valid data.
File
- ActivityTypes/
opigno_h5p/ src/ H5PReportXAPIData.php, line 227
Class
- H5PReportXAPIData
- Class H5PReportXAPIData.
Namespace
Drupal\opigno_h5pCode
public function validateData() {
if ($this
->getInteractionType() === '') {
return FALSE;
}
// Validate children.
$children = $this
->getChildren();
foreach ($children as $child) {
if (!$child
->validateData()) {
return FALSE;
}
}
return TRUE;
}