ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
XML writer learning progress. More...
Public Member Functions | |
__construct ($a_add_header) | |
Constructor. More... | |
setTimestamp ($a_val) | |
Set timestamp. More... | |
getTimestamp () | |
Get timestamp. More... | |
setIncludeRefIds ($a_val) | |
Set include ref ids. More... | |
getIncludeRefIds () | |
Get include ref ids. More... | |
setTypeFilter ($a_val) | |
Set type filter. More... | |
getTypeFilter () | |
Get type filter. More... | |
write () | |
Write XML. More... | |
addLPInformation () | |
Add lp information as xml. More... | |
Public Member Functions inherited from ilXmlWriter | |
__construct ($version="1.0", $outEnc="utf-8", $inEnc="utf-8") | |
constructor More... | |
_ilXmlWriter () | |
destructor 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 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 public More... | |
Protected Member Functions | |
buildHeader () | |
Build XML header. More... | |
init () | |
Init xml writer. More... | |
Private Attributes | |
$add_header = true | |
$timestamp = "" | |
$include_ref_ids = false | |
$type_filter = array() | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilXmlWriter | |
static | _xmlEscapeData ($data) |
Escapes reserved characters. More... | |
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.
Definition at line 141 of file class.ilLPXmlWriter.php.
References $ilDB, ilObject\_getAllReferences(), ilObject\_lookupType(), array, 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().