ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilXmlImporter.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3
11abstract class ilXmlImporter
12{
13 protected $skip_entities = array();
14 protected $imp; // import object
15
22 function __construct()
23 {
24
25 }
26
32 function setImport($a_val)
33 {
34 $this->imp = $a_val;
35 }
36
42 function getImport()
43 {
44 return $this->imp;
45 }
49 function init()
50 {
51 }
52
58 function setInstallId($a_val)
59 {
60 $this->install_id = $a_val;
61 }
62
68 function getInstallId()
69 {
70 return $this->install_id;
71 }
72
78 function setInstallUrl($a_val)
79 {
80 $this->install_url = $a_val;
81 }
82
88 function getInstallUrl()
89 {
90 return $this->install_url;
91 }
92
98 function setSchemaVersion($a_val)
99 {
100 $this->schema_version = $a_val;
101 }
102
109 {
110 return $this->schema_version;
111 }
112
118 function setImportDirectory($a_val)
119 {
120 $this->import_directory = $a_val;
121 }
122
129 {
130 return $this->import_directory;
131 }
132
138 function setSkipEntities($a_val)
139 {
140 $this->skip_entities = $a_val;
141 }
142
149 {
151 }
152
160 {
161 if ($this->getInstallId() > 0 && ($this->getInstallId() == IL_INST_ID))
162 {
163 return true;
164 }
165 return false;
166 }
167
168
177 abstract public function importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping);
178
184 function finalProcessing($a_mapping)
185 {
186
187 }
188
189 // begin-patch optes_lok_export
195 {
196
197 }
198 // end-patch optes_lok_export
199}
200?>
Xml importer class.
setImport($a_val)
Set import.
getSchemaVersion()
Get schema version.
setSchemaVersion($a_val)
Set schema version.
getInstallUrl()
Get installation url.
setInstallId($a_val)
Set installation id.
__construct()
Constructor.
getImport()
Get import.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import xml representation.
getInstallId()
Get installation id.
getImportDirectory()
Get import directory.
afterContainerImportProcessing(ilImportMapping $mapping)
Called after all container objects have been implemented.
setSkipEntities($a_val)
Set skip entities.
setImportDirectory($a_val)
Set import directory.
exportedFromSameInstallation()
Is exporting and importing installation identical?
getSkipEntities()
Get skip entities.
finalProcessing($a_mapping)
Final processing.
setInstallUrl($a_val)
Set installation url.