ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilPortfolioImporter.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
13{
14 protected $ds;
15
19 public function init()
20 {
21 $this->ds = new ilPortfolioDataSet();
22 $this->ds->setDSPrefix("ds");
23 }
24
31 public function importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
32 {
33 $this->ds->setImportDirectory($this->getImportDirectory());
34 $parser = new ilDataSetImportParser(
35 $a_entity,
36 $this->getSchemaVersion(),
37 $a_xml,
38 $this->ds,
39 $a_mapping
40 );
41 }
42
48 public function finalProcessing($a_mapping)
49 {
50 $prttpg_map = $a_mapping->getMappingsOfEntity("Services/COPage", "pg");
51 foreach ($prttpg_map as $prttpg_id) {
52 $prttpg_id = substr($prttpg_id, 5);
54 ilPortfolioTemplatePage::_writeParentId("prtt", $prttpg_id, $prtt_id);
55 }
56 }
57}
An exception for terminatinating execution or to throw for unit testing.
Manifest parser for ILIAS standard export files.
static _writeParentId($a_parent_type, $a_pg_id, $a_par_id)
Write parent id.
Portfolio Data set class.
Importer class for portfolio.
finalProcessing($a_mapping)
Final processing.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
static findPortfolioForPage($a_page_id)
Get portfolio id of page id.
Xml importer class.
getSchemaVersion()
Get schema version.
getImportDirectory()
Get import directory.