|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
XML writer class. More...
Inheritance diagram for ilCourseXMLWriter:
Collaboration diagram for ilCourseXMLWriter:Public Member Functions | |
| __construct ($course_obj) | |
| constructor More... | |
| setMode ($a_mode) | |
| getMode () | |
| start () | |
| getXML () | |
| modifyExportIdentifier ($a_tag, $a_param, $a_value) | |
| __buildHeader () | |
| __buildCourseStart () | |
| __buildMetaData () | |
| __buildAdmin () | |
| __buildTutor () | |
| __buildMember () | |
| __buildSubscriber () | |
| __buildWaitingList () | |
| __buildSetting () | |
| __buildFooter () | |
| setAttachUsers ($value) | |
| write access to attach user property, if set to false no users will be attached. More... | |
Public Member Functions inherited from ilXmlWriter | |
| __construct ($version="1.0", $outEnc="utf-8", $inEnc="utf-8") | |
| constructor More... | |
| _ilXmlWriter () | |
| destructor @access 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 @access 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 @access public More... | |
Data Fields | |
| const | MODE_SOAP = 1 |
| const | MODE_EXPORT = 2 |
Data Fields inherited from ilXmlWriter | |
| $xmlStr | |
| $version | |
| $outEnc | |
| $inEnc | |
| $dtdDef = "" | |
| $stSheet = "" | |
| $genCmt = "Generated by ILIAS XmlWriter" | |
Private Member Functions | |
| __buildAdvancedMetaData () | |
| Build advanced meta data. More... | |
Private Attributes | |
| $mode = self::MODE_SOAP | |
| $ilias | |
| $xml | |
| $course_obj | |
| $attach_users = true | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilXmlWriter | |
| static | _xmlEscapeData ($data) |
| Escapes reserved characters. More... | |
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 39 of file class.ilCourseXMLWriter.php.
| ilCourseXMLWriter::__construct | ( | $course_obj | ) |
constructor
| ilObject | $course_obj |
@access public
Definition at line 61 of file class.ilCourseXMLWriter.php.
References $course_obj, and $ilias.
| ilCourseXMLWriter::__buildAdmin | ( | ) |
Definition at line 173 of file class.ilCourseXMLWriter.php.
References $GLOBALS, $id, ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Build advanced meta data.
@access private
Definition at line 167 of file class.ilCourseXMLWriter.php.
References ilAdvancedMDValues\_appendXMLByObjId().
Referenced by start().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseXMLWriter::__buildCourseStart | ( | ) |
Definition at line 142 of file class.ilCourseXMLWriter.php.
References ilXmlWriter\xmlStartTag().
Referenced by start().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseXMLWriter::__buildFooter | ( | ) |
Definition at line 365 of file class.ilCourseXMLWriter.php.
References ilXmlWriter\xmlEndTag().
Referenced by start().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseXMLWriter::__buildHeader | ( | ) |
Definition at line 132 of file class.ilCourseXMLWriter.php.
References ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), and ilXmlWriter\xmlSetGenCmt().
Referenced by start().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseXMLWriter::__buildMember | ( | ) |
Definition at line 213 of file class.ilCourseXMLWriter.php.
References $GLOBALS, $id, ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseXMLWriter::__buildMetaData | ( | ) |
Definition at line 150 of file class.ilCourseXMLWriter.php.
References ilXmlWriter\appendXML().
Referenced by start().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseXMLWriter::__buildSetting | ( | ) |
Definition at line 284 of file class.ilCourseXMLWriter.php.
References IL_CAL_UNIX, IL_CRS_SUBSCRIPTION_CONFIRMATION, IL_CRS_SUBSCRIPTION_DEACTIVATED, IL_CRS_SUBSCRIPTION_DIRECT, IL_CRS_SUBSCRIPTION_UNLIMITED, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseXMLWriter::__buildSubscriber | ( | ) |
Definition at line 233 of file class.ilCourseXMLWriter.php.
References $data, $GLOBALS, $id, ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseXMLWriter::__buildTutor | ( | ) |
Definition at line 194 of file class.ilCourseXMLWriter.php.
References $GLOBALS, $id, ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseXMLWriter::__buildWaitingList | ( | ) |
Definition at line 255 of file class.ilCourseXMLWriter.php.
References $data, $GLOBALS, ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseXMLWriter::getMode | ( | ) |
Definition at line 78 of file class.ilCourseXMLWriter.php.
References $mode.
Referenced by start().
Here is the caller graph for this function:| ilCourseXMLWriter::getXML | ( | ) |
Definition at line 115 of file class.ilCourseXMLWriter.php.
References ilXmlWriter\xmlDumpMem().
Here is the call graph for this function:| ilCourseXMLWriter::modifyExportIdentifier | ( | $a_tag, | |
| $a_param, | |||
| $a_value | |||
| ) |
Definition at line 122 of file class.ilCourseXMLWriter.php.
| ilCourseXMLWriter::setAttachUsers | ( | $value | ) |
write access to attach user property, if set to false no users will be attached.
| unknown_type | $value |
Definition at line 375 of file class.ilCourseXMLWriter.php.
| ilCourseXMLWriter::setMode | ( | $a_mode | ) |
Definition at line 73 of file class.ilCourseXMLWriter.php.
| ilCourseXMLWriter::start | ( | ) |
Definition at line 83 of file class.ilCourseXMLWriter.php.
References __buildAdmin(), __buildAdvancedMetaData(), __buildCourseStart(), __buildFooter(), __buildHeader(), __buildMember(), __buildMetaData(), __buildSetting(), __buildSubscriber(), __buildTutor(), __buildWaitingList(), ilContainer\_exportContainerSettings(), ilContainerSortingSettings\_exportContainerSortingSettings(), and getMode().
Here is the call graph for this function:
|
private |
Definition at line 51 of file class.ilCourseXMLWriter.php.
|
private |
Definition at line 50 of file class.ilCourseXMLWriter.php.
Referenced by __construct().
|
private |
Definition at line 47 of file class.ilCourseXMLWriter.php.
Referenced by __construct().
|
private |
Definition at line 44 of file class.ilCourseXMLWriter.php.
Referenced by getMode().
|
private |
Definition at line 49 of file class.ilCourseXMLWriter.php.
| const ilCourseXMLWriter::MODE_EXPORT = 2 |
Definition at line 42 of file class.ilCourseXMLWriter.php.
Referenced by ilCourseExporter\getXmlRepresentation().
| const ilCourseXMLWriter::MODE_SOAP = 1 |
Definition at line 41 of file class.ilCourseXMLWriter.php.