ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
XML writer class. More...
Public Member Functions | |
__construct () | |
constructor More... | |
setForumId ($id) | |
setFileTargetDirectories ($a_rel, $a_abs) | |
Set file target directories. More... | |
start () | |
getXML () | |
Public Member Functions inherited from ilXmlWriter | |
__construct ($version="1.0", $outEnc="utf-8", $inEnc="utf-8") | |
constructor More... | |
_ilXmlWriter () | |
destructor public More... | |
xmlSetDtdDef ($dtdDef) | |
Sets dtd definition. More... | |
xmlSetStSheet ($stSheet) | |
Sets stylesheet. More... | |
xmlSetGenCmt ($genCmt) | |
Sets generated comment. More... | |
xmlEncodeData ($data) | |
Encodes text from input encoding into output encoding. More... | |
xmlFormatData ($data) | |
Indents text for better reading. More... | |
xmlFormatElement ($array) | |
Callback function for xmlFormatData; do not invoke directly. More... | |
xmlHeader () | |
Writes xml header public. More... | |
xmlStartTag ($tag, $attrs=null, $empty=false, $encode=true, $escape=true) | |
Writes a starttag. More... | |
xmlEndTag ($tag) | |
Writes an endtag. More... | |
xmlComment ($comment) | |
Writes a comment. More... | |
xmlData ($data, $encode=true, $escape=true) | |
Writes data. More... | |
xmlElement ($tag, $attrs=null, $data=null, $encode=true, $escape=true) | |
Writes a basic element (no children, just textual content) More... | |
xmlDumpFile ($file, $format=true) | |
Dumps xml document from memory into a file. More... | |
xmlDumpMem ($format=true) | |
Returns xml document from memory. More... | |
appendXML ($a_str) | |
append xml string to document More... | |
xmlClear () | |
clears xmlStr public More... | |
Data Fields | |
$forum_id = null | |
Data Fields inherited from ilXmlWriter | |
$xmlStr | |
$version | |
$outEnc | |
$inEnc | |
$dtdDef = "" | |
$stSheet = "" | |
$genCmt = "Generated by ILIAS XmlWriter" | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilXmlWriter | |
static | _xmlEscapeData ($data) |
Escapes reserved characters. More... | |
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 19 of file class.ilForumXMLWriter.php.
ilForumXMLWriter::__construct | ( | ) |
constructor
string | xml version |
string | output encoding |
string | input encoding public |
Definition at line 30 of file class.ilForumXMLWriter.php.
ilForumXMLWriter::getXML | ( | ) |
Definition at line 241 of file class.ilForumXMLWriter.php.
References ilXmlWriter\xmlDumpMem().
ilForumXMLWriter::setFileTargetDirectories | ( | $a_rel, | |
$a_abs | |||
) |
Set file target directories.
string | relative file target directory |
string | absolute file target directory |
Definition at line 48 of file class.ilForumXMLWriter.php.
ilForumXMLWriter::setForumId | ( | $id | ) |
ilForumXMLWriter::start | ( | ) |
Definition at line 54 of file class.ilForumXMLWriter.php.
References $DIC, $ilDB, $mobs, $query, $res, $row, ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilRTE\_replaceMediaObjectImageSrc(), ilDBConstants\FETCHMODE_OBJECT, ilUtil\makeDir(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
ilForumXMLWriter::$forum_id = null |
Definition at line 21 of file class.ilForumXMLWriter.php.