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;
62 return $this->starting_timestamp;
67 $this->individual_deadline = $a_val;
72 return $this->individual_deadline;
77 $this->requested = $a_val;
82 return $this->requested;
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)) {
96 $this->setIndividualDeadline((
int) $rec[
"tstamp"]);
97 $this->setStartingTimestamp((
int) $rec[
"starting_ts"]);
98 $this->setRequested((
bool) $rec[
"requested"]);
109 "ass_id" => array(
"integer", $this->ass_id),
110 "member_id" => array(
"integer", $this->participant_id),
111 "is_team" => array(
"integer", $this->is_team)
114 "tstamp" => array(
"integer", $this->getIndividualDeadline()),
115 "starting_ts" => array(
"integer", $this->getStartingTimestamp()),
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")
140 "DELETE FROM exc_idl " .
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"]);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getStartingTimestamps(int $a_ass_id)
Get starting timestamp data for an assignment.
static deleteForAssignment(int $ass_id)
setStartingTimestamp(int $a_val)
__construct(int $a_ass_id, int $a_participant_id, bool $a_is_team)
setIndividualDeadline(int $a_val)
static getInstance(int $a_ass_id, int $a_participant_id, bool $a_is_team=false)
setRequested(bool $a_val)
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...