ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Observer.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\BackgroundTasks;
20
21interface 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}
notifyPercentage(Task $task, int $percentage)
You can change the progress of a currently running task.
heartbeat()
I'm still alive! If your calculation takes a really long time don't forget to use the heartbeat.
notifyCurrentTask(Task $task)
If the current task changes notify the observer.
notifyState(int $state)
If the bucket goes into another state notify the observer.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...