ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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  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  {
149  return $this->skip_entities;
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 }
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.