ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
TutorFeedbackFileObserver.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27use ILIAS\ResourceStorage\Events\Throwable;
28
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}
getId()
Unique identifier of the implementing event-listener.
__construct(protected InternalDomainService $domain, protected int $ass_id)
$log
Definition: ltiresult.php:34