Actualización

This commit is contained in:
Xes
2025-04-10 12:49:05 +02:00
parent 4aff98e77b
commit 1cdd00920f
9151 changed files with 1800913 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
<?php
/* Source: https://github.com/moodle/moodle/blob/MOODLE_310_STABLE/backup/cc/cc_lib/cc_asssesment.php under GNU/GPL license */
class CcAssesmentFlowMatBase extends CcQuestionMetadataBase
{
protected $mattag = null;
public function __construct($value = null)
{
$this->setSetting(CcQtiTags::T_CLASS);
}
public function setFlowMat(CcAssesmentFlowMatBase $object)
{
$this->setTagValue($object);
}
public function setMaterial(CcAssesmentMaterial $object)
{
$this->setTagValue($object);
}
public function setMaterialRef(CcAssesmentMatref $object)
{
$this->setTagValue($object);
}
public function setClass($value)
{
$this->setSetting(CcQtiTags::T_CLASS, $value);
}
public function generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)
{
$node = $doc->appendNewElementNs($item, $namespace, CcQtiTags::FLOW_MAT);
$this->generateAttributes($doc, $node, $namespace);
if (!empty($this->mattag)) {
$this->mattag->generate($doc, $node, $namespace);
}
}
protected function setTagValue($object)
{
$this->mattag = $object;
}
}