ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
PHPExcel_Worksheet_RowIterator Class Reference
+ Inheritance diagram for PHPExcel_Worksheet_RowIterator:
+ Collaboration diagram for PHPExcel_Worksheet_RowIterator:

Public Member Functions

 __construct (PHPExcel_Worksheet $subject=null)
 Create a new row iterator.
 __destruct ()
 Destructor.
 rewind ()
 Rewind iterator.
 current ()
 Current PHPExcel_Worksheet_Row.
 key ()
 Current key.
 next ()
 Next value.
 valid ()
 More PHPExcel_Worksheet_Row instances available?

Private Attributes

 $_subject
 $_position = 1

Detailed Description

Definition at line 38 of file RowIterator.php.

Constructor & Destructor Documentation

PHPExcel_Worksheet_RowIterator::__construct ( PHPExcel_Worksheet  $subject = null)

Create a new row iterator.

Parameters
PHPExcel_Worksheet$subject

Definition at line 59 of file RowIterator.php.

{
// Set subject
$this->_subject = $subject;
}
PHPExcel_Worksheet_RowIterator::__destruct ( )

Destructor.

Definition at line 67 of file RowIterator.php.

{
unset($this->_subject);
}

Member Function Documentation

PHPExcel_Worksheet_RowIterator::current ( )

Current PHPExcel_Worksheet_Row.

Returns
PHPExcel_Worksheet_Row

Definition at line 83 of file RowIterator.php.

{
return new PHPExcel_Worksheet_Row($this->_subject, $this->_position);
}
PHPExcel_Worksheet_RowIterator::key ( )

Current key.

Returns
int

Definition at line 92 of file RowIterator.php.

References $_position.

{
}
PHPExcel_Worksheet_RowIterator::next ( )

Next value.

Definition at line 99 of file RowIterator.php.

References $_position.

PHPExcel_Worksheet_RowIterator::rewind ( )

Rewind iterator.

Definition at line 74 of file RowIterator.php.

{
$this->_position = 1;
}
PHPExcel_Worksheet_RowIterator::valid ( )

More PHPExcel_Worksheet_Row instances available?

Returns
boolean

Definition at line 108 of file RowIterator.php.

{
return $this->_position <= $this->_subject->getHighestRow();
}

Field Documentation

PHPExcel_Worksheet_RowIterator::$_position = 1
private

Definition at line 52 of file RowIterator.php.

Referenced by key(), and next().

PHPExcel_Worksheet_RowIterator::$_subject
private

Definition at line 45 of file RowIterator.php.


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