|
@@ -133,6 +133,8 @@ class Scorm2004ObjectiveProgressInformationRepository extends EntityRepository
|
133
|
133
|
return null;
|
134
|
134
|
}
|
135
|
135
|
|
|
136
|
+ $dummyInfo = clone $localInfo;
|
|
137
|
+
|
136
|
138
|
// On recherche si il existe un mappage avec un objectif global
|
137
|
139
|
$mapInfos = $dom->getMapInfos($objective['item'], $objective['objective'], $objective['isPrimary']);
|
138
|
140
|
|
|
@@ -147,38 +149,36 @@ class Scorm2004ObjectiveProgressInformationRepository extends EntityRepository
|
147
|
149
|
// On remplace dans l'objet que l'on va retourner
|
148
|
150
|
// les valeurs spécifiques au mappage
|
149
|
151
|
if ($globalInfo) {
|
150
|
|
- if ($mapInfo['readSatisfiedStatus']) {
|
151
|
|
- $localInfo->setProgressStatus($globalInfo->getProgressStatus());
|
152
|
|
- $localInfo->setSatisfiedStatus($globalInfo->getSatisfiedStatus());
|
|
152
|
+ if ($mapInfo['readSatisfiedStatus'] === 'true') {
|
|
153
|
+ $dummyInfo->setProgressStatus($globalInfo->getProgressStatus());
|
|
154
|
+ $dummyInfo->setSatisfiedStatus($globalInfo->getSatisfiedStatus());
|
153
|
155
|
}
|
154
|
|
- if ($mapInfo['readNormalizedMeasure']) {
|
155
|
|
- $localInfo->setMeasureStatus($globalInfo->getMeasureStatus());
|
156
|
|
- $localInfo->setNormalizedMeasure($globalInfo->getNormalizedMeasure());
|
|
156
|
+ if ($mapInfo['readNormalizedMeasure'] === 'true') {
|
|
157
|
+ $dummyInfo->setMeasureStatus($globalInfo->getMeasureStatus());
|
|
158
|
+ $dummyInfo->setNormalizedMeasure($globalInfo->getNormalizedMeasure());
|
157
|
159
|
}
|
158
|
|
- if ($mapInfo['readCompletionStatus']) {
|
159
|
|
- $localInfo->setAttemptProgressStatus($globalInfo->getAttemptProgressStatus());
|
160
|
|
- $localInfo->setAttemptCompletionStatus($globalInfo->getAttemptCompletionStatus());
|
|
160
|
+ if ($mapInfo['readCompletionStatus'] === 'true') {
|
|
161
|
+ $dummyInfo->setAttemptProgressStatus($globalInfo->getAttemptProgressStatus());
|
|
162
|
+ $dummyInfo->setAttemptCompletionStatus($globalInfo->getAttemptCompletionStatus());
|
161
|
163
|
}
|
162
|
|
- if ($mapInfo['readProgressMeasure']) {
|
163
|
|
- $localInfo->setAttemptCompletionAmountStatus($globalInfo->getAttemptCompletionAmountStatus());
|
164
|
|
- $localInfo->setAttemptCompletionAmount($globalInfo->getAttemptCompletionAmount());
|
|
164
|
+ if ($mapInfo['readProgressMeasure'] === 'true') {
|
|
165
|
+ $dummyInfo->setAttemptCompletionAmountStatus($globalInfo->getAttemptCompletionAmountStatus());
|
|
166
|
+ $dummyInfo->setAttemptCompletionAmount($globalInfo->getAttemptCompletionAmount());
|
165
|
167
|
}
|
166
|
|
- if ($mapInfo['readRawScore']) {
|
167
|
|
- $localInfo->setScoreRaw($globalInfo->getScoreRaw());
|
|
168
|
+ if ($mapInfo['readRawScore'] === 'true') {
|
|
169
|
+ $dummyInfo->setScoreRaw($globalInfo->getScoreRaw());
|
168
|
170
|
}
|
169
|
|
- if ($mapInfo['readMinScore']) {
|
170
|
|
- $localInfo->setScoreMin($globalInfo->getScoreMin());
|
|
171
|
+ if ($mapInfo['readMinScore'] === 'true') {
|
|
172
|
+ $dummyInfo->setScoreMin($globalInfo->getScoreMin());
|
171
|
173
|
}
|
172
|
|
- if ($mapInfo['readMaxScore']) {
|
173
|
|
- $localInfo->setScoreMax($globalInfo->getScoreMax());
|
|
174
|
+ if ($mapInfo['readMaxScore'] === 'true') {
|
|
175
|
+ $dummyInfo->setScoreMax($globalInfo->getScoreMax());
|
174
|
176
|
}
|
175
|
177
|
}
|
176
|
|
-
|
177
|
|
- return $localInfo;
|
178
|
178
|
}
|
179
|
179
|
}
|
180
|
|
-
|
181
|
|
- return null;
|
|
180
|
+
|
|
181
|
+ return $dummyInfo;
|
182
|
182
|
}
|
183
|
183
|
|
184
|
184
|
/**
|