protected function marshall(QtiComponent $component)
    {
        $element = static::getDOMCradle()->createElement($component->getQtiClassName());

        $this->setDOMElementAttribute($element, 'href', $component->getHref());
        $this->setDOMElementAttribute($element, 'media', $component->getMedia());
        $this->setDOMElementAttribute($element, 'type', $component->getType());

        if (($title = $component->getTitle()) != '') {
            $this->setDOMElementAttribute($element, 'title', $component->getTitle());
        }

        return $element;
    }
protected function marshall(QtiComponent $component)
    {
        $element = static::getDOMCradle()->createElement($component->getQtiClassName());

        $this->setDOMElementAttribute($element, 'href', $component->getHref());
        $this->setDOMElementAttribute($element, 'media', $component->getMedia());
        $this->setDOMElementAttribute($element, 'type', $component->getType());

        if (($title = $component->getTitle()) != '') {
            $this->setDOMElementAttribute($element, 'title', $component->getTitle());
        }

        return $element;
    }
protected function marshall ( QtiComponent $ component ) { $ element = static :: getDOMCradle ( ) -> createElement ( $ component -> getQtiClassName ( ) ) ; $ this -> setDOMElementAttribute ( $ element , 'href' , $ component -> getHref ( ) ) ; $ this -> setDOMElementAttribute ( $ element , 'media' , $ component -> getMedia ( ) ) ; $ this -> setDOMElementAttribute ( $ element , 'type' , $ component -> getType ( ) ) ; if ( ( $ title = $ component -> getTitle ( ) ) != '' ) { $ this -> setDOMElementAttribute ( $ element , 'title' , $ component -> getTitle ( ) ) ; } return $ element ; }
Marshall a Stylesheet object into a DOMElement object.

@param \qtism\data\QtiComponent $component A Stylesheet object.
@return \DOMElement The according DOMElement object.
Marshall a Stylesheet object into a DOMElement object .