/** * Marshall a TestFeedbackRef object to its XML counterpart. * * @param \qtism\data\QtiComponent $component * @return \DOMElement */ public function marshall(QtiComponent $component) { $element = self::getDOMCradle()->createElement('testFeedbackRef'); self::setDOMElementAttribute($element, 'identifier', $component->getIdentifier()); self::setDOMElementAttribute($element, 'outcomeIdentifier', $component->getOutcomeIdentifier()); self::setDOMElementAttribute($element, 'access', TestFeedbackAccess::getNameByConstant($component->getAccess())); self::setDOMElementAttribute($element, 'showHide', ShowHide::getNameByConstant($component->getShowHide())); self::setDOMElementAttribute($element, 'href', $component->getHref()); return $element; }