ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Observer.php
Go to the documentation of this file.
1 <?php
2 
19 namespace ILIAS\BackgroundTasks;
20 
21 interface Observer
22 {
27  public function notifyState(int $state): void;
28 
33  public function notifyPercentage(Task $task, int $percentage): void;
34 
39  public function notifyCurrentTask(Task $task): void;
40 
45  public function heartbeat(): void;
46 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
heartbeat()
I&#39;m still alive! If your calculation takes a really long time don&#39;t forget to use the heartbeat...
notifyState(int $state)
If the bucket goes into another state notify the observer.
notifyPercentage(Task $task, int $percentage)
You can change the progress of a currently running task.
notifyCurrentTask(Task $task)
If the current task changes notify the observer.