PHP Class Box\Spout\Reader\ODS\SheetIterator

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

Protected Properties

Свойство Type Description
$currentSheetIndex The index of the sheet being read (zero-based)
$escaper Used to unescape XML data
$filePath string Path of the file to be read
$hasFoundSheet Whether there are still at least a sheet to be read
$options Reader's current options
$xmlReader The XMLReader object that will help read sheet's XML data

Méthodes publiques

Méthode Description
__construct ( string $filePath, Box\Spout\Reader\ODS\ReaderOptions $options )
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 ( string $filePath, Box\Spout\Reader\ODS\ReaderOptions $options )
$filePath string Path of the file to be read
$options Box\Spout\Reader\ODS\ReaderOptions Reader's current options

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

$currentSheetIndex protected_oe property

The index of the sheet being read (zero-based)
protected $currentSheetIndex

$escaper protected_oe property

Used to unescape XML data
protected $escaper

$filePath protected_oe property

Path of the file to be read
protected string $filePath
Résultat string

$hasFoundSheet protected_oe property

Whether there are still at least a sheet to be read
protected $hasFoundSheet

$options protected_oe property

Reader's current options
protected $options

$xmlReader protected_oe property

The XMLReader object that will help read sheet's XML data
protected $xmlReader