コード例 #1
0
 public function removeChoice(Choice $choice, $setNumber = null)
 {
     if (!is_null($setNumber) && isset($this->choices[$setNumber])) {
         unset($this->choices[$setNumber][$choice->getSerial()]);
     } else {
         for ($i = 0; $i < 2; $i++) {
             $this->removeChoice($choice, $i);
         }
     }
 }
コード例 #2
0
 public function removeChoice(Choice $choice, $setNumber = null)
 {
     if ($choice instanceof GapImg) {
         unset($this->gapImgs[$choice->getSerial()]);
     } else {
         parent::removeChoice($choice);
     }
 }
コード例 #3
0
 /**
  * Remove a choice from the interaction
  * 
  * @param oat\taoQtiItem\model\qti\choice\Choice $choice
  * @param mixed $setNumber
  */
 public function removeChoice(Choice $choice, $setNumber = null)
 {
     unset($this->choices[$choice->getSerial()]);
 }