protected function unmarshall(DOMElement $element)
    {
        if (($responseIdentifier = $this->getDOMElementAttributeAs($element, 'responseIdentifier')) !== null) {

            $frag = $element->ownerDocument->createDocumentFragment();
            $element = $element->cloneNode(true);
            $frag->appendChild($element);
            $xmlString = $frag->ownerDocument->saveXML($frag);

            $component = new CustomInteraction($responseIdentifier, $xmlString);
            $this->fillBodyElement($component, $element);
        }

        return $component;
    }
protected function unmarshall(DOMElement $element)
    {
        if (($responseIdentifier = $this->getDOMElementAttributeAs($element, 'responseIdentifier')) !== null) {

            $frag = $element->ownerDocument->createDocumentFragment();
            $element = $element->cloneNode(true);
            $frag->appendChild($element);
            $xmlString = $frag->ownerDocument->saveXML($frag);

            $component = new CustomInteraction($responseIdentifier, $xmlString);
            $this->fillBodyElement($component, $element);
        }

        return $component;
    }
protected function unmarshall ( DOMElement $ element ) { if ( ( $ responseIdentifier = $ this -> getDOMElementAttributeAs ( $ element , 'responseIdentifier' ) ) !== null ) { $ frag = $ element -> ownerDocument -> createDocumentFragment ( ) ; $ element = $ element -> cloneNode ( true ) ; $ frag -> appendChild ( $ element ) ; $ xmlString = $ frag -> ownerDocument -> saveXML ( $ frag ) ; $ component = new CustomInteraction ( $ responseIdentifier , $ xmlString ) ; $ this -> fillBodyElement ( $ component , $ element ) ; } return $ component ; }
Unmarshall a DOMElement object corresponding to a QTI customInteraction element.

@param \DOMElement $element A DOMElement object.
@return \qtism\data\QtiComponent A CustomInteraction object.
@throws \qtism\data\storage\xml\marshalling\UnmarshallingException
Unmarshall a DOMElement object corresponding to a QTI customInteraction element .