protected function appendAttributes(DOMDocumentFragment $fragment, QtiComponent $component, $base = '') { parent::appendAttributes($fragment, $component, $base); $this->additionalClass('qti-associableHotspot'); $this->additionalClass('qti-associableChoice'); $fragment->firstChild->setAttribute('data-match-min', $component->getMatchMin()); $fragment->firstChild->setAttribute('data-match-max', $component->getMatchMax()); }
/** * @see \qtism\runtime\rendering\markup\xhtml\HotspotRenderer::appendAttributes() */ protected function appendAttributes(DOMDocumentFragment $fragment, QtiComponent $component, $base = '') { parent::appendAttributes($fragment, $component, $base); $this->additionalClass('qti-associableHotspot'); $this->additionalClass('qti-associableChoice'); $fragment->firstChild->setAttribute('data-match-min', $component->getMatchMin()); $fragment->firstChild->setAttribute('data-match-max', $component->getMatchMax()); if (count($component->getMatchGroup()) > 0) { $fragment->firstChild->setAttribute('data-match-group', implode(' ', $component->getMatchGroup()->getArrayCopy())); } }
/** * @see \qtism\runtime\rendering\markup\xhtml\HotspotRenderer::appendAttributes() */ protected function appendAttributes(DOMDocumentFragment $fragment, QtiComponent $component, $base = '') { parent::appendAttributes($fragment, $component, $base); $this->additionalClass('qti-hotspotChoice'); }