Sgss_Collection_List_Iterator
Iterates the Sgss_Collection_List_Interface

Description

Implements:
Iterator (internal interface)
Author:
Matsuda Shota
Copyright:
(c) 2007-2008 Matsuda Shota
License:
http://creativecommons.org/licenses/GPL/2.0/
Located in:
/Collection/List/Iterator.php (line 40)

Class overview

Variable

protected Sgss_Collection_List_Interface $_list

List collection to be iterated

Methods

__construct (Sgss_Collection_List_Interface $list)

The constructor

mixed current ()
mixed key ()
mixed next ()
void rewind ()
boolean valid ()

Variable detail

$_list 

List collection to be iterated

Signature:
protected Sgss_Collection_List_Interface $_list


Method detail

__construct

The constructor

Parameters:
Signature:
public __construct (Sgss_Collection_List_Interface $list)


current

Specified by:
  • Iterator::current
Uses:
Sgss_Collection_List_Iterator::valid(), Sgss_Collection_List_Interface::get()
Used by:
Sgss_Collection_List_Iterator::next()
Related subject:
Iterator::current()
Signature:
public mixed current ()


key

Specified by:
  • Iterator::key
Related subject:
Iterator::key()
Signature:
public mixed key ()


next

Specified by:
  • Iterator::next
Uses:
Sgss_Collection_List_Iterator::current()
Related subject:
Iterator::next()
Signature:
public mixed next ()


rewind

Specified by:
  • Iterator::rewind
Related subject:
Iterator::rewind()
Signature:
public void rewind ()


valid

Specified by:
  • Iterator::valid
Uses:
Sgss_Collection_List_Interface::size()
Used by:
Sgss_Collection_List_Iterator::current()
Related subject:
Iterator::valid()
Signature:
public boolean valid ()