3 require_once(
'./Services/Export/classes/class.ilXmlImporter.php');
35 if ($type ==
'reference_id') {
41 } elseif ($type ==
'external_id') {
50 if (!count($ref_ids)) {
69 return count($this->errors) != 0;
77 return count($this->warnings) != 0;
86 public function addWarning($lang_var, $import_id, $action = NULL) {
87 $this->warnings[] =
array(
'lang_var' => $lang_var,
'import_id' => $import_id,
'action' => $action );
96 public function addError($lang_var, $import_id, $action = NULL) {
97 $this->errors[] =
array(
'lang_var' => $lang_var,
'import_id' => $import_id,
'action' => $action );
136 $container_mappings = $a_mapping->getMappingsOfEntity(
"Services/Container",
"objs");
137 foreach($container_mappings as
$old =>
$new) {
139 $a_mapping->addMapping(
"Modules/OrgUnit",
"orgu",
$old,
$new);
static _hasUntrashedReference($a_obj_id)
checks wether an object has at least one reference that is not in trash
static _exists($a_id, $a_reference=false, $type="orgu")
static _isInTrash($a_ref_id)
checks wether object is in trash
static _getAllReferences($a_id)
get all reference ids of object
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Create styles array
The data for the language used.
addError($lang_var, $import_id, $action=NULL)
addWarning($lang_var, $import_id, $action=NULL)
static _lookupType($a_id, $a_reference=false)
static _lookupObjIdByImportId($a_import_id)