protected function marshall(QtiComponent $component)
    {
        $element = static::getDOMCradle()->createElement($component->getQtiClassName());
        foreach ($component->getInterpolationTableEntries() as $interpolationTableEntry) {
            $marshaller = $this->getMarshallerFactory()->createMarshaller($interpolationTableEntry, array($this->getBaseType()));
            $element->appendChild($marshaller->marshall($interpolationTableEntry));
        }

        if ($component->getDefaultValue() !== null) {
            $this->setDOMElementAttribute($element, 'defaultValue', $component->getDefaultValue());
        }

        return $element;
    }
protected function marshall(QtiComponent $component)
    {
        $element = static::getDOMCradle()->createElement($component->getQtiClassName());
        foreach ($component->getInterpolationTableEntries() as $interpolationTableEntry) {
            $marshaller = $this->getMarshallerFactory()->createMarshaller($interpolationTableEntry, array($this->getBaseType()));
            $element->appendChild($marshaller->marshall($interpolationTableEntry));
        }

        if ($component->getDefaultValue() !== null) {
            $this->setDOMElementAttribute($element, 'defaultValue', $component->getDefaultValue());
        }

        return $element;
    }
protected function marshall ( QtiComponent $ component ) { $ element = static :: getDOMCradle ( ) -> createElement ( $ component -> getQtiClassName ( ) ) ; foreach ( $ component -> getInterpolationTableEntries ( ) as $ interpolationTableEntry ) { $ marshaller = $ this -> getMarshallerFactory ( ) -> createMarshaller ( $ interpolationTableEntry , array ( $ this -> getBaseType ( ) ) ) ; $ element -> appendChild ( $ marshaller -> marshall ( $ interpolationTableEntry ) ) ; } if ( $ component -> getDefaultValue ( ) !== null ) { $ this -> setDOMElementAttribute ( $ element , 'defaultValue' , $ component -> getDefaultValue ( ) ) ; } return $ element ; }
Marshall an InterpolationTable object into a DOMElement object.

@param \qtism\data\QtiComponent $component An InterpolationTable object.
@return \DOMElement The according DOMElement object.
Marshall an InterpolationTable object into a DOMElement object .