PHP Class Sonata\Exporter\Source\AbstractXmlSourceIterator

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

Protected Properties

Property Type Description
$bufferedRow array
$columns string[]
$currentColumnIndex integer
$currentRow mixed
$currentRowEnded boolean
$currentRowIndex integer
$file resource
$filename string
$hasHeaders boolean | null
$parser resource
$position integer

Public Methods

Method Description
__construct ( string $filename, boolean $hasHeaders = true )
current ( )
key ( )
next ( )
rewind ( )
tagContent ( resource $parser, string $data ) Tag content handler.
tagEnd ( resource $parser, string $name ) End element handler.
tagStart ( resource $parser, string $name, array $attributes = [] ) Start element handler.
valid ( )

Protected Methods

Method Description
parseRow ( ) Parse until reached.
prepareCurrentRow ( ) Prepare the row to return.

Method Details

__construct() public method

public __construct ( string $filename, boolean $hasHeaders = true )
$filename string
$hasHeaders boolean

current() public method

public current ( )

key() public method

public key ( )

next() public method

public next ( )

parseRow() protected method

Parse until reached.
protected parseRow ( )

prepareCurrentRow() protected method

Prepare the row to return.
protected prepareCurrentRow ( )

rewind() public method

public rewind ( )

tagContent() abstract public method

Tag content handler.
abstract public tagContent ( resource $parser, string $data )
$parser resource
$data string

tagEnd() abstract public method

End element handler.
abstract public tagEnd ( resource $parser, string $name )
$parser resource
$name string

tagStart() abstract public method

Start element handler.
abstract public tagStart ( resource $parser, string $name, array $attributes = [] )
$parser resource
$name string
$attributes array

valid() public method

public valid ( )

Property Details

$bufferedRow protected property

protected array $bufferedRow
return array

$columns protected property

protected string[] $columns
return string[]

$currentColumnIndex protected property

protected int $currentColumnIndex
return integer

$currentRow protected property

protected mixed $currentRow
return mixed

$currentRowEnded protected property

protected bool $currentRowEnded
return boolean

$currentRowIndex protected property

protected int $currentRowIndex
return integer

$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

$parser protected property

protected resource $parser
return resource

$position protected property

protected int $position
return integer