ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
MockObserver.php
Go to the documentation of this file.
1 <?php
2 
20 
23 
29 class 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 }
heartbeat()
I&#39;m still alive! If your calculation takes a really long time don&#39;t forget to use the heartbeat...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Job.php:19
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...