ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
class.ilWikiImporter.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
13
class
ilWikiImporter
extends
ilXmlImporter
14
{
15
19
public
function
init
()
20
{
21
include_once(
"./Modules/Wiki/classes/class.ilWikiDataSet.php"
);
22
$this->ds =
new
ilWikiDataSet
();
23
$this->ds->setDSPrefix(
"ds"
);
24
}
25
26
33
public
function
importXmlRepresentation
($a_entity, $a_id, $a_xml, $a_mapping)
34
{
35
include_once(
"./Services/DataSet/classes/class.ilDataSetImportParser.php"
);
36
$parser
=
new
ilDataSetImportParser
(
37
$a_entity,
38
$this->
getSchemaVersion
(),
39
$a_xml,
40
$this->ds,
41
$a_mapping
42
);
43
}
44
50
public
function
finalProcessing
($a_mapping)
51
{
52
$wpg_map = $a_mapping->getMappingsOfEntity(
"Modules/Wiki"
,
"wpg"
);
53
54
include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php"
);
55
foreach
($wpg_map as $wpg_id) {
56
$wiki_id =
ilWikiPage::lookupWikiId
($wpg_id);
57
ilWikiPage::_writeParentId
(
"wpg"
, $wpg_id, $wiki_id);
58
}
59
}
60
}
ilXmlImporter\getSchemaVersion
getSchemaVersion()
Get schema version.
Definition:
class.ilXmlImporter.php:107
ilWikiImporter\finalProcessing
finalProcessing($a_mapping)
Final processing.
Definition:
class.ilWikiImporter.php:50
ilWikiImporter\importXmlRepresentation
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
Definition:
class.ilWikiImporter.php:33
ilDataSetImportParser
Manifest parser for ILIAS standard export files.
Definition:
class.ilDataSetImportParser.php:13
ilWikiImporter
Importer class for wikis.
Definition:
class.ilWikiImporter.php:13
ilWikiPage\lookupWikiId
static lookupWikiId($a_page_id)
Lookup wiki id.
Definition:
class.ilWikiPage.php:485
ilWikiImporter\init
init()
Initialisation.
Definition:
class.ilWikiImporter.php:19
ilPageObject\_writeParentId
static _writeParentId($a_parent_type, $a_pg_id, $a_par_id)
Write parent id.
Definition:
class.ilPageObject.php:756
ilWikiDataSet
Wiki Data set class.
Definition:
class.ilWikiDataSet.php:17
$parser
$parser
Definition:
BPMN2Parser.php:23
ilXmlImporter
Xml importer class.
Definition:
class.ilXmlImporter.php:11
Modules
Wiki
classes
class.ilWikiImporter.php
Generated on Sat Jan 18 2025 19:01:25 for ILIAS by
1.8.13 (using
Doxyfile
)