setSetting(CcQtiTags::LABEL); $this->setSettingWns(CcQtiTags::XML_LANG, CcXmlNamespace::XML); $this->setSetting(CcQtiTags::X0); $this->setSetting(CcQtiTags::Y0); $this->setSetting(CcQtiTags::WIDTH); $this->setSetting(CcQtiTags::HEIGHT); } public function setLabel($value) { $this->setSetting(CcQtiTags::LABEL, $value); } public function setLang($value) { $this->setSettingWns(CcQtiTags::XML_LANG, CcXmlNamespace::XML, $value); } public function setCoor($x = null, $y = null) { $this->setSetting(CcQtiTags::X0, $x); $this->setSetting(CcQtiTags::Y0, $y); } public function setSize($width = null, $height = null) { $this->setSetting(CcQtiTags::WIDTH, $width); $this->setSetting(CcQtiTags::HEIGHT, $height); } public function setFlow(CcAssesmentFlowtype $object) { $this->flow = $object; } public function setMaterial(CcAssesmentMaterial $object) { $this->material = $object; } public function setResponseLid(CcResponseLidtype $object) { $this->responseLid = $object; } public function setResponseStr(CcAssesmentResponseStrtype $object) { $this->responseStr = $object; } public function generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace) { $node = $doc->appendNewElementNs($item, $namespace, CcQtiTags::PRESENTATION); $this->generateAttributes($doc, $node, $namespace); if (!empty($this->flow)) { $this->flow->generate($doc, $node, $namespace); } if (!empty($this->material) && empty($this->flow)) { $this->material->generate($doc, $node, $namespace); } if (!empty($this->responseLid) && empty($this->flow)) { $this->responseLid->generate($doc, $node, $namespace); } if (!empty($this->responseStr) && empty($this->flow)) { $this->responseStr->generate($doc, $node, $namespace); } } }