Actualización
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/* Source: https://github.com/moodle/moodle/blob/MOODLE_310_STABLE/backup/cc/cc_lib/cc_asssesment.php under GNU/GPL license */
|
||||
|
||||
class CcAssesmentPresentationMaterialBase extends CcQuestionMetadataBase
|
||||
{
|
||||
protected $flowmats = [];
|
||||
|
||||
public function addFlowMat($object)
|
||||
{
|
||||
$this->flowmats[] = $object;
|
||||
}
|
||||
|
||||
public function generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)
|
||||
{
|
||||
$node = $doc->appendNewElementNs($item, $namespace, CcQtiTags::PRESENTATION_MATERIAL);
|
||||
if (!empty($this->flowmats)) {
|
||||
foreach ($this->flowmats as $flowMat) {
|
||||
$flowMat->generate($doc, $node, $namespace);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user