ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
Observer.php
Go to the documentation of this file.
1<?php
2
4
5interface 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}
An exception for terminatinating execution or to throw for unit testing.
notifyPercentage(Task $task, $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($state)
If the bucket goes into another state notify the observer.
Created by PhpStorm.