19 declare(strict_types=1);
36 $this->current_user = (
int) ($DIC->isDependencyAvailable(
'user')
37 ? $DIC->user()->getId()
44 return 'exc_tutor_team_feedback';
57 $is_recipient = $this->
isRecipient($identification);
59 if ($object_id === null) {
65 if ($DIC->access()->checkAccessOfUser($this->current_user,
'write',
'', $ref_id)) {
69 $DIC->access()->checkAccessOfUser($this->current_user,
'read',
'', $ref_id)) {
88 if ($object_id !== null) {
90 $ref_id = array_shift($references);
93 return ilLink::_getLink(
$ref_id,
'exc');
101 $r = $this->database->queryF(
102 "SELECT te.usr_id FROM il_resource_rca JOIN exc_team_data ON exc_team_data.feedback_rcid = il_resource_rca.rcid JOIN il_exc_team te ON te.id = exc_team_data.id WHERE il_resource_rca.rid = %s AND te.usr_id = %s;",
106 if ($this->database->fetchAssoc(
$r)) {
115 $r = $this->database->queryF(
116 "SELECT exc_id, rcid FROM il_resource_rca JOIN exc_team_data ON exc_team_data.feedback_rcid = il_resource_rca.rcid JOIN il_exc_team te ON te.id = exc_team_data.id JOIN exc_assignment ON (exc_assignment.id = exc_team_data.ass_id) WHERE il_resource_rca.rid = %s;",
120 $d = $this->database->fetchObject(
$r);
122 return (isset(
$d->exc_id) ? (
int)
$d->exc_id : null);
128 if ($this->database === null) {
129 $this->database = $DIC->database();
static _getAllReferences(int $id)
get all reference ids for object ID
__construct(int $owner=6)
isRecipient(ResourceIdentification $identification)
getLocationURIForResourceUsage(ResourceIdentification $identification)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
resolveObjectId(ResourceIdentification $identification)
Class ResourceIdentification.
resourceHasBeenDeleted(ResourceIdentification $identification)
canBeAccessedByCurrentUser(ResourceIdentification $identification)