36 if (
$type ==
'reference_id') {
42 } elseif (
$type ==
'external_id') {
51 if (!count($ref_ids)) {
55 foreach ($ref_ids as $ref_id) {
72 return count($this->errors) != 0;
81 return count($this->warnings) != 0;
92 $this->warnings[] =
array(
'lang_var' => $lang_var,
'import_id' => $import_id,
'action' =>
$action );
103 $this->errors[] =
array(
'lang_var' => $lang_var,
'import_id' => $import_id,
'action' =>
$action );
146 $container_mappings = $a_mapping->getMappingsOfEntity(
"Services/Container",
"objs");
147 foreach ($container_mappings as
$old =>
$new) {
149 if (ilObject2::_lookupType(
$new) ==
"orgu") {
150 $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
if(!array_key_exists('StateId', $_REQUEST)) $id
static _exists($a_id, $a_reference=false, $type="orgu")
static _isInTrash($a_ref_id)
checks wether object is in trash
addWarning($lang_var, $import_id, $action=null)
addError($lang_var, $import_id, $action=null)
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.
static _lookupType($a_id, $a_reference=false)
static _lookupObjIdByImportId($a_import_id)