50 protected function __construct($a_ass_id, $a_participant_id, $a_is_team)
53 $this->participant_id = $a_participant_id;
54 $this->is_team = $a_is_team;
55 $this->ass_id = $a_ass_id;
56 $this->db = $DIC->database();
68 public static function getInstance($a_ass_id, $a_participant_id, $a_is_team =
false)
70 return new self($a_ass_id, $a_participant_id, $a_is_team);
80 $this->starting_timestamp = $a_val;
100 $this->individual_deadline = $a_val;
121 "SELECT * FROM exc_idl " .
122 " WHERE ass_id = " . $this->db->quote($this->ass_id,
"integer") .
123 " AND member_id = " . $this->db->quote($this->participant_id,
"integer") .
124 " AND is_team = " . $this->db->quote($this->is_team,
"integer")
126 $rec = $this->db->fetchAssoc($set);
142 "ass_id" => array(
"integer", $this->ass_id),
143 "member_id" => array(
"integer", $this->participant_id),
144 "is_team" => array(
"integer", $this->is_team)
156 public function delete()
161 "DELETE FROM exc_idl " .
162 " WHERE ass_id = " . $this->db->quote($this->ass_id,
"integer") .
163 " AND member_id = " . $this->db->quote($this->participant_id,
"integer") .
164 " AND is_team = " . $this->db->quote($this->is_team,
"integer")
181 $ilDB = $DIC->database();
184 $set =
$ilDB->query(
"SELECT * FROM exc_idl" .
185 " WHERE ass_id = " .
$ilDB->quote($a_ass_id,
"integer"));
187 $res[] = array(
"member_id" =>
$row[
"member_id"],
188 "is_team" =>
$row[
"is_team"],
189 "starting_ts" =>
$row[
"starting_ts"]);
getStartingTimestamp()
Get starting timestamp.
setStartingTimestamp($a_val)
Set starting timestamp.
foreach($_POST as $key=> $value) $res
getIndividualDeadline()
Get Individual Deadline.
static getInstance($a_ass_id, $a_participant_id, $a_is_team=false)
Get instance.
setIndividualDeadline($a_val)
Set Individual Deadline.
__construct($a_ass_id, $a_participant_id, $a_is_team)
ilExcIndividualDeadline constructor.
static getStartingTimestamps($a_ass_id)
Get starting timestamp data for an assignment.