3 declare(strict_types=0);
27 $this->db = $DIC->database();
28 $this->add_header = $a_add_header;
38 $this->timestamp = $a_val;
52 $this->include_ref_ids = $a_val;
66 $this->type_filter = $a_val;
86 if ($this->add_header) {
97 protected function init(): void
105 $set = $this->db->query(
106 $q =
"SELECT * FROM ut_lp_marks " .
107 " WHERE status_changed >= " . $this->db->quote(
108 $this->getTimestamp(),
113 while ($rec = $this->db->fetchAssoc($set)) {
128 'UserId' => (
int) $rec[
"usr_id"],
129 'ObjId' => (
int) $rec[
"obj_id"],
130 'RefIds' => implode(
",", $ref_ids),
131 'Timestamp' => $rec[
"status_changed"],
132 'LPStatus' => (
int) $rec[
"status"]
static _getAllReferences(int $id)
get all reference ids for object ID
setTimestamp(string $a_val)
Set timestamp.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getTimestamp()
Get timestamp.
xmlEndTag(string $tag)
Writes an endtag.
XML writer learning progress.
getTypeFilter()
Get type filter.
xmlHeader()
Writes xml header.
setTypeFilter(array $a_val)
Set type filter.
__construct(Container $dic, ilPlugin $plugin)
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
xmlElement(string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
static _lookupType(int $id, bool $reference=false)
__construct(bool $a_add_header)
Constructor.
setIncludeRefIds(bool $a_val)