Export/Exporter.php
private function generateFile($content, $chunkPath, array $options)
    {
        $data = new ContentData($content, $options);

        $this->outputGenerator->reset();
        $this->outputGenerator->startDocument($data);

        $contents = array();
        foreach ($data->contents as $contentTypes) {
            foreach ($contentTypes as $contentType) {
                $contents[] = $contentType;
            }
        }

        $this->contentListElementGenerator->generateElement($this->outputGenerator, $contents);

        unset($contents);

        $filePath = $this->fileSystemHelper->getDir() . $chunkPath;
        $this->fileSystemHelper->save($filePath, $this->outputGenerator->endDocument($data));

        unset($data);

        $this->logger->info(sprintf('Generating file: %s', $filePath));
    }
private function generateFile($content, $chunkPath, array $options)
    {
        $data = new ContentData($content, $options);

        $this->outputGenerator->reset();
        $this->outputGenerator->startDocument($data);

        $contents = array();
        foreach ($data->contents as $contentTypes) {
            foreach ($contentTypes as $contentType) {
                $contents[] = $contentType;
            }
        }

        $this->contentListElementGenerator->generateElement($this->outputGenerator, $contents);

        unset($contents);

        $filePath = $this->fileSystemHelper->getDir() . $chunkPath;
        $this->fileSystemHelper->save($filePath, $this->outputGenerator->endDocument($data));

        unset($data);

        $this->logger->info(sprintf('Generating file: %s', $filePath));
    }
private function generateFile ( $ content , $ chunkPath , array $ options ) { $ data = new ContentData ( $ content , $ options ) ; $ this -> outputGenerator -> reset ( ) ; $ this -> outputGenerator -> startDocument ( $ data ) ; $ contents = array ( ) ; foreach ( $ data -> contents as $ contentTypes ) { foreach ( $ contentTypes as $ contentType ) { $ contents [ ] = $ contentType ; } } $ this -> contentListElementGenerator -> generateElement ( $ this -> outputGenerator , $ contents ) ; unset ( $ contents ) ; $ filePath = $ this -> fileSystemHelper -> getDir ( ) . $ chunkPath ; $ this -> fileSystemHelper -> save ( $ filePath , $ this -> outputGenerator -> endDocument ( $ data ) ) ; unset ( $ data ) ; $ this -> logger -> info ( sprintf ( 'Generating file: %s' , $ filePath ) ) ; }
Generating export file.

@param array $content
@param string $chunkPath
@param array $options
Generating export file .