|
ILIAS
release_8 Revision v8.24
|
XML writer class Class to simplify manual writing of xml documents. More...
Inheritance diagram for ilForumXMLWriter:
Collaboration diagram for ilForumXMLWriter:Public Member Functions | |
| __construct () | |
| setForumId (int $id) | |
| setFileTargetDirectories (string $a_rel, string $a_abs) | |
| start () | |
| getXML () | |
Public Member Functions inherited from ilXmlWriter | |
| __construct (string $version="1.0", string $outEnc="utf-8", string $inEnc="utf-8") | |
| xmlSetDtdDef (string $dtdDef) | |
| Sets dtd definition. More... | |
| xmlSetGenCmt (string $genCmt) | |
| Sets generated comment. More... | |
| xmlFormatData (string $data) | |
| Indents text for better reading. More... | |
| xmlHeader () | |
| Writes xml header. More... | |
| xmlStartTag (string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true) | |
| Writes a starttag. More... | |
| xmlEndTag (string $tag) | |
| Writes an endtag. More... | |
| xmlData (string $data, bool $encode=true, bool $escape=true) | |
| Writes data. More... | |
| xmlElement (string $tag, $attrs=null, $data=null, $encode=true, $escape=true) | |
| Writes a basic element (no children, just textual content) More... | |
| xmlDumpFile (string $file, bool $format=true) | |
| Dumps xml document from memory into a file. More... | |
| xmlDumpMem (bool $format=true) | |
| Returns xml document from memory. More... | |
| appendXML (string $a_str) | |
| append xml string to document More... | |
| xmlClear () | |
| clears xmlStr More... | |
Data Fields | |
| int | $forum_id = 0 |
Private Attributes | |
| string | $target_dir_relative |
| string | $target_dir_absolute |
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 31 of file class.ilForumXMLWriter.php.
| ilForumXMLWriter::__construct | ( | ) |
Definition at line 37 of file class.ilForumXMLWriter.php.
References ILIAS\GlobalScreen\Provider\__construct().
Here is the call graph for this function:| ilForumXMLWriter::getXML | ( | ) |
Definition at line 212 of file class.ilForumXMLWriter.php.
References ilXmlWriter\xmlDumpMem().
Here is the call graph for this function:| ilForumXMLWriter::setFileTargetDirectories | ( | string | $a_rel, |
| string | $a_abs | ||
| ) |
Definition at line 47 of file class.ilForumXMLWriter.php.
| ilForumXMLWriter::setForumId | ( | int | $id | ) |
Definition at line 42 of file class.ilForumXMLWriter.php.
References $id.
| ilForumXMLWriter::start | ( | ) |
Definition at line 53 of file class.ilForumXMLWriter.php.
References $DIC, $ilDB, $mobs, $query, $res, ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilRTE\_replaceMediaObjectImageSrc(), IL_INST_ID, ilFileUtils\makeDir(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Here is the call graph for this function:| int ilForumXMLWriter::$forum_id = 0 |
Definition at line 33 of file class.ilForumXMLWriter.php.
|
private |
Definition at line 35 of file class.ilForumXMLWriter.php.
|
private |
Definition at line 34 of file class.ilForumXMLWriter.php.