-
Notifications
You must be signed in to change notification settings - Fork 11
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 #339 from oat-sa/release-2.19.0
Release 2.19.0
- Loading branch information
Showing
17 changed files
with
355 additions
and
136 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
/** | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; under version 2 | ||
* of the License (non-upgradable). | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* 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) 2016 (original work) Open Assessment Technologies SA ; | ||
*/ | ||
|
||
namespace oat\taoQtiTest\models; | ||
|
||
use qtism\runtime\tests\AssessmentTestSession; | ||
|
||
/** | ||
* @author Jean-Sébastien Conan <[email protected]> | ||
*/ | ||
|
||
/** | ||
* Interface TestContextBuilder. | ||
* | ||
* Provides a way to extend the assessment test context. | ||
* | ||
* @package oat\taoQtiTest\models | ||
*/ | ||
interface TestContextBuilder | ||
{ | ||
/** | ||
* Extends an already built context | ||
* | ||
* @param array $context A reference to the context to extend | ||
* @param AssessmentTestSession $session A given AssessmentTestSession object. | ||
* @param array $testMeta An associative array containing meta-data about the test definition taken by the candidate. | ||
* @param string $qtiTestDefinitionUri The URI of a reference to an Assessment Test definition in the knowledge base. | ||
* @param string $qtiTestCompilationUri The Uri of a reference to an Assessment Test compilation in the knowledge base. | ||
* @param string $standalone | ||
* @param string $compilationDirs An array containing respectively the private and public compilation directories. | ||
* @return array The context of the candidate session. | ||
*/ | ||
public function extendAssessmentTestContext(array &$context, AssessmentTestSession $session, array $testMeta, $qtiTestDefinitionUri, $qtiTestCompilationUri, $standalone, $compilationDirs); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?php | ||
/** | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; under version 2 | ||
* of the License (non-upgradable). | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* 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) 2015 (original work) Open Assessment Technologies SA; | ||
* | ||
* | ||
*/ | ||
|
||
namespace oat\taoQtiTest\models\event; | ||
|
||
use oat\oatbox\event\Event; | ||
use oat\taoDelivery\model\execution\DeliveryExecution; | ||
/** | ||
* Event should be triggered after storing test trace variable | ||
* | ||
*/ | ||
class TraceVariableStored implements Event | ||
{ | ||
|
||
private $deliveryExecutionId; | ||
|
||
private $deliveryExecution; | ||
|
||
/** | ||
* DeliveryExecutionState constructor. | ||
* @param $deliveryExecutionId | ||
*/ | ||
public function __construct($deliveryExecutionId) | ||
{ | ||
$this->deliveryExecutionId = $deliveryExecutionId; | ||
} | ||
|
||
/** | ||
* @return DeliveryExecution | ||
*/ | ||
public function getDeliveryExecution() | ||
{ | ||
if(is_null($this->deliveryExecution)){ | ||
$this->deliveryExecution = \taoDelivery_models_classes_execution_ServiceProxy::singleton()->getDeliveryExecution($this->deliveryExecutionId); | ||
} | ||
return $this->deliveryExecution; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getState() | ||
{ | ||
$deliveryExecution = $this->getDeliveryExecution(); | ||
return $deliveryExecution->getState()->getUri(); | ||
} | ||
|
||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getName() | ||
{ | ||
return __CLASS__; | ||
} | ||
|
||
} |
Oops, something went wrong.