ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
WorksheetIterator.php
Go to the documentation of this file.
1
<?
php
38
class
PHPExcel_WorksheetIterator
implements
Iterator
39
{
45
private
$_subject
;
46
52
private
$_position
= 0;
53
59
public
function
__construct
(
PHPExcel
$subject = null)
60
{
61
// Set subject
62
$this->_subject = $subject;
63
}
64
68
public
function
__destruct
()
69
{
70
unset($this->_subject);
71
}
72
76
public
function
rewind
()
77
{
78
$this->_position = 0;
79
}
80
86
public
function
current
()
87
{
88
return
$this->_subject->getSheet($this->_position);
89
}
90
96
public
function
key
()
97
{
98
return
$this->_position
;
99
}
100
104
public
function
next
()
105
{
106
++
$this->_position
;
107
}
108
114
public
function
valid
()
115
{
116
return
$this->_position < $this->_subject->getSheetCount();
117
}
118
}
PHPExcel_WorksheetIterator\__destruct
__destruct()
Destructor.
Definition:
WorksheetIterator.php:68
PHPExcel_WorksheetIterator\rewind
rewind()
Rewind iterator.
Definition:
WorksheetIterator.php:76
PHPExcel_WorksheetIterator\$_position
$_position
Definition:
WorksheetIterator.php:52
PHPExcel_WorksheetIterator\__construct
__construct(PHPExcel $subject=null)
Create a new worksheet iterator.
Definition:
WorksheetIterator.php:59
PHPExcel_WorksheetIterator\next
next()
Next value.
Definition:
WorksheetIterator.php:104
PHPExcel_WorksheetIterator\$_subject
$_subject
Definition:
WorksheetIterator.php:45
PHPExcel_WorksheetIterator\current
current()
Current PHPExcel_Worksheet.
Definition:
WorksheetIterator.php:86
PHPExcel_WorksheetIterator
Definition:
WorksheetIterator.php:38
Iterator
PHPExcel_WorksheetIterator\valid
valid()
More PHPExcel_Worksheet instances available?
Definition:
WorksheetIterator.php:114
PHPExcel_WorksheetIterator\key
key()
Current key.
Definition:
WorksheetIterator.php:96
PHPExcel
php
libs
composer
vendor
phpoffice
phpexcel
Classes
PHPExcel
WorksheetIterator.php
Generated on Fri Jan 17 2025 19:00:54 for ILIAS by
1.8.13 (using
Doxyfile
)