19declare(strict_types=1);
29 return 'exc_tutor_team_feedback';
42 $is_recipient = $this->
isRecipient($identification);
44 if ($object_id ===
null) {
50 if (
$DIC->access()->checkAccessOfUser($this->current_user,
'write',
'',
$ref_id)) {
54 $DIC->access()->checkAccessOfUser($this->current_user,
'read',
'',
$ref_id)) {
73 if ($object_id !==
null) {
75 $ref_id = array_shift($references);
78 return ilLink::_getLink(
$ref_id,
'exc');
87 "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;",
89 [$identification->
serialize(), $this->current_user]
91 if ($this->
database->fetchAssoc($r)) {
101 "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;",
107 return (isset(
$d->exc_id) ? (
int)
$d->exc_id :
null);
Class ResourceIdentification.
resolveObjectId(ResourceIdentification $identification)
isRecipient(ResourceIdentification $identification)
canBeAccessedByCurrentUser(ResourceIdentification $identification)
getLocationURIForResourceUsage(ResourceIdentification $identification)
resourceHasBeenDeleted(ResourceIdentification $identification)
static _getAllReferences(int $id)
get all reference ids for object ID