ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (int $a_ref_id) | |
write () | |
Write XML. More... | |
![]() | |
__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... | |
Protected Member Functions | |
writeSubitems (int $a_ref_id) | |
Write tree childs Recursive method. More... | |
writeCourseItemInformation (int $a_ref_id) | |
Write course item information Starting time, ending time... More... | |
buildHeader () | |
Protected Attributes | |
ilTree | $tree |
ilExportOptions | $exp_options = null |
ilObjectDefinition | $objDefinition |
Private Attributes | |
int | $source = 0 |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning XML writer for container structure
Definition at line 24 of file class.ilContainerXmlWriter.php.
ilContainerXmlWriter::__construct | ( | int | $a_ref_id | ) |
Definition at line 31 of file class.ilContainerXmlWriter.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), and ilExportOptions\getInstance().
|
protected |
Definition at line 136 of file class.ilContainerXmlWriter.php.
References ilXmlWriter\xmlHeader(), 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 46 of file class.ilContainerXmlWriter.php.
References writeSubitems(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
|
protected |
Write course item information Starting time, ending time...
Definition at line 100 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.
Definition at line 57 of file class.ilContainerXmlWriter.php.
References $tree, ilPageObject\_exists(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilExportOptions\EXPORT_OMIT, ilTree\getChilds(), ilExportOptions\KEY_ITEM_MODE, ilObjStyleSheet\lookupObjectStyle(), ilObject\lookupOfflineStatus(), null, writeCourseItemInformation(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by write().
|
protected |
Definition at line 27 of file class.ilContainerXmlWriter.php.
|
protected |
Definition at line 29 of file class.ilContainerXmlWriter.php.
|
private |
Definition at line 28 of file class.ilContainerXmlWriter.php.
|
protected |
Definition at line 26 of file class.ilContainerXmlWriter.php.
Referenced by writeSubitems().