ILIAS
Release_4_1_x_branch Revision 61804
|
XML writer class. More...
Public Member Functions | |
ilCourseXMLWriter (&$course_obj) | |
constructor | |
setMode ($a_mode) | |
getMode () | |
start () | |
getXML () | |
modifyExportIdentifier ($a_tag, $a_param, $a_value) | |
__buildHeader () | |
__buildCourseStart () | |
__buildMetaData () | |
__buildAdmin () | |
__buildTutor () | |
__buildMember () | |
__buildSubscriber () | |
__buildWaitingList () | |
__buildSetting () | |
__buildObject ($a_parent_id) | |
__buildFooter () | |
setAttachUsers ($value) | |
write access to attach user property, if set to false no users will be attached. | |
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 |
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. |
Private Attributes | |
$mode = self::MODE_SOAP | |
$ilias | |
$xml | |
$course_obj | |
$attach_users = true |
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::__buildAdmin | ( | ) |
Definition at line 176 of file class.ilCourseXMLWriter.php.
References ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
|
private |
Build advanced meta data.
private
Definition at line 170 of file class.ilCourseXMLWriter.php.
References ilAdvancedMDValues\_appendXMLByObjId().
Referenced by start().
ilCourseXMLWriter::__buildCourseStart | ( | ) |
Definition at line 145 of file class.ilCourseXMLWriter.php.
References ilXmlWriter\xmlStartTag().
Referenced by start().
ilCourseXMLWriter::__buildFooter | ( | ) |
Definition at line 421 of file class.ilCourseXMLWriter.php.
References ilXmlWriter\xmlEndTag().
Referenced by start().
ilCourseXMLWriter::__buildHeader | ( | ) |
Definition at line 135 of file class.ilCourseXMLWriter.php.
References ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), and ilXmlWriter\xmlSetGenCmt().
Referenced by start().
ilCourseXMLWriter::__buildMember | ( | ) |
Definition at line 207 of file class.ilCourseXMLWriter.php.
References ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
ilCourseXMLWriter::__buildMetaData | ( | ) |
Definition at line 153 of file class.ilCourseXMLWriter.php.
References ilXmlWriter\appendXML(), and ilMD2XML\startExport().
Referenced by start().
ilCourseXMLWriter::__buildObject | ( | $a_parent_id | ) |
Definition at line 383 of file class.ilCourseXMLWriter.php.
References ilObjectFactory\getInstanceByRefId(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
ilCourseXMLWriter::__buildSetting | ( | ) |
Definition at line 259 of file class.ilCourseXMLWriter.php.
References IL_CRS_ARCHIVE_DOWNLOAD, IL_CRS_SUBSCRIPTION_CONFIRMATION, IL_CRS_SUBSCRIPTION_DEACTIVATED, IL_CRS_SUBSCRIPTION_DIRECT, IL_CRS_SUBSCRIPTION_UNLIMITED, IL_CRS_VIEW_ARCHIVE, ilContainer\SORT_MANUAL, ilContainer\SORT_TITLE, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
ilCourseXMLWriter::__buildSubscriber | ( | ) |
Definition at line 223 of file class.ilCourseXMLWriter.php.
References $data, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
ilCourseXMLWriter::__buildTutor | ( | ) |
Definition at line 192 of file class.ilCourseXMLWriter.php.
References ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
ilCourseXMLWriter::__buildWaitingList | ( | ) |
Definition at line 240 of file class.ilCourseXMLWriter.php.
References $data, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
ilCourseXMLWriter::getMode | ( | ) |
Definition at line 78 of file class.ilCourseXMLWriter.php.
References $mode.
Referenced by start().
ilCourseXMLWriter::getXML | ( | ) |
Definition at line 117 of file class.ilCourseXMLWriter.php.
References ilXmlWriter\xmlDumpMem().
ilCourseXMLWriter::ilCourseXMLWriter | ( | & | $course_obj | ) |
constructor
string | xml version |
string | output encoding |
string | input encoding public |
Definition at line 61 of file class.ilCourseXMLWriter.php.
References $course_obj, $ilias, and ilXmlWriter\ilXmlWriter().
ilCourseXMLWriter::modifyExportIdentifier | ( | $a_tag, | |
$a_param, | |||
$a_value | |||
) |
Definition at line 124 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 431 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(), and getMode().
|
private |
Definition at line 51 of file class.ilCourseXMLWriter.php.
|
private |
Definition at line 50 of file class.ilCourseXMLWriter.php.
Referenced by ilCourseXMLWriter().
|
private |
Definition at line 47 of file class.ilCourseXMLWriter.php.
Referenced by ilCourseXMLWriter().
|
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.