ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
MockObserver.php
Go to the documentation of this file.
1<?php
2
20
23
29class MockObserver implements Observer
30{
34 public function notifyState(int $state): void
35 {
36 // Does nothing.
37 }
38
39 public function notifyPercentage(Task $task, int $percentage): void
40 {
41 // Does nothing.
42 }
43
44 public function notifyCurrentTask(Task $task): void
45 {
46 // Does nothing.
47 }
48
53 public function heartbeat(): void
54 {
55 // Does nothing.
56 }
57}
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.
heartbeat()
I'm still alive! If your calculation takes a really long time don't forget to use the heartbeat.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Job.php:19