36        if (
$type == 
'reference_id') {
 
   42        } elseif (
$type == 
'external_id') {
 
   55            if (!count($ref_ids)) {
 
   59            foreach ($ref_ids as $ref_id) {
 
   83        $query = 
"SELECT * FROM object_data " .
 
   84            "INNER JOIN object_reference as ref on ref.obj_id = object_data.obj_id and ref.deleted is null ".
 
   85            'WHERE object_data.type = "orgu" and import_id = ' . 
$ilDB->quote($external_id, 
"text") . 
" " .
 
   86            "ORDER BY create_date DESC";
 
  103        return count($this->errors) != 0;
 
  112        return count($this->warnings) != 0;
 
  121    public function addWarning($lang_var, $import_id, $action = 
null)
 
  123        $this->warnings[] = array(
'lang_var' => $lang_var, 
'import_id' => $import_id, 
'action' => $action);
 
  132    public function addError($lang_var, $import_id, $action = 
null)
 
  134        $this->errors[] = array(
'lang_var' => $lang_var, 
'import_id' => $import_id, 
'action' => $action);
 
  177        $container_mappings = $a_mapping->getMappingsOfEntity(
"Services/Container", 
"objs");
 
  178        foreach ($container_mappings as $old => $new) {
 
  180                $a_mapping->addMapping(
'Modules/OrgUnit', 
'orgu', $old, $new);
 
An exception for terminatinating execution or to throw for unit testing.
static _exists($a_id, $a_reference=false, $type="orgu")
static _lookupType($a_id, $a_reference=false)
lookup object type
static _getAllReferences($a_id)
get all reference ids of object
static _hasUntrashedReference($a_obj_id)
checks wether an object has at least one reference that is not in trash
static _lookupObjIdByImportId($a_import_id)
static _isInTrash($a_ref_id)
checks wether object is in trash
static _lookupType($a_id, $a_reference=false)
lookup object type
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
hasMoreThanOneMatch($external_id)
addError($lang_var, $import_id, $action=null)
addWarning($lang_var, $import_id, $action=null)
foreach($_POST as $key=> $value) $res