ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilPortfolioImporter.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
include_once(
"./Services/Export/classes/class.ilXmlImporter.php"
);
5
15
class
ilPortfolioImporter
extends
ilXmlImporter
16
{
17
protected
$ds
;
18
22
function
init
()
23
{
24
include_once(
"./Modules/Portfolio/classes/class.ilPortfolioDataSet.php"
);
25
$this->ds =
new
ilPortfolioDataSet
();
26
$this->ds->setDSPrefix(
"ds"
);
27
}
28
35
function
importXmlRepresentation
($a_entity, $a_id, $a_xml, $a_mapping)
36
{
37
$this->ds->setImportDirectory($this->
getImportDirectory
());
38
include_once(
"./Services/DataSet/classes/class.ilDataSetImportParser.php"
);
39
$parser
=
new
ilDataSetImportParser
($a_entity, $this->
getSchemaVersion
(),
40
$a_xml, $this->ds, $a_mapping);
41
}
42
48
function
finalProcessing
($a_mapping)
49
{
50
$prttpg_map = $a_mapping->getMappingsOfEntity(
"Services/COPage"
,
"pg"
);
51
foreach
($prttpg_map as $prttpg_id)
52
{
53
$prttpg_id = substr($prttpg_id, 5);
54
$prtt_id =
ilPortfolioTemplatePage::findPortfolioForPage
($prttpg_id);
55
ilPortfolioTemplatePage::_writeParentId
(
"prtt"
, $prttpg_id, $prtt_id);
56
}
57
}
58
}
59
60
?>
ilXmlImporter\getSchemaVersion
getSchemaVersion()
Get schema version.
Definition:
class.ilXmlImporter.php:108
ilPortfolioImporter\init
init()
Initialisation.
Definition:
class.ilPortfolioImporter.php:22
ilXmlImporter\getImportDirectory
getImportDirectory()
Get import directory.
Definition:
class.ilXmlImporter.php:128
ilPortfolioImporter\finalProcessing
finalProcessing($a_mapping)
Final processing.
Definition:
class.ilPortfolioImporter.php:48
ilPortfolioPage\findPortfolioForPage
static findPortfolioForPage($a_page_id)
Get portfolio id of page id.
Definition:
class.ilPortfolioPage.php:330
ilPortfolioDataSet
Portfolio Data set class.
Definition:
class.ilPortfolioDataSet.php:19
ilDataSetImportParser
Manifest parser for ILIAS standard export files.
Definition:
class.ilDataSetImportParser.php:13
ilPortfolioImporter
Importer class for portfolio.
Definition:
class.ilPortfolioImporter.php:15
ilPageObject\_writeParentId
static _writeParentId($a_parent_type, $a_pg_id, $a_par_id)
Write parent id.
Definition:
class.ilPageObject.php:721
ilPortfolioImporter\importXmlRepresentation
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
Definition:
class.ilPortfolioImporter.php:35
$parser
$parser
Definition:
BPMN2Parser.php:24
ilPortfolioImporter\$ds
$ds
Definition:
class.ilPortfolioImporter.php:17
php
ilXmlImporter
Xml importer class.
Definition:
class.ilXmlImporter.php:11
Modules
Portfolio
classes
class.ilPortfolioImporter.php
Generated on Fri Jan 17 2025 19:01:01 for ILIAS by
1.8.13 (using
Doxyfile
)