ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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.

◆ key()

ilNotificationHandlerIterator::key ( )
Returns
integer

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

28 {
29 return $this->index;
30 }

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: