34 $this->current_user = (
int) ($DIC->isDependencyAvailable(
'user')
35 ? $DIC->user()->getId()
42 return 'exc_sample_solution';
55 if ($object_id === null) {
62 if ($DIC->access()->checkAccessOfUser($this->current_user,
'read',
'', $ref_id)) {
81 if ($object_id !== null) {
83 $ref_id = array_shift($references);
86 return ilLink::_getLink(
$ref_id,
'exc');
94 $r = $this->database->queryF(
95 "SELECT exc_id FROM exc_assignment WHERE exc_assignment.solution_rid = %s;",
99 $d = $this->database->fetchObject(
$r);
101 return (isset(
$d->exc_id) ? (
int)
$d->exc_id : null);
107 if ($this->database === null) {
108 $this->database = $DIC->database();
static _getAllReferences(int $id)
get all reference ids for object ID
__construct(int $owner=6)
getLocationURIForResourceUsage(ResourceIdentification $identification)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
resolveObjectId(ResourceIdentification $identification)
resourceHasBeenDeleted(ResourceIdentification $identification)
Class ResourceIdentification.
canBeAccessedByCurrentUser(ResourceIdentification $identification)