ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilBlogImporter.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
ilBlogImporter
extends
ilXmlImporter
14
{
15
protected
$ds
;
16
20
function
init
()
21
{
22
include_once(
"./Modules/Blog/classes/class.ilBlogDataSet.php"
);
23
$this->ds =
new
ilBlogDataSet
();
24
$this->ds->setDSPrefix(
"ds"
);
25
}
26
33
function
importXmlRepresentation
($a_entity, $a_id, $a_xml, $a_mapping)
34
{
35
$this->ds->setImportDirectory($this->
getImportDirectory
());
36
include_once(
"./Services/DataSet/classes/class.ilDataSetImportParser.php"
);
37
$parser
=
new
ilDataSetImportParser
($a_entity, $this->
getSchemaVersion
(),
38
$a_xml, $this->ds, $a_mapping);
39
}
40
46
function
finalProcessing
($a_mapping)
47
{
48
include_once(
"./Modules/Blog/classes/class.ilBlogPosting.php"
);
49
$blp_map = $a_mapping->getMappingsOfEntity(
"Services/COPage"
,
"pg"
);
50
foreach
($blp_map as $blp_id)
51
{
52
$blp_id = substr($blp_id, 4);
53
$blog_id =
ilBlogPosting::lookupBlogId
($blp_id);
54
ilBlogPosting::_writeParentId
(
"blp"
, $blp_id, $blog_id);
55
}
56
57
include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php"
);
58
$sty_map = $a_mapping->getMappingsOfEntity(
"Services/Style"
,
"sty"
);
59
foreach
($sty_map as $old_sty_id => $new_sty_id)
60
{
61
if
(is_array(
ilBlogDataSet::$style_map
[$old_sty_id]))
62
{
63
foreach
(
ilBlogDataSet::$style_map
[$old_sty_id] as $blog_id)
64
{
65
ilObjStyleSheet::writeStyleUsage
($blog_id, $new_sty_id);
66
}
67
}
68
}
69
}
70
}
71
72
?>
ilBlogImporter\importXmlRepresentation
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
Definition:
class.ilBlogImporter.php:33
ilXmlImporter\getSchemaVersion
getSchemaVersion()
Get schema version.
Definition:
class.ilXmlImporter.php:108
ilBlogImporter\finalProcessing
finalProcessing($a_mapping)
Final processing.
Definition:
class.ilBlogImporter.php:46
ilBlogPosting\lookupBlogId
static lookupBlogId($a_posting_id)
Lookup blog id.
Definition:
class.ilBlogPosting.php:314
ilXmlImporter\getImportDirectory
getImportDirectory()
Get import directory.
Definition:
class.ilXmlImporter.php:128
ilBlogDataSet
Blog Data set class.
Definition:
class.ilBlogDataSet.php:17
ilDataSetImportParser
Manifest parser for ILIAS standard export files.
Definition:
class.ilDataSetImportParser.php:13
ilObjStyleSheet\writeStyleUsage
static writeStyleUsage($a_obj_id, $a_style_id)
Write style usage.
Definition:
class.ilObjStyleSheet.php:3760
ilPageObject\_writeParentId
static _writeParentId($a_parent_type, $a_pg_id, $a_par_id)
Write parent id.
Definition:
class.ilPageObject.php:721
ilBlogImporter
Importer class for blog.
Definition:
class.ilBlogImporter.php:13
ilBlogDataSet\$style_map
static $style_map
Definition:
class.ilBlogDataSet.php:21
$parser
$parser
Definition:
BPMN2Parser.php:24
ilBlogImporter\$ds
$ds
Definition:
class.ilBlogImporter.php:15
php
ilBlogImporter\init
init()
Initialisation.
Definition:
class.ilBlogImporter.php:20
ilXmlImporter
Xml importer class.
Definition:
class.ilXmlImporter.php:11
Modules
Blog
classes
class.ilBlogImporter.php
Generated on Fri Jan 17 2025 19:00:56 for ILIAS by
1.8.13 (using
Doxyfile
)