\PHPExcel_Worksheet_CellIterator

PHPExcel_Worksheet_CellIterator

Used to iterate rows in a PHPExcel_Worksheet

Summary

Methods
Properties
Constants
__construct()
__destruct()
rewind()
current()
key()
next()
valid()
getIterateOnlyExistingCells()
setIterateOnlyExistingCells()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_subject
$_rowIndex
$_position
$_onlyExistingCells
N/A

Properties

$_subject

$_subject : \PHPExcel_Worksheet

PHPExcel_Worksheet to iterate

Type

\PHPExcel_Worksheet

$_rowIndex

$_rowIndex : integer

Row index

Type

integer

$_position

$_position : integer

Current iterator position

Type

integer

$_onlyExistingCells

$_onlyExistingCells : boolean

Loop only existing cells

Type

boolean

Methods

__construct()

__construct(\PHPExcel_Worksheet  $subject = null, integer  $rowIndex = 1) 

Create a new cell iterator

Parameters

\PHPExcel_Worksheet $subject
integer $rowIndex

__destruct()

__destruct() 

Destructor

rewind()

rewind() 

Rewind iterator

current()

current() : \PHPExcel_Cell

Current PHPExcel_Cell

Returns

\PHPExcel_Cell

key()

key() : integer

Current key

Returns

integer

next()

next() 

Next value

valid()

valid() : boolean

Are there any more PHPExcel_Cell instances available?

Returns

boolean

getIterateOnlyExistingCells()

getIterateOnlyExistingCells() : boolean

Get loop only existing cells

Returns

boolean

setIterateOnlyExistingCells()

setIterateOnlyExistingCells(boolean  $value = true) 

Set the iterator to loop only existing cells

Parameters

boolean $value