-
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 #374 from oat-sa/release-19.0.4
Release 19.0.4
- Loading branch information
Showing
2 changed files
with
23 additions
and
2 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 |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
* Copyright (c) 2013-2020 (original work) Open Assessment Technologies SA (under the project TAO-PRODUCT); | ||
* Copyright (c) 2013-2023 (original work) Open Assessment Technologies SA (under the project TAO-PRODUCT); | ||
* | ||
* @author Jérôme Bogaerts <[email protected]> | ||
* @license GPLv2 | ||
|
@@ -137,6 +137,17 @@ protected function getRoute(AssessmentTest $test, Route $route = null): Route | |
return $route ?? $this->createRoute($test); | ||
} | ||
|
||
/** | ||
* Allow to recreate route items when AssessmentTest structure is changed | ||
* | ||
* @param AssessmentTest $test | ||
* @return Route | ||
*/ | ||
public function recreateRoute(AssessmentTest $test): Route | ||
{ | ||
return $this->createRoute($test); | ||
} | ||
|
||
/** | ||
* Contains the logic of creating the Route of a brand new AssessmentTestSession object. | ||
* The resulting Route object will be injected in the created AssessmentTestSession. | ||
|
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
* Copyright (c) 2013-2020 (original work) Open Assessment Technologies SA (under the project TAO-PRODUCT); | ||
* Copyright (c) 2013-2023 (original work) Open Assessment Technologies SA (under the project TAO-PRODUCT); | ||
* | ||
* @author Jérôme Bogaerts <[email protected]> | ||
* @license GPLv2 | ||
|
@@ -3061,6 +3061,16 @@ public function isNextRouteItemPredictible(): bool | |
return true; | ||
} | ||
|
||
/** | ||
* In case of need to recreate item sessions after the route was created | ||
* | ||
* @param RouteItem $routeItem | ||
*/ | ||
public function reinitializeAssessmentItemSession(RouteItem $routeItem): void | ||
{ | ||
$this->initializeAssessmentItemSession($routeItem); | ||
} | ||
|
||
/** | ||
* @param RouteItem $routeItem | ||
*/ | ||
|