PHP Class Akeneo\Component\SpreadsheetParser\Csv\RowIterator

The following options are available : - length: the maximum length of read lines - delimiter: the CSV delimiter character - enclosure: the CSV enclosure character - escape: the CSV escape character - encoding: the encoding of the CSV file
Author: Antoine Guigan ([email protected])
Inheritance: implements Iterator
Show file Open project: akeneo-labs/spreadsheet-parser

Protected Properties

Property Type Description
$currentKey integer
$currentValue array
$fileHandle resource
$options array
$path string
$valid boolean

Public Methods

Method Description
__construct ( string $path, array $options ) Constructor
current ( )
key ( )
next ( )
rewind ( )
valid ( )

Protected Methods

Method Description
getCurrentEncoding ( ) : string Returns the server encoding
openResource ( ) Opens the file resource
setDefaultOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver ) Sets the default options

Method Details

__construct() public method

Constructor
public __construct ( string $path, array $options )
$path string
$options array

current() public method

public current ( )

getCurrentEncoding() protected method

Returns the server encoding
protected getCurrentEncoding ( ) : string
return string

key() public method

public key ( )

next() public method

public next ( )

openResource() protected method

Opens the file resource
protected openResource ( )

rewind() public method

public rewind ( )

setDefaultOptions() protected method

Sets the default options
protected setDefaultOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolver

valid() public method

public valid ( )

Property Details

$currentKey protected property

protected int $currentKey
return integer

$currentValue protected property

protected array $currentValue
return array

$fileHandle protected property

protected resource $fileHandle
return resource

$options protected property

protected array $options
return array

$path protected property

protected string $path
return string

$valid protected property

protected bool $valid
return boolean