19 declare(strict_types=0);
41 $this->db = $DIC->database();
42 $this->add_header = $a_add_header;
52 $this->timestamp = $a_val;
66 $this->include_ref_ids = $a_val;
80 $this->type_filter = $a_val;
100 if ($this->add_header) {
111 protected function init(): void
119 $set = $this->db->query(
120 $q =
"SELECT * FROM ut_lp_marks " .
121 " WHERE status_changed >= " . $this->db->quote(
122 $this->getTimestamp(),
127 while ($rec = $this->db->fetchAssoc($set)) {
142 'UserId' => (
int) $rec[
"usr_id"],
143 'ObjId' => (
int) $rec[
"obj_id"],
144 'RefIds' => implode(
",", $ref_ids),
145 'Timestamp' => $rec[
"status_changed"],
146 'LPStatus' => (
int) $rec[
"status"]
static _getAllReferences(int $id)
get all reference ids for object ID
setTimestamp(string $a_val)
Set timestamp.
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)