public function marshall(QtiComponent $component)
    {
        $element = self::getDOMCradle()->createElement('modalFeedbackRule');
        $this->setDOMElementAttribute($element, 'outcomeIdentifier', $component->getOutcomeIdentifier());
        $this->setDOMElementAttribute($element, 'showHide', ShowHide::getNameByConstant($component->getShowHide()));
        $this->setDOMElementAttribute($element, 'identifier', $component->getIdentifier());
        
        if ($component->hasTitle() === true) {
            $this->setDOMElementAttribute($element, 'title', $component->getTitle());
        }

        return $element;
    }
public function marshall(QtiComponent $component)
    {
        $element = self::getDOMCradle()->createElement('modalFeedbackRule');
        $this->setDOMElementAttribute($element, 'outcomeIdentifier', $component->getOutcomeIdentifier());
        $this->setDOMElementAttribute($element, 'showHide', ShowHide::getNameByConstant($component->getShowHide()));
        $this->setDOMElementAttribute($element, 'identifier', $component->getIdentifier());
        
        if ($component->hasTitle() === true) {
            $this->setDOMElementAttribute($element, 'title', $component->getTitle());
        }

        return $element;
    }
public function marshall ( QtiComponent $ component ) { $ element = self :: getDOMCradle ( ) -> createElement ( 'modalFeedbackRule' ) ; $ this -> setDOMElementAttribute ( $ element , 'outcomeIdentifier' , $ component -> getOutcomeIdentifier ( ) ) ; $ this -> setDOMElementAttribute ( $ element , 'showHide' , ShowHide :: getNameByConstant ( $ component -> getShowHide ( ) ) ) ; $ this -> setDOMElementAttribute ( $ element , 'identifier' , $ component -> getIdentifier ( ) ) ; if ( $ component -> hasTitle ( ) === true ) { $ this -> setDOMElementAttribute ( $ element , 'title' , $ component -> getTitle ( ) ) ; } return $ element ; }
Marshall a ModalFeedbackRule object to its XML counterpart.

@param \qtism\data\QtiComponent $component
@return \DOMElement
Marshall a ModalFeedbackRule object to its XML counterpart .