Exemple #1
0
 /**
  * Create hole
  *
  * @access protected
  *
  * @param Intger $size hole's size for the input
  * @param String $qtiId id of hole in the qti file
  * @param boolean $selector text or list
  * @param Integer $position position of hole in the text
  *
  */
 protected function createHole($size, $qtiId, $selector, $position)
 {
     $hole = new Hole();
     $hole->setSize($size);
     $hole->setSelector($selector);
     $hole->setPosition($position);
     $hole->setInteractionHole($this->interactionHole);
     $this->om->persist($hole);
     $this->createWordResponse($qtiId, $hole);
 }