ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilNotificationHandlerIterator Class Reference
+ Inheritance diagram for ilNotificationHandlerIterator:
+ Collaboration diagram for ilNotificationHandlerIterator:

Public Member Functions

 __construct (array $items=array())
 
 addItem (ilNotificationHandler $handler)
 
 current ()
 
 key ()
 
 next ()
 
 rewind ()
 
 valid ()
 

Private Attributes

 $items = array()
 
 $index = 0
 

Detailed Description

Definition at line 3 of file class.ilNotificationHandlerIterator.php.

Constructor & Destructor Documentation

◆ __construct()

ilNotificationHandlerIterator::__construct ( array  $items = array())

Definition at line 8 of file class.ilNotificationHandlerIterator.php.

References $items.

Member Function Documentation

◆ addItem()

ilNotificationHandlerIterator::addItem ( ilNotificationHandler  $handler)

Definition at line 13 of file class.ilNotificationHandlerIterator.php.

References $handler.

14  {
15  $this->items[] = $handler;
16  }
$handler

◆ current()

ilNotificationHandlerIterator::current ( )
Returns
ilNotificationHandler

Definition at line 22 of file class.ilNotificationHandlerIterator.php.

References $index.

23  {
24  return $this->items[$this->index];
25  }

◆ key()

ilNotificationHandlerIterator::key ( )
Returns
integer

Definition at line 31 of file class.ilNotificationHandlerIterator.php.

References $index.

◆ next()

ilNotificationHandlerIterator::next ( )

Definition at line 36 of file class.ilNotificationHandlerIterator.php.

37  {
38  $this->index++;
39  }

◆ rewind()

ilNotificationHandlerIterator::rewind ( )

Definition at line 41 of file class.ilNotificationHandlerIterator.php.

42  {
43  $this->index = 0;
44  }

◆ valid()

ilNotificationHandlerIterator::valid ( )
Returns
boolean

Definition at line 50 of file class.ilNotificationHandlerIterator.php.

51  {
52  return $this->index < count($this->items);
53  }

Field Documentation

◆ $index

ilNotificationHandlerIterator::$index = 0
private

Definition at line 6 of file class.ilNotificationHandlerIterator.php.

Referenced by current(), and key().

◆ $items

ilNotificationHandlerIterator::$items = array()
private

Definition at line 5 of file class.ilNotificationHandlerIterator.php.

Referenced by __construct().


The documentation for this class was generated from the following file: