ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilNotificationHandlerIterator.php
Go to the documentation of this file.
1 <?php
2 
4 {
5  private $items = array();
6  private $index = 0;
7 
8  public function __construct(array $items = array())
9  {
10  $this->items = $items;
11  }
12 
14  {
15  $this->items[] = $handler;
16  }
17 
22  public function current()
23  {
24  return $this->items[$this->index];
25  }
26 
31  public function key()
32  {
33  return $this->index;
34  }
35 
36  public function next()
37  {
38  $this->index++;
39  }
40 
41  public function rewind()
42  {
43  $this->index = 0;
44  }
45 
50  public function valid()
51  {
52  return $this->index < count($this->items);
53  }
54 }
Base class for notification handlers.
Create styles array
The data for the language used.
$handler