PHP Class Box\Spout\Reader\CSV\SheetIterator

Inheritance: implements Box\Spout\Reader\IteratorInterface
Afficher le fichier Open project: box/spout

Protected Properties

Свойство Type Description
$hasReadUniqueSheet Whether the unique "sheet" has already been read
$sheet The CSV unique "sheet"

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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

current() public méthode

Return the current element
public current ( ) : Sheet
Résultat Sheet

end() public méthode

Cleans up what was created to iterate over the object.
public end ( ) : void
Résultat void

key() public méthode

Return the key of the current element
public key ( ) : integer
Résultat integer

next() public méthode

Move forward to next element
public next ( ) : void
Résultat void

rewind() public méthode

Rewind the Iterator to the first element
public rewind ( ) : void
Résultat void

valid() public méthode

Checks if current position is valid
public valid ( ) : boolean
Résultat boolean

Property Details

$hasReadUniqueSheet protected_oe property

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

$sheet protected_oe property

The CSV unique "sheet"
protected $sheet