public function PHPExcel_Worksheet_RowCellIterator::seek in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/RowCellIterator.php \PHPExcel_Worksheet_RowCellIterator::seek()
* Set the column pointer to the selected column * *
Parameters
string $column The column address to set the current pointer at:
Return value
PHPExcel_Worksheet_RowCellIterator
Throws
1 call to PHPExcel_Worksheet_RowCellIterator::seek()
- PHPExcel_Worksheet_RowCellIterator::resetStart in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet/ RowCellIterator.php - * (Re)Set the start column and the current column pointer * *
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet/ RowCellIterator.php, line 122
Class
- PHPExcel_Worksheet_RowCellIterator
- PHPExcel_Worksheet_RowCellIterator
Code
public function seek($column = 'A') {
$column = PHPExcel_Cell::columnIndexFromString($column) - 1;
if ($column < $this->_startColumn || $column > $this->_endColumn) {
throw new PHPExcel_Exception("Column {$column} is out of range ({$this->_startColumn} - {$this->_endColumn})");
}
elseif ($this->_onlyExistingCells && !$this->_subject
->cellExistsByColumnAndRow($column, $this->_rowIndex)) {
throw new PHPExcel_Exception('In "IterateOnlyExistingCells" mode and Cell does not exist');
}
$this->_position = $column;
return $this;
}