\PhpOffice\PhpSpreadsheet\WorksheetCellIterator

Summary

Methods
Properties
Constants
__destruct()
getIterateOnlyExistingCells()
setIterateOnlyExistingCells()
No public properties found
No constants found
adjustForExistingOnlyRange()
$worksheet
$onlyExistingCells
N/A
No private methods found
No private properties found
N/A

Properties

$worksheet

$worksheet : \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet

Worksheet to iterate.

Type

\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet

$onlyExistingCells

$onlyExistingCells : boolean

Iterate only existing cells.

Type

boolean

Methods

__destruct()

__destruct() 

Destructor.

getIterateOnlyExistingCells()

getIterateOnlyExistingCells() : boolean

Get loop only existing cells.

Returns

boolean

setIterateOnlyExistingCells()

setIterateOnlyExistingCells(boolean  $value) 

Set the iterator to loop only existing cells.

Parameters

boolean $value

Throws

\PhpOffice\PhpSpreadsheet\Exception

adjustForExistingOnlyRange()

adjustForExistingOnlyRange() 

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

Throws

\PhpOffice\PhpSpreadsheet\Exception