ILIAS
Release_4_4_x_branch Revision 61816
|
XML writer for container structure. More...
Public Member Functions | |
__construct ($a_ref_id) | |
Constructor. | |
write () | |
Write XML. | |
Public Member Functions inherited from ilXmlWriter | |
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 | |
writeSubitems ($a_ref_id) | |
Write tree childs Recursive method. | |
writeCourseItemInformation ($a_ref_id) | |
Write course item information Starting time, ending time... | |
buildHeader () | |
Build XML header. |
Protected Attributes | |
$exp_options = null |
Private Attributes | |
$source = 0 |
Additional Inherited Members | |
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 143 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 91 of file class.ilContainerXmlWriter.php.
References 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 51 of file class.ilContainerXmlWriter.php.
References ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilExportOptions\EXPORT_OMIT, ilExportOptions\KEY_ITEM_MODE, 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.