ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilCourseReferenceXmlWriter.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(ilObjCourseReference $ref = null)
23  {
24  parent::__construct($ref);
25  }
26 
32  protected function buildHeader()
33  {
34  global $ilSetting;
35 
36  $this->xmlSetDtdDef("<!DOCTYPE course reference PUBLIC \"-//ILIAS//DTD Group//EN\" \"" . ILIAS_HTTP_PATH . "/xml/ilias_course_reference_4_3.dtd\">");
37  $this->xmlSetGenCmt("Export of ILIAS course reference " . $this->getReference()->getId() . " of installation " . $ilSetting->get('inst_id') . ".");
38  $this->xmlHeader();
39 
40  return true;
41  }
42 }
__construct(ilObjCourseReference $ref=null)
constructor
xmlSetGenCmt($genCmt)
Sets generated comment.
xmlSetDtdDef($dtdDef)
Sets dtd definition.
xmlHeader()
Writes xml header public.
global $ilSetting
Definition: privfeed.php:17
Class for container reference export.
buildHeader()
Build xml header <type> $ilSetting.
Class for container reference export.