You are here

public function PHPExcel_Worksheet_ColumnIterator::prev in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnIterator.php \PHPExcel_Worksheet_ColumnIterator::prev()

* Set the iterator to its previous value

Throws

PHPExcel_Exception

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnIterator.php, line 172

Class

PHPExcel_Worksheet_ColumnIterator
PHPExcel_Worksheet_ColumnIterator

Code

public function prev() {
  if ($this->_position <= $this->_startColumn) {
    throw new PHPExcel_Exception("Column is already at the beginning of range (" . PHPExcel_Cell::stringFromColumnIndex($this->_endColumn) . " - " . PHPExcel_Cell::stringFromColumnIndex($this->_endColumn) . ")");
  }
  --$this->_position;
}