3declare(strict_types=1);
 
   30    public function init(): void
 
   34    protected function initReference(
int $a_ref_id = 0): void
 
   44    abstract protected function getType(): string;
 
   61        $objDefinition = 
$DIC[
"objDefinition"];
 
   64        if ($new_id = $a_mapping->
getMapping(
'Services/Container', 
'objs', $a_id)) {
 
   66            $this->initReference(end($refs));
 
   69        elseif ($new_id = $a_mapping->
getMapping(
'Services/Container', 
'refs', 
'0')) {
 
   70            $this->initReference((
int) $new_id);
 
   72            $this->initReference();
 
   79            $parser->setImportMapping($a_mapping);
 
   82            $parser->startParsing();
 
   85                $objDefinition->getComponentForType($this->getType()),
 
   88                (
string) $this->getReference()->getId()
 
   91            $log->error(__METHOD__ . 
': Parsing failed with message, "' . 
$e->getMessage() . 
'".');
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
initParser(string $a_xml)
 
getType()
Get reference type.
 
ilContainerReference $ref
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
addMapping(string $a_comp, string $a_entity, string $a_old_id, string $a_new_id)
 
getMapping(string $a_comp, string $a_entity, string $a_old_id)
 
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
 
static _getAllReferences(int $id)
get all reference ids for object ID
 
SaxParserException thrown by ilSaxParser if property throwException is set.
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
importXmlRepresentation(string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)