ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
XML writer for container structure. More...
Public Member Functions | |
__construct ($a_ref_id) | |
Constructor. More... | |
write () | |
Write XML. More... | |
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... | |
Protected Member Functions | |
writeSubitems ($a_ref_id) | |
Write tree childs Recursive method. More... | |
writeCourseItemInformation ($a_ref_id) | |
Write course item information Starting time, ending time... More... | |
buildHeader () | |
Build XML header. More... | |
Protected Attributes | |
$exp_options = null | |
Private Attributes | |
$source = 0 | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilXmlWriter | |
static | _xmlEscapeData ($data) |
Escapes reserved characters. More... | |
Data Fields inherited from ilXmlWriter | |
$xmlStr | |
$version | |
$outEnc | |
$inEnc | |
$dtdDef = "" | |
$stSheet = "" | |
$genCmt = "Generated by ILIAS XmlWriter" | |
XML writer for container structure.
Definition at line 15 of file class.ilContainerXmlWriter.php.
ilContainerXmlWriter::__construct | ( | $a_ref_id | ) |
Constructor.
Definition at line 23 of file class.ilContainerXmlWriter.php.
References ilExportOptions\getInstance().
|
protected |
Build XML header.
Definition at line 152 of file class.ilContainerXmlWriter.php.
References ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), and ilXmlWriter\xmlSetGenCmt().
ilContainerXmlWriter::write | ( | ) |
Write XML.
UnexpectedValueException | Thrown if obj_id is not of type webr or no obj_id is given |
Definition at line 36 of file class.ilContainerXmlWriter.php.
References writeSubitems(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
|
protected |
Write course item information Starting time, ending time...
int | $a_ref_id |
Definition at line 100 of file class.ilContainerXmlWriter.php.
References array, ilObjectActivation\getItem(), IL_CAL_DATETIME, IL_CAL_UNIX, ilTimeZone\UTC, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by writeSubitems().
|
protected |
Write tree childs Recursive method.
object | $a_ref_id |
Definition at line 49 of file class.ilContainerXmlWriter.php.
References ilPageObject\_exists(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), array, ilExportOptions\EXPORT_OMIT, ilExportOptions\KEY_ITEM_MODE, ilObjStyleSheet\lookupObjectStyle(), writeCourseItemInformation(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by write().
|
protected |
Definition at line 17 of file class.ilContainerXmlWriter.php.
|
private |
Definition at line 18 of file class.ilContainerXmlWriter.php.