19 declare(strict_types=1);
36 $this->current_user = (
int) ($DIC->isDependencyAvailable(
'user')
37 ? $DIC->user()->getId()
44 return 'exc_tutor_feedback_zip';
57 if ($object_id === null) {
64 if ($DIC->access()->checkAccessOfUser($this->current_user,
'write',
'', $ref_id)) {
83 if ($object_id !== null) {
85 $ref_id = array_shift($references);
88 return ilLink::_getLink(
$ref_id,
'exc');
96 $r = $this->database->queryF(
97 "SELECT exc_id FROM exc_assignment ass, exc_multi_feedback mf ON (ass.id = mf.ass_id) WHERE mf.zip_rid = %s;",
101 $d = $this->database->fetchObject(
$r);
103 return (isset(
$d->exc_id) ? (
int)
$d->exc_id : null);
109 if ($this->database === null) {
110 $this->database = $DIC->database();
canBeAccessedByCurrentUser(ResourceIdentification $identification)
static _getAllReferences(int $id)
get all reference ids for object ID
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ResourceIdentification.
__construct(int $owner=6)
getLocationURIForResourceUsage(ResourceIdentification $identification)
resourceHasBeenDeleted(ResourceIdentification $identification)
resolveObjectId(ResourceIdentification $identification)