ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
XML writer class Class to simplify manual writing of xml documents. More...
Public Member Functions | |
__construct (string $version='1.0', string $outEnc='utf-8', string $inEnc='utf-8') | |
setForumId (int $id) | |
setFileTargetDirectories (string $a_rel, string $a_abs) | |
getComponentPath () | |
start () | |
getXML () | |
![]() | |
__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 | |
const | LEGACY_RESOURCE_SUB_DIRECTORY = 'expDir_1' |
string | $relative_component_path = null |
string | $absolute_root_export_path = null |
readonly ILIAS Style Content DomainService | $content_style_domain |
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 | ( | string | $version = '1.0' , |
string | $outEnc = 'utf-8' , |
||
string | $inEnc = 'utf-8' |
||
) |
Definition at line 41 of file class.ilForumXMLWriter.php.
References $DIC, ilXmlWriter\$inEnc, ilXmlWriter\$outEnc, ilXmlWriter\$version, and ILIAS\GlobalScreen\Provider\__construct().
ilForumXMLWriter::getComponentPath | ( | ) |
Definition at line 71 of file class.ilForumXMLWriter.php.
References $relative_component_path.
Referenced by start().
ilForumXMLWriter::getXML | ( | ) |
Definition at line 237 of file class.ilForumXMLWriter.php.
References ilXmlWriter\xmlDumpMem().
ilForumXMLWriter::setFileTargetDirectories | ( | string | $a_rel, |
string | $a_abs | ||
) |
ilForumXMLWriter::setForumId | ( | int | $id | ) |
Definition at line 55 of file class.ilForumXMLWriter.php.
References $id.
ilForumXMLWriter::start | ( | ) |
Definition at line 76 of file class.ilForumXMLWriter.php.
References $DIC, $ilDB, $res, ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilRTE\_replaceMediaObjectImageSrc(), getComponentPath(), IL_INST_ID, ilFileUtils\makeDir(), ilFileUtils\makeDirParents(), null, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
|
private |
Definition at line 37 of file class.ilForumXMLWriter.php.
|
private |
Definition at line 39 of file class.ilForumXMLWriter.php.
int ilForumXMLWriter::$forum_id = 0 |
Definition at line 35 of file class.ilForumXMLWriter.php.
|
private |
Definition at line 36 of file class.ilForumXMLWriter.php.
Referenced by getComponentPath().
|
private |
Definition at line 33 of file class.ilForumXMLWriter.php.