ILIAS
Release_4_3_x_branch Revision 61807
|
XML writer for weblinks. More...
Public Member Functions | |
__construct ($a_add_header) | |
Constructor. | |
setObjId ($a_obj_id) | |
Set obj_id of weblink object. | |
write () | |
Write XML. | |
![]() | |
ilXmlWriter ($version="1.0", $outEnc="utf-8", $inEnc="utf-8") | |
constructor | |
_ilXmlWriter () | |
destructor public | |
xmlSetDtdDef ($dtdDef) | |
Sets dtd definition. | |
xmlSetStSheet ($stSheet) | |
Sets stylesheet. | |
xmlSetGenCmt ($genCmt) | |
Sets generated comment. | |
_xmlEscapeData ($data) | |
Escapes reserved characters. | |
xmlEncodeData ($data) | |
Encodes text from input encoding into output encoding. | |
xmlFormatData ($data) | |
Indents text for better reading. | |
xmlFormatElement ($array) | |
Callback function for xmlFormatData; do not invoke directly. | |
xmlHeader () | |
Writes xml header public. | |
xmlStartTag ($tag, $attrs=NULL, $empty=FALSE, $encode=TRUE, $escape=TRUE) | |
Writes a starttag. | |
xmlEndTag ($tag) | |
Writes an endtag. | |
xmlComment ($comment) | |
Writes a comment. | |
xmlData ($data, $encode=TRUE, $escape=TRUE) | |
Writes data. | |
xmlElement ($tag, $attrs=NULL, $data=Null, $encode=TRUE, $escape=TRUE) | |
Writes a basic element (no children, just textual content) | |
xmlDumpFile ($file, $format=TRUE) | |
Dumps xml document from memory into a file. | |
xmlDumpMem ($format=TRUE) | |
Returns xml document from memory. | |
appendXML ($a_str) | |
append xml string to document | |
xmlClear () | |
clears xmlStr public |
Protected Member Functions | |
buildHeader () | |
Build XML header. | |
init () | |
Init xml writer. |
Private Attributes | |
$add_header = true | |
$obj_id = 0 | |
$weblink = null |
Additional Inherited Members | |
![]() | |
$xmlStr | |
$version | |
$outEnc | |
$inEnc | |
$dtdDef = "" | |
$stSheet = "" | |
$genCmt = "Generated by ILIAS XmlWriter" |
XML writer for weblinks.
Definition at line 14 of file class.ilWebLinkXmlWriter.php.
ilWebLinkXmlWriter::__construct | ( | $a_add_header | ) |
Constructor.
Definition at line 24 of file class.ilWebLinkXmlWriter.php.
|
protected |
Build XML header.
Definition at line 59 of file class.ilWebLinkXmlWriter.php.
References ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), and ilXmlWriter\xmlSetGenCmt().
Referenced by write().
|
protected |
Init xml writer.
UnexpectedValueException | Thrown if obj_id is not of type webr |
Definition at line 74 of file class.ilWebLinkXmlWriter.php.
References ilObjectFactory\getInstanceByObjId(), and ilXmlWriter\xmlClear().
Referenced by write().
ilWebLinkXmlWriter::setObjId | ( | $a_obj_id | ) |
Set obj_id of weblink object.
int | obj_id |
Definition at line 35 of file class.ilWebLinkXmlWriter.php.
ilWebLinkXmlWriter::write | ( | ) |
Write XML.
UnexpectedValueException | Thrown if obj_id is not of type webr or no obj_id is given |
Definition at line 45 of file class.ilWebLinkXmlWriter.php.
References buildHeader(), and init().
|
private |
Definition at line 16 of file class.ilWebLinkXmlWriter.php.
|
private |
Definition at line 18 of file class.ilWebLinkXmlWriter.php.
|
private |
Definition at line 19 of file class.ilWebLinkXmlWriter.php.