ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\ResourceStorage\Events\Observer Interface Reference
+ Inheritance diagram for ILIAS\ResourceStorage\Events\Observer:
+ Collaboration diagram for ILIAS\ResourceStorage\Events\Observer:

Public Member Functions

 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

Author
Fabian Schmid fabia.nosp@m.n@sr.nosp@m..solu.nosp@m.tion.nosp@m.s

Definition at line 26 of file Observer.php.

Member Function Documentation

◆ getId()

ILIAS\ResourceStorage\Events\Observer::getId ( )

Unique identifier of the implementing event-listener.

e.g. FQCN

Implemented in ILIAS\Exercise\TutorFeedbackFile\TutorFeedbackFileObserver, and ILIAS\ResourceStorage\IRSSEventLogObserver.

Referenced by ILIAS\ResourceStorage\Events\Subject\detach().

+ Here is the caller graph for this function:

◆ update()

ILIAS\ResourceStorage\Events\Observer::update ( Event  $event,
?Data  $data 
)

Recieves an event and handles it appropriately.

◆ updateFailed()

ILIAS\ResourceStorage\Events\Observer::updateFailed ( \Throwable  $e,
Event  $event,
?Data  $data 
)

Is called if your update method failed (Exception, Throwable).

We suggest you log the error or something like this. You cannot throw an exception here, since this is catched again to ensure the other observers are called.


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