protected function unmarshall(DOMElement $element)
    {
        $object = new TimeLimits();

        if (($value = $this->getDOMElementAttributeAs($element, 'minTime', 'string')) !== null) {
            $object->setMinTime(StorageUtils::stringToDatatype("PT${value}S", BaseType::DURATION));
        }

        if (($value = $this->getDOMElementAttributeAs($element, 'maxTime', 'string')) !== null) {
            $object->setMaxTime(StorageUtils::stringToDatatype("PT${value}S", BaseType::DURATION));
        }

        if (($value = $this->getDOMElementAttributeAs($element, 'allowLateSubmission', 'boolean')) !== null) {
            $object->setAllowLateSubmission($value);
        }

        return $object;
    }
protected function unmarshall(DOMElement $element)
    {
        $object = new TimeLimits();

        if (($value = $this->getDOMElementAttributeAs($element, 'minTime', 'string')) !== null) {
            $object->setMinTime(StorageUtils::stringToDatatype("PT${value}S", BaseType::DURATION));
        }

        if (($value = $this->getDOMElementAttributeAs($element, 'maxTime', 'string')) !== null) {
            $object->setMaxTime(StorageUtils::stringToDatatype("PT${value}S", BaseType::DURATION));
        }

        if (($value = $this->getDOMElementAttributeAs($element, 'allowLateSubmission', 'boolean')) !== null) {
            $object->setAllowLateSubmission($value);
        }

        return $object;
    }
protected function unmarshall ( DOMElement $ element ) { $ object = new TimeLimits ( ) ; if ( ( $ value = $ this -> getDOMElementAttributeAs ( $ element , 'minTime' , 'string' ) ) !== null ) { $ object -> setMinTime ( StorageUtils :: stringToDatatype ( "PT${value}S" , BaseType :: DURATION ) ) ; } if ( ( $ value = $ this -> getDOMElementAttributeAs ( $ element , 'maxTime' , 'string' ) ) !== null ) { $ object -> setMaxTime ( StorageUtils :: stringToDatatype ( "PT${value}S" , BaseType :: DURATION ) ) ; } if ( ( $ value = $ this -> getDOMElementAttributeAs ( $ element , 'allowLateSubmission' , 'boolean' ) ) !== null ) { $ object -> setAllowLateSubmission ( $ value ) ; } return $ object ; }
Unmarshall a DOMElement object corresponding to a QTI timeLimits element.

@param \DOMElement $element A DOMElement object.
@return \qtism\data\QtiComponent A TimeLimits object.
@throws \qtism\data\storage\xml\marshalling\UnmarshallingException If the attribute 'allowLateSubmission' is not a valid boolean value.
Unmarshall a DOMElement object corresponding to a QTI timeLimits element .