ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilXmlImporter Class Reference

Xml importer class. More...

+ Inheritance diagram for ilXmlImporter:
+ Collaboration diagram for ilXmlImporter:

Public Member Functions

 __construct ()
 
 setImport (ilImport $a_val)
 
 getImport ()
 
 init ()
 
 setInstallId (string $a_val)
 
 getInstallId ()
 
 setInstallUrl (string $a_val)
 
 getInstallUrl ()
 
 setSchemaVersion (string $a_val)
 
 getSchemaVersion ()
 
 setImportDirectory (string $a_val)
 
 getImportDirectory ()
 
 setSkipEntities (array $a_val)
 
 getSkipEntities ()
 
 exportedFromSameInstallation ()
 
 importXmlRepresentation (string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
 
 finalProcessing (ilImportMapping $a_mapping)
 
 afterContainerImportProcessing (ilImportMapping $mapping)
 

Protected Attributes

array $skip_entities = array()
 
ilImport $imp
 
string $install_id
 
string $install_url
 
string $schema_version
 
string $import_directory
 

Detailed Description

Xml importer class.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 25 of file class.ilXmlImporter.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ afterContainerImportProcessing()

ilXmlImporter::afterContainerImportProcessing ( ilImportMapping  $mapping)

Reimplemented in ilCOPageImporter, and ilLearningSequenceImporter.

Definition at line 123 of file class.ilXmlImporter.php.

123 : void
124 {
125 }

◆ exportedFromSameInstallation()

ilXmlImporter::exportedFromSameInstallation ( )

Definition at line 103 of file class.ilXmlImporter.php.

103 : bool
104 {
105 if ($this->getInstallId() > 0 && ($this->getInstallId() == IL_INST_ID)) {
106 return true;
107 }
108 return false;
109 }
const IL_INST_ID
Definition: constants.php:40

References getInstallId(), and IL_INST_ID.

+ Here is the call graph for this function:

◆ finalProcessing()

◆ getImport()

ilXmlImporter::getImport ( )

◆ getImportDirectory()

◆ getInstallId()

ilXmlImporter::getInstallId ( )

Definition at line 57 of file class.ilXmlImporter.php.

57 : string
58 {
59 return $this->install_id;
60 }

References $install_id.

Referenced by exportedFromSameInstallation(), and ilChatroomImporter\importXmlRepresentation().

+ Here is the caller graph for this function:

◆ getInstallUrl()

ilXmlImporter::getInstallUrl ( )

Definition at line 67 of file class.ilXmlImporter.php.

67 : string
68 {
69 return $this->install_url;
70 }

References $install_url.

◆ getSchemaVersion()

◆ getSkipEntities()

ilXmlImporter::getSkipEntities ( )

Definition at line 97 of file class.ilXmlImporter.php.

97 : array
98 {
100 }

References $skip_entities.

◆ importXmlRepresentation()

◆ init()

◆ setImport()

ilXmlImporter::setImport ( ilImport  $a_val)

Definition at line 38 of file class.ilXmlImporter.php.

38 : void
39 {
40 $this->imp = $a_val;
41 }

◆ setImportDirectory()

ilXmlImporter::setImportDirectory ( string  $a_val)

Definition at line 82 of file class.ilXmlImporter.php.

82 : void
83 {
84 $this->import_directory = $a_val;
85 }

◆ setInstallId()

ilXmlImporter::setInstallId ( string  $a_val)

Definition at line 52 of file class.ilXmlImporter.php.

52 : void
53 {
54 $this->install_id = $a_val;
55 }

◆ setInstallUrl()

ilXmlImporter::setInstallUrl ( string  $a_val)

Definition at line 62 of file class.ilXmlImporter.php.

62 : void
63 {
64 $this->install_url = $a_val;
65 }

◆ setSchemaVersion()

ilXmlImporter::setSchemaVersion ( string  $a_val)

Definition at line 72 of file class.ilXmlImporter.php.

72 : void
73 {
74 $this->schema_version = $a_val;
75 }

◆ setSkipEntities()

ilXmlImporter::setSkipEntities ( array  $a_val)

Definition at line 92 of file class.ilXmlImporter.php.

92 : void
93 {
94 $this->skip_entities = $a_val;
95 }

Field Documentation

◆ $imp

ilImport ilXmlImporter::$imp
protected

Definition at line 28 of file class.ilXmlImporter.php.

Referenced by getImport().

◆ $import_directory

string ilXmlImporter::$import_directory
protected

Definition at line 32 of file class.ilXmlImporter.php.

Referenced by getImportDirectory().

◆ $install_id

string ilXmlImporter::$install_id
protected

Definition at line 29 of file class.ilXmlImporter.php.

Referenced by getInstallId().

◆ $install_url

string ilXmlImporter::$install_url
protected

Definition at line 30 of file class.ilXmlImporter.php.

Referenced by getInstallUrl().

◆ $schema_version

string ilXmlImporter::$schema_version
protected

Definition at line 31 of file class.ilXmlImporter.php.

Referenced by getSchemaVersion().

◆ $skip_entities

array ilXmlImporter::$skip_entities = array()
protected

Definition at line 27 of file class.ilXmlImporter.php.

Referenced by getSkipEntities().


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