ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
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
12
class
ilPortfolioImporter
extends
ilXmlImporter
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);
53
$prtt_id =
ilPortfolioTemplatePage::findPortfolioForPage
($prttpg_id);
54
ilPortfolioTemplatePage::_writeParentId
(
"prtt"
, $prttpg_id, $prtt_id);
55
}
56
}
57
}
ilXmlImporter\getSchemaVersion
getSchemaVersion()
Get schema version.
Definition:
class.ilXmlImporter.php:107
ilPortfolioImporter\init
init()
Initialisation.
Definition:
class.ilPortfolioImporter.php:19
ilXmlImporter\getImportDirectory
getImportDirectory()
Get import directory.
Definition:
class.ilXmlImporter.php:127
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:343
ilPortfolioDataSet
Portfolio Data set class.
Definition:
class.ilPortfolioDataSet.php:16
ilDataSetImportParser
Manifest parser for ILIAS standard export files.
Definition:
class.ilDataSetImportParser.php:13
ilPortfolioImporter
Importer class for portfolio.
Definition:
class.ilPortfolioImporter.php:12
ilPageObject\_writeParentId
static _writeParentId($a_parent_type, $a_pg_id, $a_par_id)
Write parent id.
Definition:
class.ilPageObject.php:751
ilPortfolioImporter\importXmlRepresentation
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
Definition:
class.ilPortfolioImporter.php:31
$parser
$parser
Definition:
BPMN2Parser.php:23
ilPortfolioImporter\$ds
$ds
Definition:
class.ilPortfolioImporter.php:14
ilXmlImporter
Xml importer class.
Definition:
class.ilXmlImporter.php:11
Modules
Portfolio
classes
class.ilPortfolioImporter.php
Generated on Thu Apr 3 2025 20:00:53 for ILIAS by
1.8.13 (using
Doxyfile
)