ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Observer.php
Go to the documentation of this file.
1 <?php
2 
3 namespace ILIAS\BackgroundTasks;
4 
5 interface Observer
6 {
7 
16  public function notifyState($state);
17 
18 
28  public function notifyPercentage(Task $task, $percentage);
29 
30 
39  public function notifyCurrentTask(Task $task);
40 
41 
48  public function heartbeat();
49 }
notifyPercentage(Task $task, $percentage)
You can change the progress of a currently running task.
Created by PhpStorm.
heartbeat()
I&#39;m still alive! If your calculation takes a really long time don&#39;t forget to use the heartbeat...
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10
notifyState($state)
If the bucket goes into another state notify the observer.
notifyCurrentTask(Task $task)
If the current task changes notify the observer.