40 $this->current_user = (
int) ($DIC->isDependencyAvailable(
'user')
41 ? $DIC->user()->getId()
48 return 'exc_instruction_files';
61 if ($object_id === null) {
68 if ($DIC->access()->checkAccessOfUser($this->current_user,
'read',
'', $ref_id)) {
87 if ($object_id !== null) {
89 $ref_id = array_shift($references);
92 return ilLink::_getLink(
$ref_id,
'exc');
100 $r = $this->database->queryF(
101 "SELECT exc_id, rcid FROM il_resource_rca JOIN exc_assignment ON exc_assignment.if_rcid = il_resource_rca.rcid WHERE il_resource_rca.rid = %s;",
105 $d = $this->database->fetchObject(
$r);
107 return (isset(
$d->exc_id) ? (
int)
$d->exc_id : null);
113 if ($this->database === null) {
114 $this->database = $DIC->database();
resourceHasBeenDeleted(ResourceIdentification $identification)
static _getAllReferences(int $id)
get all reference ids for object ID
getLocationURIForResourceUsage(ResourceIdentification $identification)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ResourceIdentification.
__construct(int $owner=6)
ilObjFileStakeholder constructor.
resolveObjectId(ResourceIdentification $identification)
canBeAccessedByCurrentUser(ResourceIdentification $identification)