ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
11 abstract 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 
108  function getSchemaVersion()
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 
148  function getSkipEntities()
149  {
150  return $this->skip_entities;
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 ?>
getSchemaVersion()
Get schema version.
setImport($a_val)
Set import.
getImportDirectory()
Get import directory.
setImportDirectory($a_val)
Set import directory.
getInstallUrl()
Get installation url.
getImport()
Get import.
exportedFromSameInstallation()
Is exporting and importing installation identical?
setInstallUrl($a_val)
Set installation url.
setSchemaVersion($a_val)
Set schema version.
finalProcessing($a_mapping)
Final processing.
__construct()
Constructor.
Create styles array
The data for the language used.
setSkipEntities($a_val)
Set skip entities.
afterContainerImportProcessing(ilImportMapping $mapping)
Called after all container objects have been implemented.
getInstallId()
Get installation id.
setInstallId($a_val)
Set installation id.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import xml representation.
Xml importer class.
getSkipEntities()
Get skip entities.