PHP Class Sonata\Exporter\Writer\GsaFeedWriter

Author: RĂ©mi Marseille ([email protected])
Inheritance: implements Sonata\Exporter\Writer\WriterInterface
Show file Open project: sonata-project/exporter Class Usage Examples

Public Methods

Method Description
__construct ( SplFileInfo $folder, string $dtd, string $datasource, string $feedtype ) Constructor.
close ( )
open ( )
write ( array $data )

Private Methods

Method Description
closeFeed ( ) Closes the current feed.
generateNewPart ( ) Generates a new file.

Method Details

__construct() public method

Constructor.
public __construct ( SplFileInfo $folder, string $dtd, string $datasource, string $feedtype )
$folder SplFileInfo The folder to store the generated feed(s)
$dtd string A DTD URL (something like http://gsa.example.com/gsafeed.dtd)
$datasource string A datasouce
$feedtype string A feedtype (full|incremental|metadata-and-url)

close() public method

public close ( )

open() public method

public open ( )

write() public method

public write ( array $data )
$data array