ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
CellIterator.php
Go to the documentation of this file.
1<?php
2
4
5use Iterator;
6
7abstract class CellIterator implements Iterator
8{
14 protected $worksheet;
15
21 protected $onlyExistingCells = false;
22
26 public function __destruct()
27 {
28 // @phpstan-ignore-next-line
29 $this->worksheet = null;
30 }
31
35 public function getIterateOnlyExistingCells(): bool
36 {
38 }
39
43 abstract protected function adjustForExistingOnlyRange();
44
48 public function setIterateOnlyExistingCells(bool $value): void
49 {
50 $this->onlyExistingCells = (bool) $value;
51
53 }
54}
An exception for terminatinating execution or to throw for unit testing.
adjustForExistingOnlyRange()
Validate start/end values for "IterateOnlyExistingCells" mode, and adjust if necessary.
getIterateOnlyExistingCells()
Get loop only existing cells.
setIterateOnlyExistingCells(bool $value)
Set the iterator to loop only existing cells.