PHP Class Akeneo\Component\SpreadsheetParser\Xlsx\RowIterator

The iterator returns arrays of results. Empty values are trimed from the right of the rows, and empty rows are skipped.
Author: Antoine Guigan ([email protected])
Inheritance: implements Iterator
Show file Open project: akeneo-labs/spreadsheet-parser

Protected Properties

Property Type Description
$columnIndexTransformer Akeneo\Component\SpreadsheetParser\Xlsx\ColumnIndexTransformer
$currentKey integer
$currentValue array
$options array
$path string
$rowBuilderFactory Akeneo\Component\SpreadsheetParser\Xlsx\RowBuilderFactory
$valid boolean
$valueTransformer ValueTransformer
$xml XMLReader

Public Methods

Method Description
__construct ( Akeneo\Component\SpreadsheetParser\Xlsx\RowBuilderFactory $rowBuilderFactory, Akeneo\Component\SpreadsheetParser\Xlsx\ColumnIndexTransformer $columnIndexTransformer, ValueTransformer $valueTransformer, string $path, array $options, Akeneo\Component\SpreadsheetParser\Xlsx\Archive $archive ) Constructor
current ( )
key ( )
next ( )
rewind ( )
valid ( )

Protected Methods

Method Description
getValue ( string $value ) : string Returns a normalized attribute value

Method Details

__construct() public method

Constructor
public __construct ( Akeneo\Component\SpreadsheetParser\Xlsx\RowBuilderFactory $rowBuilderFactory, Akeneo\Component\SpreadsheetParser\Xlsx\ColumnIndexTransformer $columnIndexTransformer, ValueTransformer $valueTransformer, string $path, array $options, Akeneo\Component\SpreadsheetParser\Xlsx\Archive $archive )
$rowBuilderFactory Akeneo\Component\SpreadsheetParser\Xlsx\RowBuilderFactory
$columnIndexTransformer Akeneo\Component\SpreadsheetParser\Xlsx\ColumnIndexTransformer
$valueTransformer ValueTransformer
$path string
$options array
$archive Akeneo\Component\SpreadsheetParser\Xlsx\Archive The Archive from which the path was extracted

current() public method

public current ( )

getValue() protected method

Returns a normalized attribute value
protected getValue ( string $value ) : string
$value string
return string

key() public method

public key ( )

next() public method

public next ( )

rewind() public method

public rewind ( )

valid() public method

public valid ( )

Property Details

$columnIndexTransformer protected property

protected ColumnIndexTransformer,Akeneo\Component\SpreadsheetParser\Xlsx $columnIndexTransformer
return Akeneo\Component\SpreadsheetParser\Xlsx\ColumnIndexTransformer

$currentKey protected property

protected int $currentKey
return integer

$currentValue protected property

protected array $currentValue
return array

$options protected property

protected array $options
return array

$path protected property

protected string $path
return string

$rowBuilderFactory protected property

protected RowBuilderFactory,Akeneo\Component\SpreadsheetParser\Xlsx $rowBuilderFactory
return Akeneo\Component\SpreadsheetParser\Xlsx\RowBuilderFactory

$valid protected property

protected bool $valid
return boolean

$valueTransformer protected property

protected ValueTransformer,Akeneo\Component\SpreadsheetParser\Xlsx $valueTransformer
return ValueTransformer

$xml protected property

protected XMLReader $xml
return XMLReader