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);
38 include_once(
"./Services/DataSet/classes/class.ilDataSetImportParser.php");
40 $a_xml, $this->ds, $a_mapping);
45 if(preg_match(
"/<StyleSheetExport><ImagePath>(.+)<\/ImagePath>/", $a_xml, $hits))
48 $a_xml = str_replace($hits[0],
"", $a_xml);
49 $a_xml = str_replace(
"</StyleSheetExport>",
"", $a_xml);
54 file_put_contents($tmp_file, $a_xml);
56 include_once
"./Services/Style/Content/classes/class.ilObjStyleSheet.php";
58 $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.