-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TemplateProcessing is now more robust.
- Loading branch information
=
committed
May 9, 2016
1 parent
fd38526
commit ba25bee
Showing
5 changed files
with
73 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
use qtism\data\IAssessmentItem; | ||
|
||
/** | ||
* An SessionManager implementation that creates default AssessmentTestSession and | ||
* A SessionManager implementation that creates default AssessmentTestSession and | ||
* AssessmentItemSession objects. | ||
* | ||
* @author Jérôme Bogaerts <[email protected]> | ||
|
@@ -56,6 +56,8 @@ protected function instantiateAssessmentTestSession(AssessmentTest $test, Route | |
*/ | ||
protected function instantiateAssessmentItemSession(IAssessmentItem $assessmentItem, $navigationMode, $submissionMode) | ||
{ | ||
return new AssessmentItemSession($assessmentItem, $navigationMode, $submissionMode); | ||
// When instantiating an AssessmentItemSession for a test, template processing must not occur automatically. | ||
// is always false. | ||
return new AssessmentItemSession($assessmentItem, $navigationMode, $submissionMode, false); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.