ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilXmlImporter Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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()

ilXmlImporter::__construct ( )

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

35  {
36  }

Member Function Documentation

◆ afterContainerImportProcessing()

ilXmlImporter::afterContainerImportProcessing ( ilImportMapping  $mapping)

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.

References getInstallId(), IL_INST_ID, and importXmlRepresentation().

Referenced by ilGlossaryImporter\finalProcessing().

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
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ finalProcessing()

ilXmlImporter::finalProcessing ( ilImportMapping  $a_mapping)

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

Referenced by ilCOPageImporter\importXmlRepresentation().

118  : void
119  {
120  }
+ Here is the caller graph for this function:

◆ getImport()

ilXmlImporter::getImport ( )

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

References $imp.

Referenced by ilSurveyImporter\getSurvey(), ilGlossaryImporter\init(), ilMediaPoolImporter\init(), ilBlogImporter\init(), ilMediaObjectsImporter\init(), ilSkillImporter\init(), and ilLearningModuleImporter\init().

43  : ilImport
44  {
45  return $this->imp;
46  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

◆ getImportDirectory()

ilXmlImporter::getImportDirectory ( )

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

References $import_directory.

Referenced by ilTestQuestionPoolImporter\getImportDirectoryContainer(), ilCmiXapiImporter\getImportDirectoryContainer(), ilTestImporter\getImportDirectoryContainer(), ilCmiXapiImporter\getImportDirectorySingle(), ilTestQuestionPoolImporter\getImportPackageName(), ilTestImporter\getImportPackageName(), ilSurveyQuestionPoolImporter\getXmlFileName(), ilFileImporter\importXmlRepresentation(), ilPortfolioImporter\importXmlRepresentation(), ilGlossaryImporter\importXmlRepresentation(), ilPollImporter\importXmlRepresentation(), ilTestQuestionPoolImporter\importXmlRepresentation(), ilBlogImporter\importXmlRepresentation(), ilTestImporter\importXmlRepresentation(), ilLearningModuleImporter\importXmlRepresentation(), ilScormAiccImporter\importXmlRepresentation(), ilDataCollectionImporter\init(), ilUserImporter\init(), ilHTMLLearningModuleImporter\init(), ilIndividualAssessmentImporter\init(), ilExerciseImporter\init(), ilBibliographicImporter\init(), ilMediaObjectsImporter\init(), ilForumImporter\init(), ilContentPageImporter\init(), ilStyleImporter\init(), ilObjectImporter\init(), ilSurveyImporter\parseXmlFileNames(), ilTestQuestionPoolImporter\parseXmlFileNames(), and ilTestImporter\parseXmlFileNames().

87  : string
88  {
90  }
+ Here is the caller graph for this function:

◆ getInstallId()

◆ getInstallUrl()

ilXmlImporter::getInstallUrl ( )

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

References $install_url.

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

◆ getSchemaVersion()

ilXmlImporter::getSchemaVersion ( )

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

References $schema_version.

Referenced by ilSurveyImporter\getSurvey(), ilCalendarImporter\importXmlRepresentation(), ilMediaCastImporter\importXmlRepresentation(), ilNewsImporter\importXmlRepresentation(), ilItemGroupImporter\importXmlRepresentation(), ilWikiImporter\importXmlRepresentation(), ilHTMLLearningModuleImporter\importXmlRepresentation(), ilNotesImporter\importXmlRepresentation(), ilPortfolioImporter\importXmlRepresentation(), ilUserImporter\importXmlRepresentation(), ilExerciseImporter\importXmlRepresentation(), ilGlossaryImporter\importXmlRepresentation(), ilTaxonomyImporter\importXmlRepresentation(), ilIndividualAssessmentImporter\importXmlRepresentation(), ilPollImporter\importXmlRepresentation(), ilDataCollectionImporter\importXmlRepresentation(), ilSessionImporter\importXmlRepresentation(), ilBibliographicImporter\importXmlRepresentation(), ilMediaObjectsImporter\importXmlRepresentation(), ilRatingImporter\importXmlRepresentation(), ilSkillImporter\importXmlRepresentation(), ilObjectImporter\importXmlRepresentation(), ilStyleImporter\importXmlRepresentation(), ilBlogImporter\importXmlRepresentation(), ilHelpImporter\importXmlRepresentation(), ilContentPageImporter\importXmlRepresentation(), ilMediaPoolImporter\importXmlRepresentation(), ilCOPageImporter\importXmlRepresentation(), ilLearningModuleImporter\importXmlRepresentation(), and ilForumImporter\init().

77  : string
78  {
79  return $this->schema_version;
80  }
+ Here is the caller graph for this function:

◆ getSkipEntities()

ilXmlImporter::getSkipEntities ( )

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

References $skip_entities.

97  : array
98  {
99  return $this->skip_entities;
100  }

◆ importXmlRepresentation()

ilXmlImporter::importXmlRepresentation ( string  $a_entity,
string  $a_id,
string  $a_xml,
ilImportMapping  $a_mapping 
)
abstract

◆ init()

ilXmlImporter::init ( )

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

48  : void
49  {
50  }

◆ 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.

Referenced by ilImport\doImportObject().

82  : void
83  {
84  $this->import_directory = $a_val;
85  }
+ Here is the caller graph for this function:

◆ 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: