ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
TutorFeedbackFileObserver.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Exercise\TutorFeedbackFile
;
22
23
use
ILIAS\ResourceStorage\Events\Event
;
24
use
ILIAS\ResourceStorage\Events\Data
;
25
use
ILIAS\ResourceStorage\Events\Observer
;
26
use
ILIAS\Exercise\InternalDomainService
;
27
use
ILIAS\ResourceStorage\Events\Throwable
;
28
29
class
TutorFeedbackFileObserver
implements
Observer
30
{
31
public
function
__construct
(
32
protected
InternalDomainService
$domain,
33
protected
int
$ass_id
34
) {
35
}
36
37
public
function
getId
(): string
38
{
39
return
"exc_feedback_file"
;
40
}
41
42
public
function
update
(
Event
$event, ?
Data
$data
): void
43
{
44
$log
= $this->domain->log();
45
$log
->debug(
"Update observer called."
);
46
$this->domain->assignment()->tutorFeedbackFile($this->ass_id)->sendNotification(
47
$data[
"rcid"
],
48
$data[
"rid"
]
49
);
50
}
51
52
public
function
updateFailed
(\
Throwable
$e
,
Event
$event, ?
Data
$data
): void
53
{
54
// TODO: Implement updateFailed() method.
55
}
56
57
}
$data
$data
Definition:
ltiregistration.php:29
ILIAS\Exercise\TutorFeedbackFile
Definition:
TutorFeedbackFileManager.php:21
$ass_id
int $ass_id
Definition:
trait.ilExAssignmentTypeGUIBase.php:37
ILIAS\Exercise\TutorFeedbackFile\TutorFeedbackFileObserver\getId
getId()
Unique identifier of the implementing event-listener.
Definition:
TutorFeedbackFileObserver.php:37
Data
ILIAS\ResourceStorage\Events\Observer
Definition:
Observer.php:26
Vendor\Package\$e
$e
Definition:
example_cleaned.php:49
InternalDomainService
Throwable
ILIAS\Exercise\TutorFeedbackFile\TutorFeedbackFileObserver\update
update(Event $event, ?Data $data)
Definition:
TutorFeedbackFileObserver.php:42
ILIAS\Exercise\TutorFeedbackFile\TutorFeedbackFileObserver
Definition:
TutorFeedbackFileObserver.php:29
$log
$log
Definition:
result.php:32
Observer
ILIAS\Exercise\InternalDomainService
Definition:
class.InternalDomainService.php:34
Data
ILIAS\ResourceStorage\Events\Event
Event
Definition:
Event.php:26
ILIAS\Exercise\TutorFeedbackFile\TutorFeedbackFileObserver\__construct
__construct(protected InternalDomainService $domain, protected int $ass_id)
Definition:
TutorFeedbackFileObserver.php:31
ILIAS\Exercise\TutorFeedbackFile\TutorFeedbackFileObserver\updateFailed
updateFailed(\Throwable $e, Event $event, ?Data $data)
Definition:
TutorFeedbackFileObserver.php:52
Throwable
components
ILIAS
Exercise
TutorFeedbackFile
TutorFeedbackFileObserver.php
Generated on Sun Aug 31 2025 23:02:55 for ILIAS by
1.8.13 (using
Doxyfile
)