ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 53 of file class.ilHelpImporter.php.

References $parser, and ilXmlImporter\getSchemaVersion().

54  {
55  include_once("./Services/DataSet/classes/class.ilDataSetImportParser.php");
57  $a_entity,
58  $this->getSchemaVersion(),
59  $a_xml,
60  $this->ds,
61  $a_mapping
62  );
63  }
getSchemaVersion()
Get schema version.
Manifest parser for ILIAS standard export files.
$parser
Definition: BPMN2Parser.php:23
+ 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  include_once("./Services/Export/classes/class.ilImport.php");
33  $this->getImport()->getMapping()->addMapping('Services/Help', 'help_module', 0, $module_id);
34  /* not needed anymore, we now get mapping from learning module
35  include_once("./Modules/LearningModule/classes/class.ilLMObject.php");
36  $chaps = ilLMObject::getObjectList($this->getId(), "st");
37  foreach ($chaps as $chap)
38  {
39  $chap_arr = explode("_", $chap["import_id"]);
40  $imp->getMapping()->addMapping('Services/Help', 'help_chap',
41  $chap_arr[count($chap_arr) - 1], $chap["obj_id"]);
42  }*/
43  }
44  }
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: