38         $this->database = $DIC->database();
    47         if (!is_int(
$id) && !is_string(
$id)) {
    48             throw new \InvalidArgumentException(
"Expected int or string as \$id, got: " . gettype(
$id));
    51         if ($type === 
'reference_id') {
    57         } elseif ($type === 
'external_id') {
    70             if (!count($ref_ids)) {
    88         $query = 
"SELECT * FROM object_data " .
    89             "INNER JOIN object_reference as ref on ref.obj_id = object_data.obj_id and ref.deleted is null " .
    90             'WHERE object_data.type = "orgu" and import_id = ' . $this->database->quote($external_id, 
"text") . 
" " .
    91             "ORDER BY create_date DESC";
    93         $res = $this->database->query($query);
    95         if ($this->database->numRows(
$res) > 1) {
   104         return count($this->errors) != 0;
   109         return count($this->warnings) != 0;
   112     public function addWarning(
string $lang_var, 
string $import_id, ?
string $action = null): void
   114         $this->warnings[] = array(
'lang_var' => $lang_var, 
'import_id' => $import_id, 
'action' => $action);
   117     public function addError(
string $lang_var, 
string $import_id, ?
string $action = null): void
   119         $this->errors[] = array(
'lang_var' => $lang_var, 
'import_id' => $import_id, 
'action' => $action);
   145         foreach ($container_mappings as $old => $new) {
   147                 $a_mapping->
addMapping(
'Modules/OrgUnit', 
'orgu', $old, $new);
 static _lookupObjIdByImportId(string $import_id)
Get (latest) object id for an import id. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _getAllReferences(int $id)
get all reference ids for object ID 
 
static _hasUntrashedReference(int $obj_id)
checks whether an object has at least one reference that is not in trash 
 
static _exists(int $id, bool $isReference=false, ?string $type="orgu")
 
addMapping(string $a_comp, string $a_entity, string $a_old_id, string $a_new_id)
 
hasMoreThanOneMatch(string $external_id)
 
importXmlRepresentation(string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
 
buildRef($id, string $type)
 
getMappingsOfEntity(string $a_comp, string $a_entity)
 
static _isInTrash(int $ref_id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
static _lookupType(int $id, bool $reference=false)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
addError(string $lang_var, string $import_id, ?string $action=null)
 
addWarning(string $lang_var, string $import_id, ?string $action=null)