ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilSoapStructureObjectXMLWriter.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 include_once "./Services/Xml/classes/class.ilXmlWriter.php";
6 
20 {
21  var $ilias;
22  var $xml;
24  var $user_id = 0;
25 
33  function __construct()
34  {
35  global $ilias,$ilUser;
36 
37  parent::__construct();
38 
39  $this->ilias =& $ilias;
40  $this->user_id = $ilUser->getId();
41  }
42 
43 
44  function setStructureObject(& $structureObject)
45  {
46  $this->structureObject = & $structureObject;
47  }
48 
49 
50  function start()
51  {
52  if (!is_object($this->structureObject))
53  return false;
54 
55  $this->__buildHeader();
56 
57  $this->structureObject->exportXML ($this);
58 
59  $this->__buildFooter();
60 
61  return true;
62  }
63 
64  function getXML()
65  {
66  return $this->xmlDumpMem(FALSE);
67  }
68 
69 
70  function __buildHeader()
71  {
72  $this->xmlSetDtdDef("<!DOCTYPE RepositoryObject PUBLIC \"-//ILIAS//DTD UserImport//EN\" \"".ILIAS_HTTP_PATH."/xml/ilias_soap_structure_object_3_7.dtd\">");
73  $this->xmlSetGenCmt("Internal Structure Information of Repository Object");
74  $this->xmlHeader();
75 
76 
77  return true;
78  }
79 
80  function __buildFooter()
81  {
82 
83  }
84 
85 }
86 
87 
88 ?>
xmlSetGenCmt($genCmt)
Sets generated comment.
xmlSetDtdDef($dtdDef)
Sets dtd definition.
XML writer class.
$ilUser
Definition: imgupload.php:18
redirection script todo: (a better solution should control the processing via a xml file) ...
xmlHeader()
Writes xml header public.
xmlDumpMem($format=TRUE)
Returns xml document from memory.