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})");
resetEnd($endRow=null)
(Re)Set the end row
rewind()
Rewind the iterator to the starting row.
resetStart($startRow=1)
(Re)Set the start row and the current row pointer
valid()
Indicate if more rows exist in the worksheet range of rows that we're iterating.
prev()
Set the iterator to its previous value.
__construct(PHPExcel_Worksheet $subject=null, $startRow=1, $endRow=null)
Create a new row iterator.
key()
Return the current iterator key.
current()
Return the current row in this worksheet.
seek($row=1)
Set the row pointer to the selected row.
next()
Set the iterator to its next value.