public function setUp() { parent::setUp(); $this->behaviourtype = question_engine::get_behaviour_type('interactivecountback'); }
/** * Does this quiz allow multiple tries? * * @return bool */ function quiz_allows_multiple_tries($quiz) { $bt = question_engine::get_behaviour_type($quiz->preferredbehaviour); return $bt->allows_multiple_submitted_responses(); }
public function setUp() { parent::setUp(); $this->behaviourtype = question_engine::get_behaviour_type('immediatefeedback'); }
public function setUp() { parent::setUp(); $this->behaviourtype = question_engine::get_behaviour_type('informationitem'); }
/** * Get summary information about this usage. * * Some behaviours may be able to provide interesting summary information * about the attempt as a whole, and this method provides access to that data. * To see how this works, try setting a quiz to one of the CBM behaviours, * and then look at the extra information displayed at the top of the quiz * review page once you have sumitted an attempt. * * In the return value, the array keys are identifiers of the form * qbehaviour_behaviourname_meaningfullkey. For qbehaviour_deferredcbm_highsummary. * The values are arrays with two items, title and content. Each of these * will be either a string, or a renderable. * * @return array as described above. */ public function get_summary_information(question_display_options $options) { return question_engine::get_behaviour_type($this->preferredbehaviour)->summarise_usage($this, $options); }
public function setUp() { parent::setUp(); $this->behaviourtype = question_engine::get_behaviour_type('deferredcbm'); }
public function setUp() { parent::setUp(); $this->behaviourtype = question_engine::get_behaviour_type('manualgraded'); }
public function setUp() { parent::setUp(); $this->behaviourtype = question_engine::get_behaviour_type('missing'); }