| ILIAS
    Release_4_4_x_branch Revision 61816
    | 
XML writer class. More...
 Inheritance diagram for ilFileXMLWriter:
 Inheritance diagram for ilFileXMLWriter: Collaboration diagram for ilFileXMLWriter:
 Collaboration diagram for ilFileXMLWriter:| Public Member Functions | |
| ilFileXMLWriter () | |
| constructor | |
| setFile (ilObjFile $file) | |
| setOmitHeader ($a_val) | |
| Set omit header. | |
| getOmitHeader () | |
| Get omit header. | |
| setFileTargetDirectories ($a_rel, $a_abs) | |
| Set file target directories. | |
| setAttachFileContents ($attachFileContents) | |
| set attachment content mode | |
| start () | |
| getXML () | |
| __buildHeader () | |
| __buildFooter () | |
|  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 | |
| $attachFileContents | |
| $file | |
| $omit_header = false | |
|  Data Fields inherited from ilXmlWriter | |
| $xmlStr | |
| $version | |
| $outEnc | |
| $inEnc | |
| $dtdDef = "" | |
| $stSheet = "" | |
| $genCmt = "Generated by ILIAS XmlWriter" | |
| Static Public Attributes | |
| static | $CONTENT_ATTACH_NO = 0 | 
| static | $CONTENT_ATTACH_ENCODED = 1 | 
| static | $CONTENT_ATTACH_ZLIB_ENCODED = 2 | 
| static | $CONTENT_ATTACH_GZIP_ENCODED = 3 | 
| static | $CONTENT_ATTACH_COPY = 4 | 
| static | $CONTENT_ATTACH_REST = 5 | 
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 21 of file class.ilFileXMLWriter.php.
| ilFileXMLWriter::__buildFooter | ( | ) | 
Definition at line 227 of file class.ilFileXMLWriter.php.
Referenced by start().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFileXMLWriter::__buildHeader | ( | ) | 
Definition at line 215 of file class.ilFileXMLWriter.php.
References getOmitHeader(), ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), and ilXmlWriter\xmlSetGenCmt().
Referenced by start().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFileXMLWriter::getOmitHeader | ( | ) | 
Get omit header.
Definition at line 84 of file class.ilFileXMLWriter.php.
References $omit_header.
Referenced by __buildHeader().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFileXMLWriter::getXML | ( | ) | 
Definition at line 209 of file class.ilFileXMLWriter.php.
References ilXmlWriter\xmlDumpMem().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilFileXMLWriter::ilFileXMLWriter | ( | ) | 
constructor
| string | xml version | 
| string | output encoding | 
| string | input encoding public | 
Definition at line 56 of file class.ilFileXMLWriter.php.
References $CONTENT_ATTACH_NO, and ilXmlWriter\ilXmlWriter().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilFileXMLWriter::setAttachFileContents | ( | $attachFileContents | ) | 
set attachment content mode
| int | $attachFileContents | 
| ilExerciseException | if mode is not supported | 
Definition at line 108 of file class.ilFileXMLWriter.php.
References $attachFileContents, $CONTENT_ATTACH_GZIP_ENCODED, $CONTENT_ATTACH_ZLIB_ENCODED, and ilFileException\$ID_DEFLATE_METHOD_MISMATCH.
| ilFileXMLWriter::setFile | ( | ilObjFile | $file | ) | 
Definition at line 63 of file class.ilFileXMLWriter.php.
References $file.
| ilFileXMLWriter::setFileTargetDirectories | ( | $a_rel, | |
| $a_abs | |||
| ) | 
Set file target directories.
| string | relative file target directory | 
| string | absolute file target directory | 
Definition at line 95 of file class.ilFileXMLWriter.php.
| ilFileXMLWriter::setOmitHeader | ( | $a_val | ) | 
Set omit header.
| boolean | omit header | 
Definition at line 74 of file class.ilFileXMLWriter.php.
| ilFileXMLWriter::start | ( | ) | 
Definition at line 122 of file class.ilFileXMLWriter.php.
References $CONTENT_ATTACH_COPY, $CONTENT_ATTACH_GZIP_ENCODED, $CONTENT_ATTACH_REST, $CONTENT_ATTACH_ZLIB_ENCODED, $filename, ilXmlWriter\$version, __buildFooter(), __buildHeader(), ilHistory\_getEntriesForObject(), ilUtil\date_mysql2time(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilFileXMLWriter::$attachFileContents | 
Definition at line 38 of file class.ilFileXMLWriter.php.
Referenced by setAttachFileContents().
| 
 | static | 
Definition at line 27 of file class.ilFileXMLWriter.php.
Referenced by ilFileExporter\getXmlRepresentation(), and start().
| 
 | static | 
Definition at line 24 of file class.ilFileXMLWriter.php.
| 
 | static | 
Definition at line 26 of file class.ilFileXMLWriter.php.
Referenced by setAttachFileContents(), and start().
| 
 | static | 
Definition at line 23 of file class.ilFileXMLWriter.php.
Referenced by ilFileXMLWriter().
| 
 | static | 
Definition at line 30 of file class.ilFileXMLWriter.php.
Referenced by start().
| 
 | static | 
Definition at line 25 of file class.ilFileXMLWriter.php.
Referenced by setAttachFileContents(), and start().
| ilFileXMLWriter::$file | 
Definition at line 45 of file class.ilFileXMLWriter.php.
Referenced by setFile().
| ilFileXMLWriter::$omit_header = false | 
Definition at line 47 of file class.ilFileXMLWriter.php.
Referenced by getOmitHeader().