ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5
ilHelpImporter Class Reference

Importer class for help. More...

+ Inheritance diagram for ilHelpImporter:
+ Collaboration diagram for ilHelpImporter:

Public Member Functions

 init ()
 Initialisation. More...
 
 importXmlRepresentation ($a_entity, $a_id, $a_xml, $a_mapping)
 Import XML. More...
 
- Public Member Functions inherited from ilXmlImporter
 __construct ()
 Constructor. More...
 
 setImport ($a_val)
 Set import. More...
 
 getImport ()
 Get import. More...
 
 init ()
 Init. More...
 
 setInstallId ($a_val)
 Set installation id. More...
 
 getInstallId ()
 Get installation id. More...
 
 setInstallUrl ($a_val)
 Set installation url. More...
 
 getInstallUrl ()
 Get installation url. More...
 
 setSchemaVersion ($a_val)
 Set schema version. More...
 
 getSchemaVersion ()
 Get schema version. More...
 
 setImportDirectory ($a_val)
 Set import directory. More...
 
 getImportDirectory ()
 Get import directory. More...
 
 setSkipEntities ($a_val)
 Set skip entities. More...
 
 getSkipEntities ()
 Get skip entities. More...
 
 exportedFromSameInstallation ()
 Is exporting and importing installation identical? More...
 
 importXmlRepresentation ($a_entity, $a_id, $a_xml, $a_mapping)
 Import xml representation. More...
 
 finalProcessing ($a_mapping)
 Final processing. More...
 
 afterContainerImportProcessing (ilImportMapping $mapping)
 Called after all container objects have been implemented. More...
 

Protected Attributes

 $config = null
 ilHelpImporterConfig More...
 
- Protected Attributes inherited from ilXmlImporter
 $skip_entities = array()
 
 $imp
 

Detailed Description

Importer class for help.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
Id

Definition at line 13 of file class.ilHelpImporter.php.

Member Function Documentation

◆ importXmlRepresentation()

ilHelpImporter::importXmlRepresentation (   $a_entity,
  $a_id,
  $a_xml,
  $a_mapping 
)

Import XML.

Parameters

Definition at line 54 of file class.ilHelpImporter.php.

References ilXmlImporter\getSchemaVersion().

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  }
getSchemaVersion()
Get schema version.
Manifest parser for ILIAS standard export files.
+ Here is the call graph for this function:

◆ init()

ilHelpImporter::init ( )

Initialisation.

Definition at line 23 of file class.ilHelpImporter.php.

References ilXmlImporter\getImport().

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  }
Help system data set class.
getImport()
Get import.
+ Here is the call graph for this function:

Field Documentation

◆ $config

ilHelpImporter::$config = null
protected

ilHelpImporterConfig

Definition at line 18 of file class.ilHelpImporter.php.


The documentation for this class was generated from the following file: