3 declare(strict_types=1);
    40         $this->mode = self::MODE_CREATE;
    41         $this->parent_id = $a_parent_id;
    62         xml_set_object($a_xml_parser, $this);
    63         xml_set_element_handler($a_xml_parser, 
'handlerBeginTag', 
'handlerEndTag');
    64         xml_set_character_data_handler($a_xml_parser, 
'handlerCharacterData');
    69         parent::startParsing();
    71         if ($this->mode !== self::MODE_CREATE) {
    82     public function handlerBeginTag($a_xml_parser, 
string $a_name, array $a_attribs): void
    94                 $this->current_translation = [];
    95                 $this->current_translation[
'default'] = $a_attribs[
'default'] ? 1 : 0;
    96                 $this->current_translation[
'lang'] = $a_attribs[
'language'];
   104             case 'ContainerSetting':
   105                 $this->current_container_setting = $a_attribs[
'id'];
   124                 $this->current_translation[
'title'] = trim($this->cdata);
   126                 if ($this->current_translation[
'default']) {
   127                     $this->
getCategory()->setTitle(trim($this->cdata));
   133                 $this->current_translation[
'description'] = trim($this->cdata);
   135                 if ($this->current_translation[
'default']) {
   136                     $this->
getCategory()->setDescription(trim($this->cdata));
   144                     (
string) $this->current_translation[
'title'],
   145                     (
string) $this->current_translation[
'description'],
   146                     (
string) $this->current_translation[
'lang'],
   147                     (
string) ((
int) $this->current_translation[
'default'])
   151             case 'ContainerSetting':
   152                 if ($this->current_container_setting) {
   153                     $this->cat_log->debug(
"Write container Setting, ID: " . $this->
getCategory()->
getId() . 
", setting: " .
   154                         $this->current_container_setting . 
", data: " . $this->cdata);
   157                         $this->current_container_setting,
   163             case 'ContainerSettings':
   164                 $this->cat->readContainerSettings();    
   177         if (!empty($a_data)) {
   178             $this->cdata .= $a_data;
   182     protected function save(): bool
   187         if ($this->mode === self::MODE_CREATE) {
 
handlerEndTag($a_xml_parser, string $a_name)
 
handlerCharacterData($a_xml_parser, string $a_data)
 
static getLogger(string $a_component_id)
Get component logger. 
 
static _importContainerSortingSettings(array $attibs, int $obj_id)
sorting import for all container objects 
 
string $current_container_setting
 
setCategory(ilObjCategory $cat)
 
array $current_translation
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
handlerBeginTag($a_xml_parser, string $a_name, array $a_attribs)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _writeContainerSetting(int $a_id, string $a_keyword, string $a_value)
 
setHandlers($a_xml_parser)
 
__construct(string $a_xml, int $a_parent_id)
 
trimAndStripAttribs(array $attribs)
 
setXMLContent(string $a_xml_content)
 
trimAndStrip(string $input)