\PHPExcel_Worksheet_ColumnCellIterator

PHPExcel_Worksheet_ColumnCellIterator

Copyright (c) 2006 - 2015 PHPExcel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Summary

Methods
Properties
Constants
__destruct()
getIterateOnlyExistingCells()
setIterateOnlyExistingCells()
__construct()
resetStart()
resetEnd()
seek()
rewind()
current()
key()
next()
prev()
valid()
No public properties found
No constants found
adjustForExistingOnlyRange()
$subject
$position
$onlyExistingCells
$columnIndex
$startRow
$endRow
N/A
No private methods found
No private properties found
N/A

Properties

$subject

$subject : \PHPExcel_Worksheet

PHPExcel_Worksheet to iterate

Type

PHPExcel_Worksheet —

$position

$position : mixed

Current iterator position

Type

mixed —

$onlyExistingCells

$onlyExistingCells : bool

Iterate only existing cells

Type

bool —

$columnIndex

$columnIndex : string

Column index

Type

string —

$startRow

$startRow : int

Start position

Type

int —

$endRow

$endRow : int

End position

Type

int —

Methods

__destruct()

__destruct() : mixed

Destructor

Returns

mixed —

getIterateOnlyExistingCells()

getIterateOnlyExistingCells() : bool

Get loop only existing cells

Returns

bool —

setIterateOnlyExistingCells()

setIterateOnlyExistingCells(bool  $value = true) : mixed

Set the iterator to loop only existing cells

Parameters

bool $value

Throws

\PHPExcel_Exception

Returns

mixed —

__construct()

__construct(\PHPExcel_Worksheet  $subject = null, string  $columnIndex = 'A', int  $startRow = 1, int  $endRow = null) : mixed

Create a new row iterator

Parameters

\PHPExcel_Worksheet $subject

The worksheet to iterate over

string $columnIndex

The column that we want to iterate

int $startRow

The row number at which to start iterating

int $endRow

Optionally, the row number at which to stop iterating

Returns

mixed —

resetStart()

resetStart(int  $startRow = 1) : \PHPExcel_Worksheet_ColumnCellIterator

(Re)Set the start row and the current row pointer

Parameters

int $startRow

The row number at which to start iterating

Throws

\PHPExcel_Exception

Returns

\PHPExcel_Worksheet_ColumnCellIterator —

resetEnd()

resetEnd(int  $endRow = null) : \PHPExcel_Worksheet_ColumnCellIterator

(Re)Set the end row

Parameters

int $endRow

The row number at which to stop iterating

Throws

\PHPExcel_Exception

Returns

\PHPExcel_Worksheet_ColumnCellIterator —

seek()

seek(int  $row = 1) : \PHPExcel_Worksheet_ColumnCellIterator

Set the row pointer to the selected row

Parameters

int $row

The row number to set the current pointer at

Throws

\PHPExcel_Exception

Returns

\PHPExcel_Worksheet_ColumnCellIterator —

rewind()

rewind() : mixed

Rewind the iterator to the starting row

Returns

mixed —

current()

current() : \PHPExcel_Worksheet_Row

Return the current cell in this worksheet column

Returns

\PHPExcel_Worksheet_Row —

key()

key() : int

Return the current iterator key

Returns

int —

next()

next() : mixed

Set the iterator to its next value

Returns

mixed —

prev()

prev() : mixed

Set the iterator to its previous value

Returns

mixed —

valid()

valid() : bool

Indicate if more rows exist in the worksheet range of rows that we're iterating

Returns

bool —

adjustForExistingOnlyRange()

adjustForExistingOnlyRange() : mixed

Validate start/end values for "IterateOnlyExistingCells" mode, and adjust if necessary

Throws

\PHPExcel_Exception

Returns

mixed —