Ejemplo n.º 1
0
 public function setUp()
 {
     parent::setUp();
     $this->behaviourtype = question_engine::get_behaviour_type('interactivecountback');
 }
Ejemplo n.º 2
0
Archivo: lib.php Proyecto: dg711/moodle
/**
 * 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();
}
Ejemplo n.º 3
0
 public function setUp()
 {
     parent::setUp();
     $this->behaviourtype = question_engine::get_behaviour_type('immediatefeedback');
 }
Ejemplo n.º 4
0
 public function setUp()
 {
     parent::setUp();
     $this->behaviourtype = question_engine::get_behaviour_type('informationitem');
 }
Ejemplo n.º 5
0
 /**
  * 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');
 }
Ejemplo n.º 7
0
 public function setUp()
 {
     parent::setUp();
     $this->behaviourtype = question_engine::get_behaviour_type('manualgraded');
 }
Ejemplo n.º 8
0
 public function setUp()
 {
     parent::setUp();
     $this->behaviourtype = question_engine::get_behaviour_type('missing');
 }