public function toQTI(){
        $returnValue = $this->getBody();

        foreach($this->elements as $element){
            $returnValue = str_replace($element->getPlaceholder(), $element->toQTI(), $returnValue);
        }

        return (string) $returnValue;
    }
public function toQTI(){
        $returnValue = $this->getBody();

        foreach($this->elements as $element){
            $returnValue = str_replace($element->getPlaceholder(), $element->toQTI(), $returnValue);
        }

        return (string) $returnValue;
    }
public function toQTI ( ) { $ returnValue = $ this -> getBody ( ) ; foreach ( $ this -> elements as $ element ) { $ returnValue = str_replace ( $ element -> getPlaceholder ( ) , $ element -> toQTI ( ) , $ returnValue ) ; } return ( string ) $ returnValue ; }
Export the data to QTI XML format

@access public
@author Bertrand Chevrier, <bertrand.chevrier@tudor.lu>
@return string
Export the data to QTI XML format