4 include_once(
"./Services/Export/classes/class.ilXmlImporter.php");
24 include_once(
"./Services/Style/classes/class.ilStyleDataSet.php");
26 $this->ds->setDSPrefix(
"ds");
29 $this->log->debug(
"initialized");
34 $this->log->debug(
"import xml " . $a_entity);
37 include_once(
"./Services/DataSet/classes/class.ilDataSetImportParser.php");
49 if (preg_match(
"/<StyleSheetExport><ImagePath>(.+)<\/ImagePath>/", $a_xml, $hits)) {
51 $a_xml = str_replace($hits[0],
"", $a_xml);
52 $a_xml = str_replace(
"</StyleSheetExport>",
"", $a_xml);
57 file_put_contents($tmp_file, $a_xml);
59 include_once
"./Services/Style/Content/classes/class.ilObjStyleSheet.php";
61 $style->createFromXMLFile($tmp_file);
78 $a_mapping->addMapping(
"Services/Style",
"sty", $a_id, $new_id);
static makeDirParents($a_dir)
Create a new directory and all parent directories.
getSchemaVersion()
Get schema version.
static rCopy($a_sdir, $a_tdir, $preserveTimeAttributes=false)
Copies content of a directory $a_sdir recursively to a directory $a_tdir.
getImportDirectory()
Get import directory.
Manifest parser for ILIAS standard export files.
Importer class for style.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
static getLogger($a_component_id)
Get component logger.