PHP Class Sonata\Exporter\Source\PropelCollectionSourceIterator

Author: Kévin Gomez ([email protected])
Inheritance: implements SourceIteratorInterface
Show file Open project: sonata-project/exporter

Protected Properties

Property Type Description
$collection PropelCollection
$dateTimeFormat default DateTime format
$iterator ArrayIterator
$propertyAccessor Symfony\Component\PropertyAccess\PropertyAccess
$propertyPaths array

Public Methods

Method Description
__construct ( PropelCollection $collection, array $fields, string $dateTimeFormat = 'r' )
current ( )
getDateTimeFormat ( ) : string
key ( )
next ( )
rewind ( )
setDateTimeFormat ( string $dateTimeFormat )
valid ( )

Protected Methods

Method Description
getValue ( $value ) : null | string

Method Details

__construct() public method

public __construct ( PropelCollection $collection, array $fields, string $dateTimeFormat = 'r' )
$collection PropelCollection
$fields array Fields to export
$dateTimeFormat string

current() public method

public current ( )

getDateTimeFormat() public method

public getDateTimeFormat ( ) : string
return string

getValue() protected method

protected getValue ( $value ) : null | string
$value
return null | string

key() public method

public key ( )

next() public method

public next ( )

rewind() public method

public rewind ( )

setDateTimeFormat() public method

public setDateTimeFormat ( string $dateTimeFormat )
$dateTimeFormat string

valid() public method

public valid ( )

Property Details

$collection protected property

protected PropelCollection $collection
return PropelCollection

$dateTimeFormat protected property

default DateTime format
protected $dateTimeFormat

$iterator protected property

protected ArrayIterator $iterator
return ArrayIterator

$propertyAccessor protected property

protected PropertyAccess,Symfony\Component\PropertyAccess $propertyAccessor
return Symfony\Component\PropertyAccess\PropertyAccess

$propertyPaths protected property

protected array $propertyPaths
return array