| @@ 112-125 (lines=14) @@ | ||
| 109 | /** |
|
| 110 | * @return FormatInterface |
|
| 111 | */ |
|
| 112 | public function getDefaultExportFormat() |
|
| 113 | { |
|
| 114 | return new CsvFormat([ |
|
| 115 | CsvFormat::OPTION_DELIMITER => ',', |
|
| 116 | CsvFormat::OPTION_NEW_LINE => "\n", |
|
| 117 | CsvFormat::OPTION_QUOTE => "'", |
|
| 118 | CsvFormat::OPTION_NULL => 'NULL', |
|
| 119 | CsvFormat::OPTION_HEADER_ROW => 1, |
|
| 120 | CsvFormat::OPTION_ESCAPE => '\\', |
|
| 121 | CsvFormat::OPTION_ENCODING => 'UTF-8', |
|
| 122 | CsvFormat::OPTION_DOUBLE_QUOTE => false, |
|
| 123 | CsvFormat::OPTION_BOM => null, |
|
| 124 | ]); |
|
| 125 | } |
|
| 126 | ||
| 127 | /** |
|
| 128 | * @return FormatInterface |
|
| @@ 130-144 (lines=15) @@ | ||
| 127 | /** |
|
| 128 | * @return FormatInterface |
|
| 129 | */ |
|
| 130 | public function getDefaultImportFormat() |
|
| 131 | { |
|
| 132 | return new CsvFormat([ |
|
| 133 | CsvFormat::OPTION_DELIMITER => ',', |
|
| 134 | CsvFormat::OPTION_NEW_LINE => "\n", |
|
| 135 | CsvFormat::OPTION_QUOTE => '"', |
|
| 136 | CsvFormat::OPTION_ESCAPE => '\\', |
|
| 137 | CsvFormat::OPTION_NULL => '\\N', |
|
| 138 | CsvFormat::OPTION_HEADER_ROW => 0, |
|
| 139 | CsvFormat::OPTION_DATA_START => 1, |
|
| 140 | CsvFormat::OPTION_DOUBLE_QUOTE => false, |
|
| 141 | CsvFormat::OPTION_ENCODING => 'UTF-8', |
|
| 142 | CsvFormat::OPTION_BOM => null, |
|
| 143 | ]); |
|
| 144 | } |
|
| 145 | ||
| 146 | /** |
|
| 147 | * @param FormatInterface $format |
|
| @@ 120-133 (lines=14) @@ | ||
| 117 | /** |
|
| 118 | * @return FormatInterface |
|
| 119 | */ |
|
| 120 | public function getDefaultExportFormat() |
|
| 121 | { |
|
| 122 | return new CsvFormat([ |
|
| 123 | CsvFormat::OPTION_DELIMITER => ',', |
|
| 124 | CsvFormat::OPTION_NEW_LINE => "\n", |
|
| 125 | CsvFormat::OPTION_QUOTE => '"', |
|
| 126 | CsvFormat::OPTION_NULL => '\\N', |
|
| 127 | CsvFormat::OPTION_HEADER_ROW => -1, |
|
| 128 | CsvFormat::OPTION_ESCAPE => '\\', |
|
| 129 | CsvFormat::OPTION_ENCODING => 'UTF-8', |
|
| 130 | CsvFormat::OPTION_DOUBLE_QUOTE => false, |
|
| 131 | CsvFormat::OPTION_BOM => null, |
|
| 132 | ]); |
|
| 133 | } |
|
| 134 | ||
| 135 | /** |
|
| 136 | * @return FormatInterface |
|