ILIAS
Release_4_4_x_branch Revision 61816
|
XML writer learning progress. More...
Public Member Functions | |
__construct ($a_add_header) | |
Constructor. | |
setTimestamp ($a_val) | |
Set timestamp. | |
getTimestamp () | |
Get timestamp. | |
setIncludeRefIds ($a_val) | |
Set include ref ids. | |
getIncludeRefIds () | |
Get include ref ids. | |
setTypeFilter ($a_val) | |
Set type filter. | |
getTypeFilter () | |
Get type filter. | |
write () | |
Write XML. | |
addLPInformation () | |
Add lp information as xml. | |
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 |
Protected Member Functions | |
buildHeader () | |
Build XML header. | |
init () | |
Init xml writer. |
Private Attributes | |
$add_header = true | |
$timestamp = "" | |
$include_ref_ids = false | |
$type_filter = array() |
Additional Inherited Members | |
Data Fields inherited from ilXmlWriter | |
$xmlStr | |
$version | |
$outEnc | |
$inEnc | |
$dtdDef = "" | |
$stSheet = "" | |
$genCmt = "Generated by ILIAS XmlWriter" |
ilLPXmlWriter::__construct | ( | $a_add_header | ) |
Constructor.
Definition at line 25 of file class.ilLPXmlWriter.php.
ilLPXmlWriter::addLPInformation | ( | ) |
Add lp information as xml.
@return |
Definition at line 141 of file class.ilLPXmlWriter.php.
References ilObject\_getAllReferences(), ilObject\_lookupType(), getIncludeRefIds(), getTypeFilter(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by write().
|
protected |
Build XML header.
Definition at line 110 of file class.ilLPXmlWriter.php.
References ilXmlWriter\xmlHeader().
Referenced by write().
ilLPXmlWriter::getIncludeRefIds | ( | ) |
Get include ref ids.
Definition at line 66 of file class.ilLPXmlWriter.php.
References $include_ref_ids.
Referenced by addLPInformation().
ilLPXmlWriter::getTimestamp | ( | ) |
Get timestamp.
Definition at line 46 of file class.ilLPXmlWriter.php.
References $timestamp.
ilLPXmlWriter::getTypeFilter | ( | ) |
Get type filter.
Definition at line 86 of file class.ilLPXmlWriter.php.
References $type_filter.
Referenced by addLPInformation().
|
protected |
Init xml writer.
UnexpectedValueException | Thrown if obj_id is not of type webr |
Definition at line 125 of file class.ilLPXmlWriter.php.
References ilXmlWriter\xmlClear().
Referenced by write().
ilLPXmlWriter::setIncludeRefIds | ( | $a_val | ) |
Set include ref ids.
bool | $a_val | include ref ids |
Definition at line 56 of file class.ilLPXmlWriter.php.
ilLPXmlWriter::setTimestamp | ( | $a_val | ) |
Set timestamp.
string | $a_val | timestamp (YYYY-MM-DD hh:mm:ss) |
Definition at line 36 of file class.ilLPXmlWriter.php.
ilLPXmlWriter::setTypeFilter | ( | $a_val | ) |
Set type filter.
array | $a_val | string of arrays |
Definition at line 76 of file class.ilLPXmlWriter.php.
ilLPXmlWriter::write | ( | ) |
Write XML.
UnexpectedValueException | Thrown if obj_id is not of type webr or no obj_id is given |
Definition at line 96 of file class.ilLPXmlWriter.php.
References addLPInformation(), buildHeader(), and init().
|
private |
Definition at line 16 of file class.ilLPXmlWriter.php.
|
private |
Definition at line 19 of file class.ilLPXmlWriter.php.
Referenced by getIncludeRefIds().
|
private |
Definition at line 18 of file class.ilLPXmlWriter.php.
Referenced by getTimestamp().
|
private |
Definition at line 20 of file class.ilLPXmlWriter.php.
Referenced by getTypeFilter().