31 $this->ass_id = $a_ass_id;
32 $this->user_id = $a_user_id;
39 $this->notice = $a_value;
52 $this->returned_update =
true;
54 $this->returned = $a_value;
64 $this->solved = $a_value;
74 $this->status_time = $a_value;
84 if($a_value && $a_value != $this->sent)
88 $this->sent = $a_value;
98 $this->sent_time = $a_value;
108 if($a_value != $this->sent)
112 $this->feedback = $a_value;
122 $this->feedback_time = $a_value;
132 if($a_value != $this->status)
135 $this->status = $a_value;
136 $this->status_update =
true;
147 if($a_value != $this->mark)
151 $this->mark = $a_value;
173 $set = $ilDB->query(
"SELECT * FROM exc_mem_ass_status".
174 " WHERE ass_id = ".$ilDB->quote($this->ass_id,
"integer").
175 " AND usr_id = ".$ilDB->quote($this->user_id,
"integer"));
176 if($ilDB->numRows($set))
178 $row = $ilDB->fetchAssoc($set);
181 $this->notice =
$row[
"notice"];
182 $this->returned =
$row[
"returned"];
183 $this->solved =
$row[
"solved"];
184 $this->status_time =
$row[
"status_time"];
185 $this->sent =
$row[
"sent"];
186 $this->sent_time =
$row[
"sent_time"];
187 $this->feedback_time =
$row[
"feedback_time"];
188 $this->feedback =
$row[
"feedback"];
189 $this->status =
$row[
"status"];
190 $this->mark =
$row[
"mark"];
192 $this->db_exists =
true;
218 "ass_id" =>
array(
"integer", $this->ass_id)
219 ,
"usr_id" =>
array(
"integer", $this->user_id)
222 if(!$this->db_exists)
224 $fields = array_merge($keys, $fields);
225 $ilDB->insert(
"exc_mem_ass_status", $fields);
229 $ilDB->update(
"exc_mem_ass_status", $fields, $keys);
232 if($this->returned_update)
236 if($this->status_update)
247 $set = $ilDB->query(
"SELECT fb_cron, fb_date, fb_file".
248 " FROM exc_assignment".
249 " WHERE id = ".$ilDB->quote($this->ass_id,
"integer"));
250 $row = $ilDB->fetchAssoc($set);
251 if(
$row[
"fb_cron"] &&
255 include_once
"Modules/Exercise/classes/class.ilExAssignment.php";
262 include_once
"Modules/Exercise/classes/class.ilExAssignment.php";
273 return "scorm/passed.svg";
276 return "scorm/failed.svg";
279 return "scorm/not_attempted.svg";
290 $q =
"SELECT count(*) AS cnt".
291 " FROM exc_mem_ass_status".
292 " WHERE NOT sent_time IS NULL".
293 " AND ass_id = ".$ilDB->quote($a_ass_id,
"integer");
294 $set = $ilDB->query($q);
295 $rec = $ilDB->fetchAssoc($set);
296 return ($rec[
"cnt"] > 0);
Exercise assignment member status.
setFeedbackTime($a_value)
const FEEDBACK_DATE_SUBMISSION
static sendFeedbackNotifications($a_ass_id, $a_user_id=null)
static now()
Return current timestamp in Y-m-d H:i:s format.
static lookupAnyExerciseSent($a_ass_id)
Check whether exercise has been sent to any student per mail.
__construct($a_ass_id, $a_user_id)
Create styles array
The data for the language used.
updateUserStatus($a_user_id=0)
Update exercise status of user.