3 declare(strict_types=1);
    43         $this->mode = self::MODE_CREATE;
    46         $this->
logger = $DIC->logger()->exp();
    51         $this->import_mapping = $mapping;
    61         xml_set_object($a_xml_parser, $this);
    62         xml_set_element_handler($a_xml_parser, 
'handlerBeginTag', 
'handlerEndTag');
    63         xml_set_character_data_handler($a_xml_parser, 
'handlerCharacterData');
    79             case "ContainerReference":
    83                 switch ($a_attribs[
'type']) {
    94                     $this->
logger->debug(
'Using mapped target_id: ' . $target_id);
    97                     $this->
logger->info(
'No mapping found for: ' . $a_attribs[
'id']);
   106         if ($attribute_target === 
'') {
   107             $this->
logger->debug(
'No target id provided');
   113         $obj_mapping_id = $this->import_mapping->getMapping(
'components/ILIAS/Container', 
'objs', $attribute_target);
   114         if (!$obj_mapping_id) {
   115             $this->
logger->debug(
'Cannot find object mapping for target_id: ' . $attribute_target);
   119         return (
int) $obj_mapping_id;
   133             case "ContainerReference":
   155         if (!empty($a_data)) {
   156             $this->cdata .= $a_data;
   164     protected function save(): void
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setHandlers($a_xml_parser)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setReference(ilContainerReference $ref)
 
parseTargetId(string $attribute_target)
 
handlerBeginTag( $a_xml_parser, string $a_name, array $a_attribs)
 
ilContainerReference $ref
 
ilImportMapping $import_mapping
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
__construct(string $a_xml, int $a_parent_id=0)
 
handlerEndTag( $a_xml_parser, string $a_name)
 
__construct(Container $dic, ilPlugin $plugin)
 
trimAndStripAttribs(array $attribs)
 
handlerCharacterData( $a_xml_parser, string $a_data)
 
setImportMapping(ilImportMapping $mapping)
 
setXMLContent(string $a_xml_content)
 
trimAndStrip(string $input)