MDL-20636 make syncronised datasets work for calculated* questions.

This commit is contained in:
Tim Hunt
2011-05-19 19:06:07 +01:00
parent 0eb253f7f6
commit e35ba43c91
7 changed files with 58 additions and 70 deletions
+3 -1
View File
@@ -419,8 +419,10 @@ class question_usage_by_activity {
/**
* Start the attempt at all questions that has been added to this usage.
* @param int $timestamp optional, the timstamp to record for this action. Defaults to now.
* @param int $userid optional, the user to attribute this action to. Defaults to the current user.
*/
public function start_all_questions() {
public function start_all_questions($timestamp = null, $userid = null) {
foreach ($this->questionattempts as $qa) {
$qa->start($this->preferredbehaviour);
$this->observer->notify_attempt_modified($qa);