[TYPO3-core] RFC #11447: unwanted control fields exported in csv file

Christian Kuhn lolli at schwarzbu.ch
Tue Jun 1 00:42:09 CEST 2010


Steffen Kamper wrote:
> could you enlighten me what's done in this line?
> 
> +            // Reduce header row by control fields and add to csv output
> +        $this->addToCSV(array_combine($this->fieldArray, 
> $this->fieldArray));
> 
> how can this filter out control fields?

- array_combine produces an fieldName => fieldName key=>value array of 
header row.
- removeControlFieldsFromFieldRow in addToCSV() removes all rows where 
key = control field

Works imho ;)
Christian


More information about the TYPO3-team-core mailing list