Skip to content

Commit

Permalink
feat: Export using this same FF
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomiejmarszal committed May 3, 2024
1 parent 361b66d commit ad82c29
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions models/classes/export/AbstractQtiTestExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
use oat\oatbox\reporting\ReportInterface;
use oat\tao\model\featureFlag\FeatureFlagChecker;
use oat\taoQtiTest\models\classes\metadata\GenericLomOntologyExtractor;
use oat\taoQtiTest\models\classes\metadata\MetadataLomService;
use qtism\data\storage\xml\marshalling\MarshallingException;
use qtism\data\storage\xml\XmlDocument;
use oat\oatbox\filesystem\Directory;
Expand All @@ -50,8 +51,6 @@

abstract class AbstractQtiTestExporter extends ItemExporter implements QtiTestExporterInterface
{
public const FEATURE_FLAG_LOM_ONTOLOGY_EXTRACTION = 'FEATURE_FLAG_LOM_ONTOLOGY_EXTRACTION';

/** The QTISM XmlDocument representing the Test to be exported. */
private XmlDocument $testDocument;

Expand Down Expand Up @@ -178,7 +177,7 @@ public function export(array $options = []): Report
// 3. Export test metadata to manifest
$this->getMetadataExporter()->export($this->getItem(), $this->getManifest());

if ($this->getFeatureFlagChecker()->isEnabled(self::FEATURE_FLAG_LOM_ONTOLOGY_EXTRACTION)) {
if ($this->getFeatureFlagChecker()->isEnabled(MetadataLomService::FEATURE_FLAG)) {
$this->genericLomOntologyExtractor()->extract(
array_merge([$this->getItem()], $this->getItems()),
$this->getManifest()
Expand Down

0 comments on commit ad82c29

Please sign in to comment.