ILIAS
release_8 Revision v8.19
|
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 (ilObjCourse $course_obj) | |
setMode (int $a_mode) | |
getMode () | |
start () | |
getXML () | |
modifyExportIdentifier ($a_tag, $a_param, $a_value) | |
__buildHeader () | |
__buildCourseStart () | |
__buildMetaData () | |
__buildAdmin () | |
__buildTutor () | |
__buildMember () | |
__buildSubscriber () | |
__buildWaitingList () | |
__buildSetting () | |
__buildFooter () | |
setAttachUsers ($value) | |
![]() | |
__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 | |
const | MODE_SOAP = 1 |
const | MODE_EXPORT = 2 |
const | EXPORT_VERSION = '8.0' |
Protected Attributes | |
ilSetting | $setting |
ilAccessHandler | $access |
Private Member Functions | |
__buildAdvancedMetaData () | |
Private Attributes | |
int | $mode = self::MODE_SOAP |
string | $xml = '' |
ilObjCourse | $course_obj |
bool | $attach_users = true |
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 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.ilCourseXMLWriter.php.
ilCourseXMLWriter::__construct | ( | ilObjCourse | $course_obj | ) |
Definition at line 47 of file class.ilCourseXMLWriter.php.
References $course_obj, $DIC, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\access().
ilCourseXMLWriter::__buildAdmin | ( | ) |
Definition at line 140 of file class.ilCourseXMLWriter.php.
References $GLOBALS, $id, ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
|
private |
Definition at line 135 of file class.ilCourseXMLWriter.php.
References ilAdvancedMDValues\_appendXMLByObjId().
Referenced by start().
ilCourseXMLWriter::__buildCourseStart | ( | ) |
Definition at line 120 of file class.ilCourseXMLWriter.php.
References ilXmlWriter\xmlStartTag().
Referenced by start().
ilCourseXMLWriter::__buildFooter | ( | ) |
Definition at line 367 of file class.ilCourseXMLWriter.php.
References ilXmlWriter\xmlEndTag().
Referenced by start().
ilCourseXMLWriter::__buildHeader | ( | ) |
Definition at line 113 of file class.ilCourseXMLWriter.php.
References ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), and ilXmlWriter\xmlSetGenCmt().
Referenced by start().
ilCourseXMLWriter::__buildMember | ( | ) |
Definition at line 181 of file class.ilCourseXMLWriter.php.
References $GLOBALS, $id, ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
ilCourseXMLWriter::__buildMetaData | ( | ) |
Definition at line 128 of file class.ilCourseXMLWriter.php.
References ilXmlWriter\appendXML(), and ilMD2XML\startExport().
Referenced by start().
ilCourseXMLWriter::__buildSetting | ( | ) |
Definition at line 245 of file class.ilCourseXMLWriter.php.
References IL_CAL_UNIX, ilCourseConstants\IL_CRS_SUBSCRIPTION_CONFIRMATION, ilCourseConstants\IL_CRS_SUBSCRIPTION_DEACTIVATED, ilCourseConstants\IL_CRS_SUBSCRIPTION_DIRECT, ilCourseConstants\IL_CRS_SUBSCRIPTION_UNLIMITED, ilCourseConstants\IL_CRS_VIEW_TIMING, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
ilCourseXMLWriter::__buildSubscriber | ( | ) |
Definition at line 200 of file class.ilCourseXMLWriter.php.
References $data, $id, ILIAS\Repository\access(), ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
ilCourseXMLWriter::__buildTutor | ( | ) |
Definition at line 161 of file class.ilCourseXMLWriter.php.
References $id, ILIAS\Repository\access(), ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
ilCourseXMLWriter::__buildWaitingList | ( | ) |
Definition at line 221 of file class.ilCourseXMLWriter.php.
References $data, $GLOBALS, ilWaitingList\getAllUsers(), ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
ilCourseXMLWriter::getMode | ( | ) |
Definition at line 63 of file class.ilCourseXMLWriter.php.
References $mode.
Referenced by start().
ilCourseXMLWriter::getXML | ( | ) |
Definition at line 98 of file class.ilCourseXMLWriter.php.
References ilXmlWriter\xmlDumpMem().
ilCourseXMLWriter::modifyExportIdentifier | ( | $a_tag, | |
$a_param, | |||
$a_value | |||
) |
Definition at line 103 of file class.ilCourseXMLWriter.php.
ilCourseXMLWriter::setAttachUsers | ( | $value | ) |
Definition at line 372 of file class.ilCourseXMLWriter.php.
ilCourseXMLWriter::setMode | ( | int | $a_mode | ) |
Definition at line 58 of file class.ilCourseXMLWriter.php.
ilCourseXMLWriter::start | ( | ) |
Definition at line 68 of file class.ilCourseXMLWriter.php.
References __buildAdmin(), __buildAdvancedMetaData(), __buildCourseStart(), __buildFooter(), __buildHeader(), __buildMember(), __buildMetaData(), __buildSetting(), __buildSubscriber(), __buildTutor(), __buildWaitingList(), ilContainer\_exportContainerSettings(), ilContainerSortingSettings\_exportContainerSortingSettings(), and getMode().
|
protected |
Definition at line 45 of file class.ilCourseXMLWriter.php.
|
private |
Definition at line 42 of file class.ilCourseXMLWriter.php.
|
private |
Definition at line 41 of file class.ilCourseXMLWriter.php.
Referenced by __construct().
|
private |
Definition at line 38 of file class.ilCourseXMLWriter.php.
Referenced by getMode().
|
protected |
Definition at line 44 of file class.ilCourseXMLWriter.php.
|
private |
Definition at line 40 of file class.ilCourseXMLWriter.php.
const ilCourseXMLWriter::EXPORT_VERSION = '8.0' |
Definition at line 36 of file class.ilCourseXMLWriter.php.
const ilCourseXMLWriter::MODE_EXPORT = 2 |
Definition at line 34 of file class.ilCourseXMLWriter.php.
Referenced by ilCourseExporter\getXmlRepresentation().
const ilCourseXMLWriter::MODE_SOAP = 1 |
Definition at line 33 of file class.ilCourseXMLWriter.php.