protected function marshallChildrenKnown(QtiComponent $component, array $elements)
    {
        $element = self::getDOMCradle()->createElement($component->getQtiClassName());

        $this->setDOMElementAttribute($element, 'figures', $component->getFigures());
        $this->setDOMElementAttribute($element, 'roundingMode', RoundingMode::getNameByConstant($component->getRoundingMode()));

        foreach ($elements as $elt) {
            $element->appendChild($elt);
        }

        return $element;
    }
protected function marshallChildrenKnown(QtiComponent $component, array $elements)
    {
        $element = self::getDOMCradle()->createElement($component->getQtiClassName());

        $this->setDOMElementAttribute($element, 'figures', $component->getFigures());
        $this->setDOMElementAttribute($element, 'roundingMode', RoundingMode::getNameByConstant($component->getRoundingMode()));

        foreach ($elements as $elt) {
            $element->appendChild($elt);
        }

        return $element;
    }
protected function marshallChildrenKnown ( QtiComponent $ component , array $ elements ) { $ element = self :: getDOMCradle ( ) -> createElement ( $ component -> getQtiClassName ( ) ) ; $ this -> setDOMElementAttribute ( $ element , 'figures' , $ component -> getFigures ( ) ) ; $ this -> setDOMElementAttribute ( $ element , 'roundingMode' , RoundingMode :: getNameByConstant ( $ component -> getRoundingMode ( ) ) ) ; foreach ( $ elements as $ elt ) { $ element -> appendChild ( $ elt ) ; } return $ element ; }
Unmarshall a RoundTo object into a QTI roundTo element.

@param \qtism\data\QtiComponent $component The RoundTo object to marshall.
@param array $elements An array of child DOMEelement objects.
@return \DOMElement The marshalled QTI roundTo element.
Unmarshall a RoundTo object into a QTI roundTo element .