19 declare(strict_types=1);
29 return 'exc_submission';
42 if ($object_id ===
null) {
50 $DIC->access()->checkAccessOfUser($this->current_user,
'read',
'', $ref_id) ||
51 $DIC->access()->checkAccessOfUser($this->current_user,
'write',
'', $ref_id)) {
70 if ($object_id !==
null) {
72 $ref_id = array_shift($references);
75 return ilLink::_getLink(
$ref_id,
'exc');
83 $r = $this->database->queryF(
84 "SELECT obj_id FROM exc_returned WHERE exc_returned.solution_rid = %s;",
88 $d = $this->database->fetchObject(
$r);
90 return (isset(
$d->obj_id) ? (
int)
$d->obj_id :
null);
96 if ($this->database ===
null) {
97 $this->database = $DIC->database();
static _getAllReferences(int $id)
get all reference ids for object ID
resourceHasBeenDeleted(ResourceIdentification $identification)
resolveObjectId(ResourceIdentification $identification)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Class ResourceIdentification.
getLocationURIForResourceUsage(ResourceIdentification $identification)
canBeAccessedByCurrentUser(ResourceIdentification $identification)