ILIAS
release_4-3 Revision
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
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
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
function
importXmlRepresentation
($a_entity, $a_id, $a_xml, $a_mapping)
34
{
35
include_once(
"./Services/DataSet/classes/class.ilDataSetImportParser.php"
);
36
$parser =
new
ilDataSetImportParser
($a_entity, $this->
getSchemaVersion
(),
37
$a_xml, $this->ds, $a_mapping);
38
}
39
45
function
finalProcessing
($a_mapping)
46
{
47
$wpg_map = $a_mapping->getMappingsOfEntity(
"Modules/Wiki"
,
"wpg"
);
48
49
include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php"
);
50
include_once(
"./Services/COPage/classes/class.ilPageObject.php"
);
51
foreach
($wpg_map as $wpg_id)
52
{
53
$wiki_id =
ilWikiPage::lookupWikiId
($wpg_id);
54
ilPageObject::_writeParentId
(
"wpg"
, $wpg_id, $wiki_id);
55
}
56
}
57
58
}
59
60
?>
Modules
Wiki
classes
class.ilWikiImporter.php
Generated on Sat Apr 30 2016 19:00:49 for ILIAS by
1.8.1.2 (using
Doxyfile
)