ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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()

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 ( )

◆ getImportDirectory()

◆ 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 ilMediaCastImporter\importXmlRepresentation(), ilNewsImporter\importXmlRepresentation(), ilHTMLLearningModuleImporter\importXmlRepresentation(), ilNotesImporter\importXmlRepresentation(), ilPortfolioImporter\importXmlRepresentation(), ilItemGroupImporter\importXmlRepresentation(), ilUserImporter\importXmlRepresentation(), ilWikiImporter\importXmlRepresentation(), ilExerciseImporter\importXmlRepresentation(), ilGlossaryImporter\importXmlRepresentation(), ilTaxonomyImporter\importXmlRepresentation(), ilPollImporter\importXmlRepresentation(), ilSessionImporter\importXmlRepresentation(), ilIndividualAssessmentImporter\importXmlRepresentation(), ilDataCollectionImporter\importXmlRepresentation(), ilBibliographicImporter\importXmlRepresentation(), ilMediaObjectsImporter\importXmlRepresentation(), ilRatingImporter\importXmlRepresentation(), ilCalendarImporter\importXmlRepresentation(), ilILIASObjectImporter\importXmlRepresentation(), ilMetaDataImporter\importXmlRepresentation(), ilHelpImporter\importXmlRepresentation(), ilStyleImporter\importXmlRepresentation(), ilSkillImporter\importXmlRepresentation(), ilBlogImporter\importXmlRepresentation(), ilContentPageImporter\importXmlRepresentation(), ilMediaPoolImporter\importXmlRepresentation(), ilCOPageImporter\importXmlRepresentation(), ilLearningModuleImporter\importXmlRepresentation(), ilSurveyImporter\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

Referenced by exportedFromSameInstallation(), ilContainerReferenceImporter\getReference(), and ilForumImporter\init().

+ Here is the caller graph for this function:

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