ILIAS  release_7 Revision v7.30-3-g800a261c036
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 public function __construct()
23 {
24 }
25
31 public function setImport($a_val)
32 {
33 $this->imp = $a_val;
34 }
35
41 public function getImport()
42 {
43 return $this->imp;
44 }
48 public function init()
49 {
50 }
51
57 public function setInstallId($a_val)
58 {
59 $this->install_id = $a_val;
60 }
61
67 public function getInstallId()
68 {
69 return $this->install_id;
70 }
71
77 public function setInstallUrl($a_val)
78 {
79 $this->install_url = $a_val;
80 }
81
87 public function getInstallUrl()
88 {
89 return $this->install_url;
90 }
91
97 public function setSchemaVersion($a_val)
98 {
99 $this->schema_version = $a_val;
100 }
101
107 public function getSchemaVersion()
108 {
109 return $this->schema_version;
110 }
111
117 public function setImportDirectory($a_val)
118 {
119 $this->import_directory = $a_val;
120 }
121
127 public function getImportDirectory()
128 {
129 return $this->import_directory;
130 }
131
137 public function setSkipEntities($a_val)
138 {
139 $this->skip_entities = $a_val;
140 }
141
147 public function getSkipEntities()
148 {
150 }
151
159 {
160 if ($this->getInstallId() > 0 && ($this->getInstallId() == IL_INST_ID)) {
161 return true;
162 }
163 return false;
164 }
165
166
175 abstract public function importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping);
176
182 public function finalProcessing($a_mapping)
183 {
184 }
185
186 // begin-patch optes_lok_export
192 {
193 }
194 // end-patch optes_lok_export
195}
An exception for terminatinating execution or to throw for unit testing.
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.
const IL_INST_ID
Definition: constants.php:38