19 declare(strict_types=1);
30 return 'exc_peer_rev_file';
43 if ($object_id ===
null) {
51 $DIC->access()->checkAccessOfUser($this->current_user,
'read',
'', $ref_id) ||
52 $DIC->access()->checkAccessOfUser($this->current_user,
'write',
'', $ref_id)) {
71 if ($object_id !==
null) {
73 $ref_id = array_shift($references);
76 return ilLink::_getLink(
$ref_id,
'exc');
84 $r = $this->database->queryF(
85 "SELECT ass_id FROM exc_crit_file WHERE rid = %s",
89 if ((
$d = $this->database->fetchObject(
$r)) !==
null) {
90 $r2 = $this->database->queryF(
91 "SELECT obj_id FROM exc_assignment WHERE ass_id = %s",
95 $d2 = $this->database->fetchObject($r2);
98 return (isset($d2->obj_id) ? (
int) $d2->obj_id :
null);
104 if ($this->database ===
null) {
105 $this->database = $DIC->database();
resolveObjectId(ResourceIdentification $identification)
static _getAllReferences(int $id)
get all reference ids for object ID
getLocationURIForResourceUsage(ResourceIdentification $identification)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Class ResourceIdentification.
canBeAccessedByCurrentUser(ResourceIdentification $identification)
resourceHasBeenDeleted(ResourceIdentification $identification)