79 $this->_subject = $subject;
88 unset($this->_subject);
98 $this->_startRow = $startRow;
99 $this->
seek($startRow);
111 $this->_endRow = ($endRow) ? $endRow : $this->_subject->getHighestRow();
124 if (($row < $this->_startRow) || (
$row > $this->_endRow)) {
125 throw new PHPExcel_Exception(
"Row $row is out of range ({$this->_startRow} - {$this->_endRow})");
127 $this->_position =
$row;
168 if ($this->_position <= $this->_startRow) {
169 throw new PHPExcel_Exception(
"Row is already at the beginning of range ({$this->_startRow} - {$this->_endRow})");
An exception for terminatinating execution or to throw for unit testing.
current()
Return the current row in this worksheet.
valid()
Indicate if more rows exist in the worksheet range of rows that we're iterating.
__construct(PHPExcel_Worksheet $subject=null, $startRow=1, $endRow=null)
Create a new row iterator.
key()
Return the current iterator key.
next()
Set the iterator to its next value.
prev()
Set the iterator to its previous value.
rewind()
Rewind the iterator to the starting row.