4 include_once
"./Services/Xml/classes/class.ilXmlWriter.php";
27 $this->add_header = $a_add_header;
28 parent::__construct();
38 $this->timestamp = $a_val;
58 $this->include_ref_ids = $a_val;
78 $this->type_filter = $a_val;
99 if ($this->add_header) {
144 $ilDB = $DIC[
'ilDB'];
149 $q =
"SELECT * FROM ut_lp_marks " .
150 " WHERE status_changed >= " .
$ilDB->quote($this->getTimestamp(),
"timestamp")
153 while ($rec =
$ilDB->fetchAssoc($set)) {
165 'UserId' => $rec[
"usr_id"],
166 'ObjId' => $rec[
"obj_id"],
167 'RefIds' => implode(
",", $ref_ids),
168 'Timestamp' => $rec[
"status_changed"],
169 'LPStatus' => $rec[
"status"]
buildHeader()
Build XML header.
xmlStartTag($tag, $attrs=null, $empty=false, $encode=true, $escape=true)
Writes a starttag.
__construct($a_add_header)
Constructor.
getTimestamp()
Get timestamp.
getIncludeRefIds()
Get include ref ids.
static _getAllReferences($a_id)
get all reference ids of object
xmlEndTag($tag)
Writes an endtag.
setTypeFilter($a_val)
Set type filter.
addLPInformation()
Add lp information as xml.
setIncludeRefIds($a_val)
Set include ref ids.
setTimestamp($a_val)
Set timestamp.
XML writer learning progress.
getTypeFilter()
Get type filter.
xmlHeader()
Writes xml header public.
static _lookupType($a_id, $a_reference=false)
lookup object type
xmlElement($tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
xmlClear()
clears xmlStr public