ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
4 include_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();
27  parent::__construct($ref);
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 }
buildHeader()
Build xml header <type> $ilSetting.
xmlSetGenCmt($genCmt)
Sets generated comment.
xmlSetDtdDef($dtdDef)
Sets dtd definition.
global $DIC
Definition: saml.php:7
Class for container reference export.
__construct(ilObjCategoryReference $ref=null)
constructor
xmlHeader()
Writes xml header public.
settings()
Definition: settings.php:2
global $ilSetting
Definition: privfeed.php:17
Class for container reference export.