35 int $a_participant_id,
39 $this->participant_id = $a_participant_id;
40 $this->is_team = $a_is_team;
41 $this->ass_id = $a_ass_id;
42 $this->db = $DIC->database();
48 int $a_participant_id,
49 bool $a_is_team =
false 51 return new self($a_ass_id, $a_participant_id, $a_is_team);
56 $this->starting_timestamp = $a_val;
66 $this->individual_deadline = $a_val;
74 public function read(): void
79 "SELECT * FROM exc_idl " .
80 " WHERE ass_id = " . $this->db->quote($this->ass_id,
"integer") .
81 " AND member_id = " . $this->db->quote($this->participant_id,
"integer") .
82 " AND is_team = " . $this->db->quote($this->is_team,
"integer")
84 if ($rec = $this->db->fetchAssoc($set)) {
90 public function save(): void
97 "ass_id" => array(
"integer", $this->ass_id),
98 "member_id" => array(
"integer", $this->participant_id),
99 "is_team" => array(
"integer", $this->is_team)
108 public function delete():
void 113 "DELETE FROM exc_idl " .
114 " WHERE ass_id = " . $this->db->quote($this->ass_id,
"integer") .
115 " AND member_id = " . $this->db->quote($this->participant_id,
"integer") .
116 " AND is_team = " . $this->db->quote($this->is_team,
"integer")
131 $ilDB = $DIC->database();
134 $set =
$ilDB->query(
"SELECT * FROM exc_idl" .
135 " WHERE ass_id = " .
$ilDB->quote($a_ass_id,
"integer"));
136 while ($row =
$ilDB->fetchAssoc($set)) {
137 $res[] = array(
"member_id" => $row[
"member_id"],
138 "is_team" => $row[
"is_team"],
139 "starting_ts" => $row[
"starting_ts"]);
setStartingTimestamp(int $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)