protected function marshall(QtiComponent $component)
    {
        $element = self::getDOMCradle()->createElement('param');
        $this->setDOMElementAttribute($element, 'name', $component->getName());
        $this->setDOMElementAttribute($element, 'value', $component->getValue());
        $this->setDOMElementAttribute($element, 'valuetype', ParamType::getNameByConstant($component->getValueType()));

        if ($component->hasType() === true) {
            $this->setDOMElementAttribute($element, 'type', $component->getType());
        }

        return $element;
    }
protected function marshall(QtiComponent $component)
    {
        $element = self::getDOMCradle()->createElement('param');
        $this->setDOMElementAttribute($element, 'name', $component->getName());
        $this->setDOMElementAttribute($element, 'value', $component->getValue());
        $this->setDOMElementAttribute($element, 'valuetype', ParamType::getNameByConstant($component->getValueType()));

        if ($component->hasType() === true) {
            $this->setDOMElementAttribute($element, 'type', $component->getType());
        }

        return $element;
    }
protected function marshall ( QtiComponent $ component ) { $ element = self :: getDOMCradle ( ) -> createElement ( 'param' ) ; $ this -> setDOMElementAttribute ( $ element , 'name' , $ component -> getName ( ) ) ; $ this -> setDOMElementAttribute ( $ element , 'value' , $ component -> getValue ( ) ) ; $ this -> setDOMElementAttribute ( $ element , 'valuetype' , ParamType :: getNameByConstant ( $ component -> getValueType ( ) ) ) ; if ( $ component -> hasType ( ) === true ) { $ this -> setDOMElementAttribute ( $ element , 'type' , $ component -> getType ( ) ) ; } return $ element ; }
Marshall a Param object into a DOMElement object.

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