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()); } }
/** * @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'); }