ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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
 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 29 of file TutorFeedbackFileObserver.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 31 of file TutorFeedbackFileObserver.php.

34  {
35  }

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 37 of file TutorFeedbackFileObserver.php.

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

◆ update()

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

Definition at line 42 of file TutorFeedbackFileObserver.php.

References $log.

42  : 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  }
$log
Definition: result.php:32

◆ updateFailed()

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

Definition at line 52 of file TutorFeedbackFileObserver.php.

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

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