19 declare(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');
86 $r = $this->database->queryF(
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;",
91 if ($this->database->fetchAssoc(
$r)) {
100 $r = $this->database->queryF(
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;",
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();
static _getAllReferences(int $id)
get all reference ids for object ID
isRecipient(ResourceIdentification $identification)
getLocationURIForResourceUsage(ResourceIdentification $identification)
resolveObjectId(ResourceIdentification $identification)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Class ResourceIdentification.
resourceHasBeenDeleted(ResourceIdentification $identification)
canBeAccessedByCurrentUser(ResourceIdentification $identification)