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); } } }
public function removeChoice(Choice $choice, $setNumber = null) { if ($choice instanceof GapImg) { unset($this->gapImgs[$choice->getSerial()]); } else { parent::removeChoice($choice); } }
/** * 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()]); }