27 $this->db = (is_null(
$db))
37 $q =
"SELECT user_id FROM " . self::TABLE_NAME .
38 " WHERE returned_id = " . $this->db->quote($submission_id,
"integer");
39 $usr_set = $this->db->query($q);
40 return $this->db->fetchAssoc($usr_set);
48 $query =
"SELECT * FROM " . self::TABLE_NAME .
49 " WHERE ass_id = " . $this->db->quote($ass_id,
"integer") .
50 " AND (filename IS NOT NULL OR atext IS NOT NULL)" .
51 " AND ts IS NOT NULL";
63 $this->db->manipulate(
"UPDATE " . self::TABLE_NAME .
64 " SET web_dir_access_time = " . $this->db->quote(
ilUtil::now(),
"timestamp") .
65 " WHERE ass_id = " . $this->db->quote($assignment_id,
"integer") .
66 " AND user_id = " . $this->db->quote($member_id,
"integer"));
An exception for terminatinating execution or to throw for unit testing.
hasSubmissions(int $ass_id)
Get number of submissions from assignment id.int
getUserId(int $submission_id)
Get User who submitted.int
__construct(ilDBInterface $db=null)
ilExcSubmissionRepository constructor.
updateWebDirAccessTime(int $assignment_id, int $member_id)
Update web_dir_access_time.
static now()
Return current timestamp in Y-m-d H:i:s format.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Submission repository Interface.
foreach($_POST as $key=> $value) $res