Example #1
0
 /**
  * overload the export method
  *
  * @access public
  * @param \UJM\ExoBundle\Entity\Interaction $interaction
  * @param qtiRepository $qtiRepos
  *
  */
 public function export(\UJM\ExoBundle\Entity\Interaction $interaction, qtiRepository $qtiRepos)
 {
     parent::export($interaction, $qtiRepos);
     $this->extendedTextInteractionTag();
     $this->promptTag($this->extendedTextInteraction);
     $this->document->save($this->qtiRepos->getUserDir() . $this->question->getId() . '_qestion_qti.xml');
     return $this->getResponse();
 }
 /**
  * overload the export method
  *
  * @access public
  * @param \UJM\ExoBundle\Entity\Interaction $interaction
  * @param qtiRepository $qtiRepos
  *
  */
 public function export(\UJM\ExoBundle\Entity\Interaction $interaction, qtiRepository $qtiRepos)
 {
     parent::export($interaction, $qtiRepos);
     $this->promptTag($this->itemBody);
     $this->mappingTag();
     $this->extendedTextInteractionTag();
     if ($this->interactionopen->getInteraction()->getFeedBack() != Null && $this->interactionopen->getInteraction()->getFeedBack() != "") {
         $this->qtiFeedBack($interaction->getFeedBack());
     }
     $this->document->save($this->qtiRepos->getUserDir() . $this->question->getId() . '_qestion_qti.xml');
     return $this->getResponse();
 }