protected function marshall(QtiComponent $component)
    {
        $element = self::getDOMCradle()->createElement('colgroup');
        $this->setDOMElementAttribute($element, 'span', $component->getSpan());

        foreach ($component->getContent() as $col) {
            $marshaller = $this->getMarshallerFactory()->createMarshaller($col);
            $element->appendChild($marshaller->marshall($col));
        }

        $this->fillElement($element, $component);

        return $element;
    }
protected function marshall(QtiComponent $component)
    {
        $element = self::getDOMCradle()->createElement('colgroup');
        $this->setDOMElementAttribute($element, 'span', $component->getSpan());

        foreach ($component->getContent() as $col) {
            $marshaller = $this->getMarshallerFactory()->createMarshaller($col);
            $element->appendChild($marshaller->marshall($col));
        }

        $this->fillElement($element, $component);

        return $element;
    }
protected function marshall ( QtiComponent $ component ) { $ element = self :: getDOMCradle ( ) -> createElement ( 'colgroup' ) ; $ this -> setDOMElementAttribute ( $ element , 'span' , $ component -> getSpan ( ) ) ; foreach ( $ component -> getContent ( ) as $ col ) { $ marshaller = $ this -> getMarshallerFactory ( ) -> createMarshaller ( $ col ) ; $ element -> appendChild ( $ marshaller -> marshall ( $ col ) ) ; } $ this -> fillElement ( $ element , $ component ) ; return $ element ; }
Marshall a Colgroup object into a DOMElement object.

@param \qtism\data\QtiComponent $component A Colgroup object.
@return \DOMElement The according DOMElement object.
@throws \qtism\data\storage\xml\marshalling\MarshallingException
Marshall a Colgroup object into a DOMElement object .