ILIAS
release_8 Revision v8.19
|
XML writer learning progress. More...
Public Member Functions | |
__construct (bool $a_add_header) | |
Constructor. More... | |
setTimestamp (string $a_val) | |
Set timestamp. More... | |
getTimestamp () | |
Get timestamp. More... | |
setIncludeRefIds (bool $a_val) | |
getIncludeRefIds () | |
setTypeFilter (array $a_val) | |
Set type filter. More... | |
getTypeFilter () | |
Get type filter. More... | |
write () | |
Write XML. More... | |
addLPInformation () | |
![]() | |
__construct (string $version="1.0", string $outEnc="utf-8", string $inEnc="utf-8") | |
xmlSetDtdDef (string $dtdDef) | |
Sets dtd definition. More... | |
xmlSetGenCmt (string $genCmt) | |
Sets generated comment. More... | |
xmlFormatData (string $data) | |
Indents text for better reading. More... | |
xmlHeader () | |
Writes xml header. More... | |
xmlStartTag (string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true) | |
Writes a starttag. More... | |
xmlEndTag (string $tag) | |
Writes an endtag. More... | |
xmlData (string $data, bool $encode=true, bool $escape=true) | |
Writes data. More... | |
xmlElement (string $tag, $attrs=null, $data=null, $encode=true, $escape=true) | |
Writes a basic element (no children, just textual content) More... | |
xmlDumpFile (string $file, bool $format=true) | |
Dumps xml document from memory into a file. More... | |
xmlDumpMem (bool $format=true) | |
Returns xml document from memory. More... | |
appendXML (string $a_str) | |
append xml string to document More... | |
xmlClear () | |
clears xmlStr More... | |
Protected Member Functions | |
buildHeader () | |
init () | |
Protected Attributes | |
ilDBInterface | $db |
Private Attributes | |
bool | $add_header = true |
string | $timestamp = "" |
bool | $include_ref_ids = false |
array | $type_filter = array() |
XML writer learning progress.
Definition at line 11 of file class.ilLPXmlWriter.php.
ilLPXmlWriter::__construct | ( | bool | $a_add_header | ) |
Constructor.
Definition at line 23 of file class.ilLPXmlWriter.php.
References $DIC, and ILIAS\GlobalScreen\Provider\__construct().
ilLPXmlWriter::addLPInformation | ( | ) |
Definition at line 102 of file class.ilLPXmlWriter.php.
References ilObject\_getAllReferences(), ilObject\_lookupType(), getIncludeRefIds(), getTypeFilter(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by write().
|
protected |
Definition at line 92 of file class.ilLPXmlWriter.php.
References ilXmlWriter\xmlHeader().
Referenced by write().
ilLPXmlWriter::getIncludeRefIds | ( | ) |
Definition at line 55 of file class.ilLPXmlWriter.php.
References $include_ref_ids.
Referenced by addLPInformation().
ilLPXmlWriter::getTimestamp | ( | ) |
Get timestamp.
Definition at line 45 of file class.ilLPXmlWriter.php.
References $timestamp.
ilLPXmlWriter::getTypeFilter | ( | ) |
Get type filter.
Definition at line 73 of file class.ilLPXmlWriter.php.
References $type_filter.
Referenced by addLPInformation().
|
protected |
Definition at line 97 of file class.ilLPXmlWriter.php.
References ilXmlWriter\xmlClear().
Referenced by write().
ilLPXmlWriter::setIncludeRefIds | ( | bool | $a_val | ) |
Definition at line 50 of file class.ilLPXmlWriter.php.
ilLPXmlWriter::setTimestamp | ( | string | $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 | ( | array | $a_val | ) |
ilLPXmlWriter::write | ( | ) |
Write XML.
UnexpectedValueException | Thrown if obj_id is not of type webr or no obj_id is given |
Definition at line 83 of file class.ilLPXmlWriter.php.
References addLPInformation(), buildHeader(), and init().
|
private |
Definition at line 13 of file class.ilLPXmlWriter.php.
|
protected |
Definition at line 18 of file class.ilLPXmlWriter.php.
|
private |
Definition at line 15 of file class.ilLPXmlWriter.php.
Referenced by getIncludeRefIds().
|
private |
Definition at line 14 of file class.ilLPXmlWriter.php.
Referenced by getTimestamp().
|
private |
Definition at line 16 of file class.ilLPXmlWriter.php.
Referenced by getTypeFilter().