ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
TutorFeedbackFileObserver.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27
29{
30 public function __construct(
31 protected InternalDomainService $domain,
32 protected int $ass_id
33 ) {
34 }
35
36 public function getId(): string
37 {
38 return "exc_feedback_file";
39 }
40
41 public function update(Event $event, ?Data $data): void
42 {
43 $log = $this->domain->log();
44 $log->debug("Update observer called.");
45 $this->domain->assignment()->tutorFeedbackFile($this->ass_id)->sendNotification(
46 $data["rcid"],
47 $data["rid"]
48 );
49 }
50
51 public function updateFailed(\Throwable $e, Event $event, ?Data $data): void
52 {
53 // TODO: Implement updateFailed() method.
54 }
55
56}
getId()
Unique identifier of the implementing event-listener.
__construct(protected InternalDomainService $domain, protected int $ass_id)
$log
Definition: ltiresult.php:34