ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilSoapStructureObjectXMLWriter.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  +-----------------------------------------------------------------------------+
5  | ILIAS open source |
6  +-----------------------------------------------------------------------------+
7  | Copyright (c) 1998-2001 ILIAS open source, University of Cologne |
8  | |
9  | This program is free software; you can redistribute it and/or |
10  | modify it under the terms of the GNU General Public License |
11  | as published by the Free Software Foundation; either version 2 |
12  | of the License, or (at your option) any later version. |
13  | |
14  | This program is distributed in the hope that it will be useful, |
15  | but WITHOUT ANY WARRANTY; without even the implied warranty of |
16  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17  | GNU General Public License for more details. |
18  | |
19  | You should have received a copy of the GNU General Public License |
20  | along with this program; if not, write to the Free Software |
21  | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
22  +-----------------------------------------------------------------------------+
23 */
24 
38 include_once "./classes/class.ilXmlWriter.php";
39 
41 {
42  var $ilias;
43  var $xml;
45  var $user_id = 0;
46 
55  {
56  global $ilias,$ilUser;
57 
59 
60  $this->ilias =& $ilias;
61  $this->user_id = $ilUser->getId();
62  }
63 
64 
66  {
67  $this->structureObject = & $structureObject;
68  }
69 
70 
71  function start()
72  {
73  if (!is_object($this->structureObject))
74  return false;
75 
76  $this->__buildHeader();
77 
78  $this->structureObject->exportXML ($this);
79 
80  $this->__buildFooter();
81 
82  return true;
83  }
84 
85  function getXML()
86  {
87  return $this->xmlDumpMem(FALSE);
88  }
89 
90 
91  function __buildHeader()
92  {
93  $this->xmlSetDtdDef("<!DOCTYPE RepositoryObject PUBLIC \"-//ILIAS//DTD UserImport//EN\" \"".ILIAS_HTTP_PATH."/xml/ilias_soap_structure_object_3_7.dtd\">");
94  $this->xmlSetGenCmt("Internal Structure Information of Repository Object");
95  $this->xmlHeader();
96 
97 
98  return true;
99  }
100 
101  function __buildFooter()
102  {
103 
104  }
105 
106 }
107 
108 
109 ?>