ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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  public $ilias;
22  public $xml;
24  public $user_id = 0;
25 
33  public 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 
45  {
46  $this->structureObject = &$structureObject;
47  }
48 
49 
50  public function start()
51  {
52  if (!is_object($this->structureObject)) {
53  return false;
54  }
55 
56  $this->__buildHeader();
57 
58  $this->structureObject->exportXML($this);
59 
60  $this->__buildFooter();
61 
62  return true;
63  }
64 
65  public function getXML()
66  {
67  return $this->xmlDumpMem(false);
68  }
69 
70 
71  public function __buildHeader()
72  {
73  $this->xmlSetDtdDef("<!DOCTYPE RepositoryObject PUBLIC \"-//ILIAS//DTD UserImport//EN\" \"" . ILIAS_HTTP_PATH . "/xml/ilias_soap_structure_object_3_7.dtd\">");
74  $this->xmlSetGenCmt("Internal Structure Information of Repository Object");
75  $this->xmlHeader();
76 
77 
78  return true;
79  }
80 
81  public function __buildFooter()
82  {
83  }
84 }
xmlSetGenCmt($genCmt)
Sets generated comment.
xmlSetDtdDef($dtdDef)
Sets dtd definition.
xmlDumpMem($format=true)
Returns xml document from memory.
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.