PHP Class Sonata\Exporter\Source\CsvSourceIterator

Author: Vincent Touzet ([email protected])
Inheritance: implements SourceIteratorInterface
Show file Open project: sonata-project/exporter Class Usage Examples

Protected Properties

Property Type Description
$columns array
$currentLine array
$delimiter string | null
$enclosure string | null
$escape string | null
$file resource
$filename string
$hasHeaders boolean | null
$lines array
$position integer

Public Methods

Method Description
__construct ( string $filename, string $delimiter = ',', string $enclosure = '"', string $escape = '\', boolean $hasHeaders = true )
current ( )
key ( )
next ( )
rewind ( )
valid ( )

Method Details

__construct() public method

public __construct ( string $filename, string $delimiter = ',', string $enclosure = '"', string $escape = '\', boolean $hasHeaders = true )
$filename string
$delimiter string
$enclosure string
$escape string
$hasHeaders boolean

current() public method

public current ( )

key() public method

public key ( )

next() public method

public next ( )

rewind() public method

public rewind ( )

valid() public method

public valid ( )

Property Details

$columns protected property

protected array $columns
return array

$currentLine protected property

protected array $currentLine
return array

$delimiter protected property

protected string|null $delimiter
return string | null

$enclosure protected property

protected string|null $enclosure
return string | null

$escape protected property

protected string|null $escape
return string | null

$file protected property

protected resource $file
return resource

$filename protected property

protected string $filename
return string

$hasHeaders protected property

protected bool|null $hasHeaders
return boolean | null

$lines protected property

protected array $lines
return array

$position protected property

protected int $position
return integer