ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
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
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
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
k
l
m
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
/* 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:88
ilPageObject\_writeParentId
_writeParentId($a_parent_type, $a_pg_id, $a_par_id)
Write parent id.
Definition:
class.ilPageObject.php:706
ilPortfolioImporter\init
init()
Initialisation.
Definition:
class.ilPortfolioImporter.php:22
ilXmlImporter\getImportDirectory
getImportDirectory()
Get import directory.
Definition:
class.ilXmlImporter.php:108
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
ilPortfolioImporter\importXmlRepresentation
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
Definition:
class.ilPortfolioImporter.php:35
ilPortfolioImporter\$ds
$ds
Definition:
class.ilPortfolioImporter.php:17
ilXmlImporter
Xml importer class.
Definition:
class.ilXmlImporter.php:11
Modules
Portfolio
classes
class.ilPortfolioImporter.php
Generated on Mon Mar 31 2025 19:00:37 for ILIAS by
1.8.13 (using
Doxyfile
)