-
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.
Merge pull request #40 from oat-sa/legacy-assessmentSectionRef-in-tes…
…tPart AssessmentSectionRef resolution support.
- Loading branch information
Showing
13 changed files
with
212 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ | |
* @author Jérôme Bogaerts <[email protected]> | ||
* | ||
*/ | ||
class AssessmentSectionCollection extends QtiIdentifiableCollection { | ||
class AssessmentSectionCollection extends SectionPartCollection { | ||
|
||
/** | ||
* Check if $value is an AssessmentSection object. | ||
|
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
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
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
21 changes: 21 additions & 0 deletions
21
test/samples/custom/tests/nested_assessment_section_refs/items/question1.xml
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/qti/qtiv2p1/imsqti_v2p1p1.xsd" | ||
identifier="question1" title="Question 1" adaptive="false" timeDependent="false"> | ||
<responseDeclaration identifier="RESPONSE" cardinality="single" baseType="identifier"> | ||
<correctResponse> | ||
<value>ChoiceA</value> | ||
</correctResponse> | ||
</responseDeclaration> | ||
<outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/> | ||
<itemBody> | ||
<choiceInteraction responseIdentifier="RESPONSE" shuffle="true" maxChoices="0"> | ||
<prompt>What is the correct response?</prompt> | ||
<simpleChoice identifier="ChoiceA" fixed="false">Choice A</simpleChoice> | ||
<simpleChoice identifier="ChoiceB" fixed="false">Choice B</simpleChoice> | ||
<simpleChoice identifier="ChoiceC" fixed="false">Choice C</simpleChoice> | ||
</choiceInteraction> | ||
</itemBody> | ||
<responseProcessing template="http://www.imsglobal.org/question/qti_v2p1/rptemplates/match_correct"/> | ||
</assessmentItem> |
21 changes: 21 additions & 0 deletions
21
test/samples/custom/tests/nested_assessment_section_refs/items/question2.xml
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/qti/qtiv2p1/imsqti_v2p1p1.xsd" | ||
identifier="question2" title="Question 2" adaptive="false" timeDependent="false"> | ||
<responseDeclaration identifier="RESPONSE" cardinality="single" baseType="identifier"> | ||
<correctResponse> | ||
<value>ChoiceB</value> | ||
</correctResponse> | ||
</responseDeclaration> | ||
<outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/> | ||
<itemBody> | ||
<choiceInteraction responseIdentifier="RESPONSE" shuffle="true" maxChoices="0"> | ||
<prompt>What is the correct response?</prompt> | ||
<simpleChoice identifier="ChoiceA" fixed="false">Choice A</simpleChoice> | ||
<simpleChoice identifier="ChoiceB" fixed="false">Choice B</simpleChoice> | ||
<simpleChoice identifier="ChoiceC" fixed="false">Choice C</simpleChoice> | ||
</choiceInteraction> | ||
</itemBody> | ||
<responseProcessing template="http://www.imsglobal.org/question/qti_v2p1/rptemplates/match_correct"/> | ||
</assessmentItem> |
21 changes: 21 additions & 0 deletions
21
test/samples/custom/tests/nested_assessment_section_refs/items/question3.xml
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/qti/qtiv2p1/imsqti_v2p1p1.xsd" | ||
identifier="question3" title="Question 3" adaptive="false" timeDependent="false"> | ||
<responseDeclaration identifier="RESPONSE" cardinality="single" baseType="identifier"> | ||
<correctResponse> | ||
<value>ChoiceC</value> | ||
</correctResponse> | ||
</responseDeclaration> | ||
<outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/> | ||
<itemBody> | ||
<choiceInteraction responseIdentifier="RESPONSE" shuffle="true" maxChoices="0"> | ||
<prompt>What is the correct response?</prompt> | ||
<simpleChoice identifier="ChoiceA" fixed="false">Choice A</simpleChoice> | ||
<simpleChoice identifier="ChoiceB" fixed="false">Choice B</simpleChoice> | ||
<simpleChoice identifier="ChoiceC" fixed="false">Choice C</simpleChoice> | ||
</choiceInteraction> | ||
</itemBody> | ||
<responseProcessing template="http://www.imsglobal.org/question/qti_v2p1/rptemplates/match_correct"/> | ||
</assessmentItem> |
4 changes: 4 additions & 0 deletions
4
test/samples/custom/tests/nested_assessment_section_refs/sections/section_ref1.xml
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<assessmentSection identifier="S01" title="Section 1" visible="true" fixed="false" keepTogether="false" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/qti/qtiv2p1/imsqti_v2p1p1.xsd" xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1"> | ||
<assessmentSectionRef identifier="SR02" href="../sections/section_ref2.xml" /> | ||
</assessmentSection> |
6 changes: 6 additions & 0 deletions
6
test/samples/custom/tests/nested_assessment_section_refs/sections/section_ref2.xml
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<assessmentSection identifier="S02" title="Section 2" visible="true" fixed="false" keepTogether="false" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/qti/qtiv2p1/imsqti_v2p1p1.xsd" xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1"> | ||
<assessmentItemRef identifier="Q01" href="../items/question1.xml" required="false" fixed="false" /> | ||
<assessmentItemRef identifier="Q02" href="../items/question2.xml" required="false" fixed="false" /> | ||
<assessmentItemRef identifier="Q03" href="../items/question3.xml" required="false" fixed="false" /> | ||
</assessmentSection> |
6 changes: 6 additions & 0 deletions
6
test/samples/custom/tests/nested_assessment_section_refs/test_definition/test.xml
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<assessmentTest title="Nested Assessment Section References" identifier="nested_assessment_section_refs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/qti/qtiv2p1/imsqti_v2p1p1.xsd" xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1"> | ||
<testPart navigationMode="nonlinear" identifier="T01" submissionMode="individual"> | ||
<assessmentSectionRef identifier="SR01" href="../sections/section_ref1.xml" /> | ||
</testPart> | ||
</assessmentTest> |