protected function marshall(QtiComponent $component)
    {
        $element = static::getDOMCradle()->createElement($component->getQtiClassName());

        if ($component->hasMinTime() === true) {
            $this->setDOMElementAttribute($element, 'minTime', $component->getMinTime()->getSeconds(true));
        }

        if ($component->hasMaxTime() === true) {
            $this->setDOMElementAttribute($element, 'maxTime', $component->getMaxTime()->getSeconds(true));
        }

        $this->setDOMElementAttribute($element, 'allowLateSubmission', $component->doesAllowLateSubmission());

        return $element;
    }
protected function marshall(QtiComponent $component)
    {
        $element = static::getDOMCradle()->createElement($component->getQtiClassName());

        if ($component->hasMinTime() === true) {
            $this->setDOMElementAttribute($element, 'minTime', $component->getMinTime()->getSeconds(true));
        }

        if ($component->hasMaxTime() === true) {
            $this->setDOMElementAttribute($element, 'maxTime', $component->getMaxTime()->getSeconds(true));
        }

        $this->setDOMElementAttribute($element, 'allowLateSubmission', $component->doesAllowLateSubmission());

        return $element;
    }
protected function marshall ( QtiComponent $ component ) { $ element = static :: getDOMCradle ( ) -> createElement ( $ component -> getQtiClassName ( ) ) ; if ( $ component -> hasMinTime ( ) === true ) { $ this -> setDOMElementAttribute ( $ element , 'minTime' , $ component -> getMinTime ( ) -> getSeconds ( true ) ) ; } if ( $ component -> hasMaxTime ( ) === true ) { $ this -> setDOMElementAttribute ( $ element , 'maxTime' , $ component -> getMaxTime ( ) -> getSeconds ( true ) ) ; } $ this -> setDOMElementAttribute ( $ element , 'allowLateSubmission' , $ component -> doesAllowLateSubmission ( ) ) ; return $ element ; }
Marshall a TimeLimits object into a DOMElement object.

@param \qtism\data\QtiComponent $component A TimeLimits object.
@return \DOMElement The according DOMElement object.
Marshall a TimeLimits object into a DOMElement object .