ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 12 of file class.ilNotificationHandlerIterator.php.

12  {
13  $this->items[] = $handler;
14  }

◆ current()

ilNotificationHandlerIterator::current ( )
Returns
ilNotificationHandler

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

References $index.

20  {
21  return $this->items[$this->index];
22  }

◆ key()

ilNotificationHandlerIterator::key ( )
Returns
integer

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

References $index.

◆ next()

ilNotificationHandlerIterator::next ( )

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

32  {
33  $this->index++;
34  }

◆ rewind()

ilNotificationHandlerIterator::rewind ( )

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

36  {
37  $this->index = 0;
38  }

◆ valid()

ilNotificationHandlerIterator::valid ( )
Returns
boolean

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

44  {
45  return $this->index < count($this->items);
46  }

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: