main/app/API/Transfer/Adapter/CsvAdapter.php
private function getCsvArraySerialized(array $elements, $path)
    {
        $data = [];

        foreach ($elements as $element) {
            $data[] = $this->getCsvSerialized($element, $path);
        }

        return implode($data, ',');
    }
private function getCsvArraySerialized(array $elements, $path)
    {
        $data = [];

        foreach ($elements as $element) {
            $data[] = $this->getCsvSerialized($element, $path);
        }

        return implode($data, ',');
    }
private function getCsvArraySerialized ( array $ elements , $ path ) { $ data = [ ] ; foreach ( $ elements as $ element ) { $ data [ ] = $ this -> getCsvSerialized ( $ element , $ path ) ; } return implode ( $ data , ',' ) ; }
Returns the serialized array for the csv export.

@param array  $elements - the array to serialize
@param string $path     - the property path inside the array

@return string
Returns the serialized array for the csv export .