ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilCategoryReferenceXmlWriter.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once './Services/ContainerReference/classes/class.ilContainerReferenceXmlWriter.php';
5
13{
14
22 public function __construct(ilObjCategoryReference $ref = null)
23 {
24 global $DIC;
25
26 $this->settings = $DIC->settings();
28 }
29
35 protected function buildHeader()
36 {
38
39 $this->xmlSetDtdDef("<!DOCTYPE category reference PUBLIC \"-//ILIAS//DTD Group//EN\" \"" . ILIAS_HTTP_PATH . "/xml/ilias_category_reference_4_3.dtd\">");
40 $this->xmlSetGenCmt("Export of ILIAS category reference " . $this->getReference()->getId() . " of installation " . $ilSetting->get('inst_id') . ".");
41 $this->xmlHeader();
42
43 return true;
44 }
45}
An exception for terminatinating execution or to throw for unit testing.
Class for container reference export.
buildHeader()
Build xml header @global <type> $ilSetting.
__construct(ilObjCategoryReference $ref=null)
constructor
Class for container reference export.
xmlSetGenCmt($genCmt)
Sets generated comment.
xmlHeader()
Writes xml header @access public.
xmlSetDtdDef($dtdDef)
Sets dtd definition.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $ilSetting
Definition: privfeed.php:17
settings()
Definition: settings.php:2
$DIC
Definition: xapitoken.php:46