|
@@ -86,6 +86,15 @@ class Quiz extends Resource
|
|
|
* Feedback type
|
|
|
*/
|
|
|
var $feedback_type;
|
|
|
+ /**
|
|
|
+ * Random answers
|
|
|
+ */
|
|
|
+ var $random_answers;
|
|
|
+ /**
|
|
|
+ * Expired time
|
|
|
+ */
|
|
|
+ var $expired_time;
|
|
|
+
|
|
|
/**
|
|
|
* Create a new Quiz
|
|
|
* @param string $title
|
|
@@ -94,7 +103,7 @@ class Quiz extends Resource
|
|
|
* @param int $type
|
|
|
* @param int $active
|
|
|
*/
|
|
|
- function Quiz($id, $title, $description, $random, $type, $active, $media, $attempts = 0, $results_disabled = 0, $access_condition = null, $start_time = '0000-00-00 00:00:00', $end_time = '0000-00-00 00:00:00', $feedback_type = 0)
|
|
|
+ function Quiz($id, $title, $description, $random, $type, $active, $media, $attempts = 0, $results_disabled = 0, $access_condition = null, $start_time = '0000-00-00 00:00:00', $end_time = '0000-00-00 00:00:00', $feedback_type = 0, $random_answers = 0, $expired_time = 0)
|
|
|
{
|
|
|
parent::Resource($id, RESOURCE_QUIZ);
|
|
|
$this->title = $title;
|
|
@@ -110,6 +119,8 @@ class Quiz extends Resource
|
|
|
$this->start_time = $start_time;
|
|
|
$this->end_time = $end_time;
|
|
|
$this->feedback_type = $feedback_type;
|
|
|
+ $this->random_answers = $random_answers;
|
|
|
+ $this->expired_time = $expired_time;
|
|
|
}
|
|
|
/**
|
|
|
* Add a question to this Quiz
|