You are here

public function PHPExcel_Worksheet_ColumnCellIterator::seek in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnCellIterator.php \PHPExcel_Worksheet_ColumnCellIterator::seek()

* Set the row pointer to the selected row * *

Parameters

integer $row The row number to set the current pointer at:

Return value

PHPExcel_Worksheet_ColumnCellIterator

Throws

PHPExcel_Exception

1 call to PHPExcel_Worksheet_ColumnCellIterator::seek()
PHPExcel_Worksheet_ColumnCellIterator::resetStart in vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnCellIterator.php
* (Re)Set the start row and the current row pointer * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnCellIterator.php, line 120

Class

PHPExcel_Worksheet_ColumnCellIterator
PHPExcel_Worksheet_ColumnCellIterator

Code

public function seek($row = 1) {
  if ($row < $this->_startRow || $row > $this->_endRow) {
    throw new PHPExcel_Exception("Row {$row} is out of range ({$this->_startRow} - {$this->_endRow})");
  }
  elseif ($this->_onlyExistingCells && !$this->_subject
    ->cellExistsByColumnAndRow($this->_columnIndex, $row)) {
    throw new PHPExcel_Exception('In "IterateOnlyExistingCells" mode and Cell does not exist');
  }
  $this->_position = $row;
  return $this;
}