ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilHelpImporter.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 
14 {
18  protected $config = null;
19 
23  function init()
24  {
25  include_once("./Services/Help/classes/class.ilHelpDataSet.php");
26  $this->ds = new ilHelpDataSet();
27  $this->ds->setDSPrefix("ds");
28 
29  $this->config = $this->getImport()->getConfig("Services/Help");
30  $module_id = $this->config->getModuleId();
31  if ($module_id > 0)
32  {
33  include_once("./Services/Export/classes/class.ilImport.php");
34  $this->getImport()->getMapping()->addMapping('Services/Help', 'help_module', 0, $module_id);
35  /* not needed anymore, we now get mapping from learning module
36  include_once("./Modules/LearningModule/classes/class.ilLMObject.php");
37  $chaps = ilLMObject::getObjectList($this->getId(), "st");
38  foreach ($chaps as $chap)
39  {
40  $chap_arr = explode("_", $chap["import_id"]);
41  $imp->getMapping()->addMapping('Services/Help', 'help_chap',
42  $chap_arr[count($chap_arr) - 1], $chap["obj_id"]);
43  }*/
44  }
45  }
46 
47 
54  function importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
55  {
56  include_once("./Services/DataSet/classes/class.ilDataSetImportParser.php");
57  $parser = new ilDataSetImportParser($a_entity, $this->getSchemaVersion(),
58  $a_xml, $this->ds, $a_mapping);
59  }
60 }
61 
62 ?>
getSchemaVersion()
Get schema version.
init()
Initialisation.
Help system data set class.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
$config
ilHelpImporterConfig
Manifest parser for ILIAS standard export files.
getImport()
Get import.
Importer class for help.
$parser
Definition: BPMN2Parser.php:24
Xml importer class.