XML writer class. More...
Inheritance diagram for ilSoapStructureObjectXMLWriter:
Collaboration diagram for ilSoapStructureObjectXMLWriter:Public Member Functions | |
| ilSoapStructureObjectXMLWriter () | |
| constructor | |
| setStructureObject (&$structureObject) | |
| start () | |
| getXML () | |
| __buildHeader () | |
| __buildFooter () | |
Data Fields | |
| $ilias | |
| $xml | |
| $structureObject | |
| $user_id = 0 | |
XML writer class.
Class to simplify manual writing of xml documents. It only supports writing xml sequentially, because the xml document is saved in a string with no additional structure information. The author is responsible for well-formedness and validity of the xml document.
Definition at line 40 of file class.ilSoapStructureObjectXMLWriter.php.
| ilSoapStructureObjectXMLWriter::__buildFooter | ( | ) |
Definition at line 101 of file class.ilSoapStructureObjectXMLWriter.php.
Referenced by start().
{
}
Here is the caller graph for this function:| ilSoapStructureObjectXMLWriter::__buildHeader | ( | ) |
Definition at line 91 of file class.ilSoapStructureObjectXMLWriter.php.
References ilXmlWriter::xmlHeader(), ilXmlWriter::xmlSetDtdDef(), and ilXmlWriter::xmlSetGenCmt().
Referenced by start().
{
$this->xmlSetDtdDef("<!DOCTYPE RepositoryObject PUBLIC \"-//ILIAS//DTD UserImport//EN\" \"".ILIAS_HTTP_PATH."/xml/ilias_soap_structure_object_3_7.dtd\">");
$this->xmlSetGenCmt("Internal Structure Information of Repository Object");
$this->xmlHeader();
return true;
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilSoapStructureObjectXMLWriter::getXML | ( | ) |
Definition at line 85 of file class.ilSoapStructureObjectXMLWriter.php.
References ilXmlWriter::xmlDumpMem().
{
return $this->xmlDumpMem(FALSE);
}
Here is the call graph for this function:| ilSoapStructureObjectXMLWriter::ilSoapStructureObjectXMLWriter | ( | ) |
constructor
| string | xml version | |
| string | output encoding | |
| string | input encoding public |
Definition at line 54 of file class.ilSoapStructureObjectXMLWriter.php.
References $ilias, and ilXmlWriter::ilXmlWriter().
{
global $ilias,$ilUser;
parent::ilXmlWriter();
$this->ilias =& $ilias;
$this->user_id = $ilUser->getId();
}
Here is the call graph for this function:| ilSoapStructureObjectXMLWriter::setStructureObject | ( | &$ | structureObject | ) |
Definition at line 65 of file class.ilSoapStructureObjectXMLWriter.php.
References $structureObject.
{
$this->structureObject = & $structureObject;
}
| ilSoapStructureObjectXMLWriter::start | ( | ) |
Definition at line 71 of file class.ilSoapStructureObjectXMLWriter.php.
References __buildFooter(), and __buildHeader().
{
if (!is_object($this->structureObject))
return false;
$this->__buildHeader();
$this->structureObject->exportXML ($this);
$this->__buildFooter();
return true;
}
Here is the call graph for this function:| ilSoapStructureObjectXMLWriter::$ilias |
Definition at line 42 of file class.ilSoapStructureObjectXMLWriter.php.
Referenced by ilSoapStructureObjectXMLWriter().
| ilSoapStructureObjectXMLWriter::$structureObject |
Definition at line 44 of file class.ilSoapStructureObjectXMLWriter.php.
Referenced by setStructureObject().
| ilSoapStructureObjectXMLWriter::$user_id = 0 |
Definition at line 45 of file class.ilSoapStructureObjectXMLWriter.php.
| ilSoapStructureObjectXMLWriter::$xml |
Definition at line 43 of file class.ilSoapStructureObjectXMLWriter.php.
1.7.1