ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilILIASObjectImporter.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27{
28 protected ?ilObjectDataSet $ds = null;
29
30 public function __construct()
31 {
33 }
34
35 public function init(): void
36 {
37 $this->ds = new ilObjectDataSet();
38 $this->ds->setDSPrefix("ds");
39 $this->ds->setImportDirectory($this->getImportDirectory());
40 }
41
42 public function importXmlRepresentation(
43 string $entity,
44 string $id,
45 string $xml,
46 ilImportMapping $mapping
47 ): void {
49 $entity,
50 $this->getSchemaVersion(),
51 $xml,
52 $this->ds,
53 $mapping
54 );
55 }
56}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Importer class for objects (currently focused on translation information)
importXmlRepresentation(string $entity, string $id, string $xml, ilImportMapping $mapping)
Object data set class.
Xml importer class.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc