‪TYPO3CMS  ‪main
TYPO3\CMS\Core\IO\CsvStreamFilter Class Reference
Inheritance diagram for TYPO3\CMS\Core\IO\CsvStreamFilter:

Public Member Functions

 filter ($in, $out, &$consumed, $closing)

Static Public Member Functions

static applyStreamFilter ($stream, bool $LF=true)

Static Protected Member Functions

static registerStreamFilter ()
static buildStreamFilterModifier (string $sequence)

Protected Attributes

const NAME = 'csv.typo3'

Detailed Description

Inspired by https://csv.thephpleague.com/9.0/interoperability/enclose-field/

A unique sequence is added to relevant CSV field values in order to trigger enclosure in fputcsv. This stream filter is taking care of removing that sequence again when actually writing to stream.

Definition at line 26 of file CsvStreamFilter.php.

Member Function Documentation

◆ applyStreamFilter()

static TYPO3\CMS\Core\IO\CsvStreamFilter::applyStreamFilter (   $stream,
bool  $LF = true 

◆ buildStreamFilterModifier()

static TYPO3\CMS\Core\IO\CsvStreamFilter::buildStreamFilterModifier ( string  $sequence)

◆ filter()

TYPO3\CMS\Core\IO\CsvStreamFilter::filter (   $in,

◆ registerStreamFilter()

static TYPO3\CMS\Core\IO\CsvStreamFilter::registerStreamFilter ( )

Member Data Documentation


const TYPO3\CMS\Core\IO\CsvStreamFilter::NAME = 'csv.typo3'