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()));
     }
 }
示例#3
0
 /**
  * @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');
 }