protected function appendAttributes(DOMDocumentFragment $fragment, QtiComponent $component, $base = '')
 {
     parent::appendAttributes($fragment, $component, $base);
     $this->additionalClass('qti-gapImg');
     if ($component->hasObjectLabel() === true) {
         $fragment->firstChild->setAttribute('title', $component->getObjectLabel());
     }
 }
Example #2
0
 /**
  * @see \qtism\runtime\rendering\markup\xhtml\GapChoiceRenderer::appendAttributes()
  */
 protected function appendAttributes(DOMDocumentFragment $fragment, QtiComponent $component, $base = '')
 {
     parent::appendAttributes($fragment, $component, $base);
     $this->additionalClass('qti-gapText');
 }