PHP Класс Box\Spout\Reader\CSV\SheetIterator

Наследование: implements Box\Spout\Reader\IteratorInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$hasReadUniqueSheet Whether the unique "sheet" has already been read
$sheet The CSV unique "sheet"

Открытые методы

Метод Описание
__construct ( resource $filePointer, ReaderOptions $options, Box\Spout\Common\Helper\GlobalFunctionsHelper $globalFunctionsHelper )
current ( ) : Sheet Return the current element
end ( ) : void Cleans up what was created to iterate over the object.
key ( ) : integer Return the key of the current element
next ( ) : void Move forward to next element
rewind ( ) : void Rewind the Iterator to the first element
valid ( ) : boolean Checks if current position is valid

Описание методов

__construct() публичный Метод

public __construct ( resource $filePointer, ReaderOptions $options, Box\Spout\Common\Helper\GlobalFunctionsHelper $globalFunctionsHelper )
$filePointer resource
$options ReaderOptions
$globalFunctionsHelper Box\Spout\Common\Helper\GlobalFunctionsHelper

current() публичный Метод

Return the current element
public current ( ) : Sheet
Результат Sheet

end() публичный Метод

Cleans up what was created to iterate over the object.
public end ( ) : void
Результат void

key() публичный Метод

Return the key of the current element
public key ( ) : integer
Результат integer

next() публичный Метод

Move forward to next element
public next ( ) : void
Результат void

rewind() публичный Метод

Rewind the Iterator to the first element
public rewind ( ) : void
Результат void

valid() публичный Метод

Checks if current position is valid
public valid ( ) : boolean
Результат boolean

Описание свойств

$hasReadUniqueSheet защищенное свойство

Whether the unique "sheet" has already been read
protected $hasReadUniqueSheet

$sheet защищенное свойство

The CSV unique "sheet"
protected $sheet