24require_once(
"./Services/Xml/classes/class.ilSaxParser.php");
 
   25require_once(
'./Services/User/classes/class.ilObjUser.php');
 
   26include_once(
'./Services/Calendar/classes/class.ilDateTime.php');
 
   73        $this->
error = $DIC[
"ilErr"];
 
   79        $this->logger = 
$DIC->logger()->exp();
 
   87        $this->import_mapping = $mapping;
 
  106        xml_set_object($a_xml_parser, $this);
 
  107        xml_set_element_handler($a_xml_parser, 
'handlerBeginTag', 
'handlerEndTag');
 
  108        xml_set_character_data_handler($a_xml_parser, 
'handlerCharacterData');
 
  116        parent::startParsing();
 
  134            case "ContainerReference":
 
  138                switch ($a_attribs[
'type']) {
 
  152                    $this->logger->debug(
'Using mapped target_id: ' . 
$target_id);
 
  155                    $this->logger->info(
'No mapping found for: ' . $a_attribs[
'id']);
 
  168        if (!strlen($attribute_target)) {
 
  169            $this->logger->debug(
'No target id provided');
 
  175        $obj_mapping_id = $this->import_mapping->getMapping(
'Services/Container', 
'objs', $attribute_target);
 
  176        if (!$obj_mapping_id) {
 
  177            $this->logger->debug(
'Cannot find object mapping for target_id: ' . $attribute_target);
 
  180        return $obj_mapping_id;
 
  191        $this->cdata = $this->
trimAndStrip((
string) $this->cdata);
 
  193            case "ContainerReference":
 
  212        #$a_data = str_replace("<","<",$a_data);
 
  213        #$a_data = str_replace(">",">",$a_data);
 
  215        if (!empty($a_data)) {
 
  216            $this->cdata .= $a_data;
 
  229        include_once 
'./Modules/Category/classes/class.ilCategoryXmlParser.php';
 
An exception for terminatinating execution or to throw for unit testing.
error($a_errmsg)
set error message @access public
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trimAndStrip(string $input)
trimAndStripAttribs(array $attribs)
getParentId()
Get parent id.
setImportMapping(ilImportMapping $mapping)
handlerEndTag($a_xml_parser, $a_name)
Handler end tag.
handlerBeginTag($a_xml_parser, $a_name, $a_attribs)
handler for begin of element
getReference()
Get container reference.
save()
Save category object.
startParsing()
start the parser
parseTargetId(string $attribute_target)
setMode($mode)
Set import mode.
handlerCharacterData($a_xml_parser, $a_data)
handler for character data
__construct($a_xml, $a_parent_id=0)
Constructor.
setHandlers($a_xml_parser)
set event handler should be overwritten by inherited class @access private
setReference(ilContainerReference $ref)
Set container reference.
setXMLContent($a_xml_content)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc