ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ILIAS\Exercise\TutorFeedbackFile\TutorFeedbackFileObserver Class Reference
+ Inheritance diagram for ILIAS\Exercise\TutorFeedbackFile\TutorFeedbackFileObserver:
+ Collaboration diagram for ILIAS\Exercise\TutorFeedbackFile\TutorFeedbackFileObserver:

Public Member Functions

 __construct (protected InternalDomainService $domain, protected int $ass_id)
 
 getId ()
 Unique identifier of the implementing event-listener. More...
 
 update (Event $event, ?Data $data)
 
 updateFailed (\Throwable $e, Event $event, ?Data $data)
 
- Public Member Functions inherited from ILIAS\ResourceStorage\Events\Observer
 getId ()
 Unique identifier of the implementing event-listener. More...
 
 update (Event $event, ?Data $data)
 Recieves an event and handles it appropriately. More...
 
 updateFailed (\Throwable $e, Event $event, ?Data $data)
 Is called if your update method failed (Exception, Throwable). More...
 

Detailed Description

Definition at line 28 of file TutorFeedbackFileObserver.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Exercise\TutorFeedbackFile\TutorFeedbackFileObserver::__construct ( protected InternalDomainService  $domain,
protected int  $ass_id 
)

Definition at line 30 of file TutorFeedbackFileObserver.php.

33 {
34 }

Member Function Documentation

◆ getId()

ILIAS\Exercise\TutorFeedbackFile\TutorFeedbackFileObserver::getId ( )

Unique identifier of the implementing event-listener.

e.g. FQCN

Implements ILIAS\ResourceStorage\Events\Observer.

Definition at line 36 of file TutorFeedbackFileObserver.php.

36 : string
37 {
38 return "exc_feedback_file";
39 }

◆ update()

ILIAS\Exercise\TutorFeedbackFile\TutorFeedbackFileObserver::update ( Event  $event,
?Data  $data 
)

Definition at line 41 of file TutorFeedbackFileObserver.php.

41 : 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 }
$log
Definition: ltiresult.php:34

References $data, and $log.

◆ updateFailed()

ILIAS\Exercise\TutorFeedbackFile\TutorFeedbackFileObserver::updateFailed ( \Throwable  $e,
Event  $event,
?Data  $data 
)

Definition at line 51 of file TutorFeedbackFileObserver.php.

51 : void
52 {
53 // TODO: Implement updateFailed() method.
54 }

The documentation for this class was generated from the following file: