protected function unmarshall(DOMElement $element)
    {
        $expressionElt = self::getFirstChildElement($element);

        if ($expressionElt !== false) {
            $marshaller = $this->getMarshallerFactory()->createMarshaller($expressionElt);
            $object = new PreCondition($marshaller->unmarshall($expressionElt));

            return $object;
        } else {
            $msg = "The mandatory 'expression' child element is missing from element '" . $element->localName . "'.";
            throw new UnmarshallingException($msg, $element);
        }
    }
protected function unmarshall(DOMElement $element)
    {
        $expressionElt = self::getFirstChildElement($element);

        if ($expressionElt !== false) {
            $marshaller = $this->getMarshallerFactory()->createMarshaller($expressionElt);
            $object = new PreCondition($marshaller->unmarshall($expressionElt));

            return $object;
        } else {
            $msg = "The mandatory 'expression' child element is missing from element '" . $element->localName . "'.";
            throw new UnmarshallingException($msg, $element);
        }
    }
protected function unmarshall ( DOMElement $ element ) { $ expressionElt = self :: getFirstChildElement ( $ element ) ; if ( $ expressionElt !== false ) { $ marshaller = $ this -> getMarshallerFactory ( ) -> createMarshaller ( $ expressionElt ) ; $ object = new PreCondition ( $ marshaller -> unmarshall ( $ expressionElt ) ) ; return $ object ; } else { $ msg = "The mandatory 'expression' child element is missing from element '" . $ element -> localName . "'." ; throw new UnmarshallingException ( $ msg , $ element ) ; } }
Unmarshall a DOMElement object corresponding to a QTI preCondition element.

@param \DOMElement $element A DOMElement object.
@return \qtism\data\QtiComponent A Precondition object.
@throws \qtism\data\storage\xml\marshalling\UnmarshallingException If $element does not contain any QTI expression element.
Unmarshall a DOMElement object corresponding to a QTI preCondition element .