protected function marshall(QtiComponent $component)
    {
        $element = self::getDOMCradle()->createElement('templateProcessing');

        foreach ($component->getTemplateRules() as $templateRule) {
            $element->appendChild($this->getMarshallerFactory()->createMarshaller($templateRule)->marshall($templateRule));
        }

        return $element;
    }
protected function marshall(QtiComponent $component)
    {
        $element = self::getDOMCradle()->createElement('templateProcessing');

        foreach ($component->getTemplateRules() as $templateRule) {
            $element->appendChild($this->getMarshallerFactory()->createMarshaller($templateRule)->marshall($templateRule));
        }

        return $element;
    }
protected function marshall ( QtiComponent $ component ) { $ element = self :: getDOMCradle ( ) -> createElement ( 'templateProcessing' ) ; foreach ( $ component -> getTemplateRules ( ) as $ templateRule ) { $ element -> appendChild ( $ this -> getMarshallerFactory ( ) -> createMarshaller ( $ templateRule ) -> marshall ( $ templateRule ) ) ; } return $ element ; }
Marshall a TemplateProcessing object into a DOMElement object.

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