24require_once(
"./Services/Xml/classes/class.ilSaxParser.php");
 
   25require_once(
'./Services/User/classes/class.ilObjUser.php');
 
   26include_once(
'./Services/Calendar/classes/class.ilDateTime.php');
 
   72        $this->
error = $DIC[
"ilErr"];
 
   76        $this->parent_id = $a_parent_id;
 
  108        xml_set_object($a_xml_parser, $this);
 
  109        xml_set_element_handler($a_xml_parser, 
'handlerBeginTag', 
'handlerEndTag');
 
  110        xml_set_character_data_handler($a_xml_parser, 
'handlerCharacterData');
 
  118        parent::startParsing();
 
  121            return is_object($this->cat) ? $this->cat->getRefId() : 
false;
 
  123            return is_object($this->cat) ? $this->cat->update() : 
false;
 
  144                $this->current_translation = array();
 
  145                $this->current_translation[
'default'] = $a_attribs[
'default'] ? 1 : 0;
 
  146                $this->current_translation[
'lang'] = $a_attribs[
'language'];
 
  151                include_once 
'./Services/Container/classes/class.ilContainerSortingSettings.php';
 
  155            case 'ContainerSetting':
 
  156                $this->current_container_setting = $a_attribs[
'id'];
 
  175                $this->current_translation[
'title'] = $this->
trimAndStrip((
string) $this->cdata);
 
  177                if ($this->current_translation[
'default']) {
 
  184                $this->current_translation[
'description'] = $this->
trimAndStrip((
string) $this->cdata);
 
  186                if ($this->current_translation[
'default']) {
 
  195                    (
string) $this->current_translation[
'title'],
 
  196                    (
string) $this->current_translation[
'description'],
 
  197                    (
string) $this->current_translation[
'lang'],
 
  198                    (
int) $this->current_translation[
'default']
 
  202            case 'ContainerSetting':
 
  203                if ($this->current_container_setting) {
 
  204                    $this->cat_log->debug(
"Write container Setting, ID: " . $this->
getCategory()->getId() . 
", setting: " .
 
  205                        $this->current_container_setting . 
", data: " . $this->cdata);
 
  208                        $this->current_container_setting,
 
  214            case 'ContainerSettings':
 
  215                $this->cat->readContainerSettings();    
 
  227        #$a_data = str_replace("<","<",$a_data);
 
  228        #$a_data = str_replace(">",">",$a_data);
 
  230        if (!empty($a_data)) {
 
  231            $this->cdata .= $a_data;
 
An exception for terminatinating execution or to throw for unit testing.
error($a_errmsg)
set error message @access public
getParentId()
Get parent id.
$current_container_setting
setCategory($cat)
Set category object.
handlerEndTag($a_xml_parser, $a_name)
Handler end tag.
__construct($a_xml, $a_parent_id)
Constructor.
setMode($mode)
Set import mode.
getCurrentTranslation()
Get current translation.
startParsing()
start the parser
save()
Save category object.
handlerBeginTag($a_xml_parser, $a_name, $a_attribs)
handler for begin of element
handlerCharacterData($a_xml_parser, $a_data)
handler for character data
setHandlers($a_xml_parser)
set event handler should be overwritten by inherited class @access private
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trimAndStrip(string $input)
static _importContainerSortingSettings($attibs, $obj_id)
sorting import for all container objects
static _writeContainerSetting($a_id, $a_keyword, $a_value)
static getLogger($a_component_id)
Get component logger.
setXMLContent($a_xml_content)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc