ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
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

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

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

References $items.

{
$this->items = $items;
}

Member Function Documentation

ilNotificationHandlerIterator::addItem ( ilNotificationHandler  $handler)

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

{
$this->items[] = $handler;
}
ilNotificationHandlerIterator::current ( )
Returns
ilNotificationHandler

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

References $index.

{
return $this->items[$this->index];
}
ilNotificationHandlerIterator::key ( )
Returns
integer

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

References $index.

{
return $this->index;
}
ilNotificationHandlerIterator::next ( )

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

{
$this->index++;
}
ilNotificationHandlerIterator::rewind ( )

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

{
$this->index = 0;
}
ilNotificationHandlerIterator::valid ( )
Returns
boolean

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

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

Field Documentation

ilNotificationHandlerIterator::$index = 0
private

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

Referenced by current(), and key().

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: