ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
5include_once "./Services/Xml/classes/class.ilXmlWriter.php";
6
20{
21 var $ilias;
22 var $xml;
24 var $user_id = 0;
25
34 {
35 global $ilias,$ilUser;
36
37 parent::ilXmlWriter();
38
39 $this->ilias =& $ilias;
40 $this->user_id = $ilUser->getId();
41 }
42
43
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?>
XML writer class.
xmlDumpMem($format=TRUE)
Returns xml document from memory.
xmlSetGenCmt($genCmt)
Sets generated comment.
xmlHeader()
Writes xml header @access public.
xmlSetDtdDef($dtdDef)
Sets dtd definition.
redirection script todo: (a better solution should control the processing via a xml file)
global $ilUser
Definition: imgupload.php:15