/** * @param ArrayConverterInterface $arrayConverter * @param BufferFactory $bufferFactory * @param FlatItemBufferFlusher $flusher */ public function __construct(ArrayConverterInterface $arrayConverter, BufferFactory $bufferFactory, FlatItemBufferFlusher $flusher) { parent::__construct(); $this->arrayConverter = $arrayConverter; $this->bufferFactory = $bufferFactory; $this->flusher = $flusher; }
/** * @param string $header */ public function __construct($header = null) { parent::__construct(); $this->header = $header; }
/** * {@inheritdoc} */ public function getConfigurationFields() { $configuration = parent::getConfigurationFields(); $configuration = $configuration + ['header' => ['header' => null, 'options' => ['label' => 'pim_connector.export.header.label']]]; return $configuration; }
/** * {@inheritdoc} */ public function getConfigurationFields() { return array_merge(parent::getConfigurationFields(), ['delimiter' => ['options' => ['label' => 'pim_connector.export.delimiter.label', 'help' => 'pim_connector.export.delimiter.help']], 'enclosure' => ['options' => ['label' => 'pim_connector.export.enclosure.label', 'help' => 'pim_connector.export.enclosure.help']], 'withHeader' => ['type' => 'switch', 'options' => ['label' => 'pim_connector.export.withHeader.label', 'help' => 'pim_connector.export.withHeader.help']]]); }
/** * {@inheritdoc} */ public function getConfigurationFields() { $configuration = parent::getConfigurationFields(); $configuration = $configuration + ['header' => ['header' => null]]; return $configuration; }