/** * Uses the quba object to render the slotid's question * * @param int $slotid * @param bool $review Whether or not we're reviewing the attempt * @param string|\stdClass $reviewoptions Can be string for overall actions like "edit" or an object of review options * @return string the HTML fragment for the question */ public function render_question($slotid, $review = false, $reviewoptions = '') { $displayoptions = $this->get_display_options($review, $reviewoptions); $questionnum = $this->get_question_number(); $this->add_question_number(); return $this->quba->render_question($slotid, $displayoptions, $questionnum); }
/** * @param $condition one or more Expectations. (users varargs). */ protected function check_current_output() { $html = $this->quba->render_question($this->slot, $this->displayoptions); foreach (func_get_args() as $condition) { $this->assert($condition, $html); } }