ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
NonPersistingObserver.php
Go to the documentation of this file.
1 <?php
2 
4 
8 
17 {
18  protected $bucket;
19 
20 
21  public function __construct(Bucket $bucket)
22  {
23  $this->bucket = $bucket;
24  }
25 
26 
31  public function notifyState($state)
32  {
33  $this->bucket->heartbeat();
34  $this->bucket->setState($state);
35  }
36 
37 
43  public function notifyPercentage(Task $task, $percentage)
44  {
45  $this->bucket->heartbeat();
46  $this->bucket->setPercentage($task, $percentage);
47  }
48 
49 
53  public function notifyCurrentTask(Task $task)
54  {
55  $this->bucket->heartbeat();
56  $this->bucket->setCurrentTask($task);
57  }
58 
59 
66  public function heartbeat()
67  {
68  $this->bucket->heartbeat();
69  }
70 }
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10
heartbeat()
I&#39;m still alive! If your calculation takes a really long time don&#39;t forget to use the heartbeat...