36 int $a_participant_id,
40 $this->participant_id = $a_participant_id;
41 $this->is_team = $a_is_team;
42 $this->ass_id = $a_ass_id;
43 $this->db = $DIC->database();
49 int $a_participant_id,
50 bool $a_is_team =
false 52 return new self($a_ass_id, $a_participant_id, $a_is_team);
57 $this->starting_timestamp = $a_val;
67 $this->individual_deadline = $a_val;
77 $this->requested = $a_val;
85 public function read(): void
90 "SELECT * FROM exc_idl " .
91 " WHERE ass_id = " . $this->db->quote($this->ass_id,
"integer") .
92 " AND member_id = " . $this->db->quote($this->participant_id,
"integer") .
93 " AND is_team = " . $this->db->quote($this->is_team,
"integer")
95 if ($rec = $this->db->fetchAssoc($set)) {
109 "ass_id" => array(
"integer", $this->ass_id),
110 "member_id" => array(
"integer", $this->participant_id),
111 "is_team" => array(
"integer", $this->is_team)
116 "requested" => array(
"integer", (
int) $this->
getRequested())
121 public function delete():
void 126 "DELETE FROM exc_idl " .
127 " WHERE ass_id = " . $this->db->quote($this->ass_id,
"integer") .
128 " AND member_id = " . $this->db->quote($this->participant_id,
"integer") .
129 " AND is_team = " . $this->db->quote($this->is_team,
"integer")
137 $ilDB = $DIC->database();
140 "DELETE FROM exc_idl " .
141 " WHERE ass_id = " .
$ilDB->quote($ass_id,
"integer")
156 $ilDB = $DIC->database();
159 $set =
$ilDB->query(
"SELECT * FROM exc_idl" .
160 " WHERE ass_id = " .
$ilDB->quote($a_ass_id,
"integer"));
161 while ($row =
$ilDB->fetchAssoc($set)) {
162 $res[] = array(
"member_id" => $row[
"member_id"],
163 "is_team" => $row[
"is_team"],
164 "starting_ts" => $row[
"starting_ts"]);
static deleteForAssignment(int $ass_id)
setStartingTimestamp(int $a_val)
setRequested(bool $a_val)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(int $a_ass_id, int $a_participant_id, bool $a_is_team)
static getStartingTimestamps(int $a_ass_id)
Get starting timestamp data for an assignment.
static getInstance(int $a_ass_id, int $a_participant_id, bool $a_is_team=false)
setIndividualDeadline(int $a_val)