| @@ 237-255 (lines=19) @@ | ||
| 234 | ||
| 235 | // データ行の出力. |
|
| 236 | $app['eccube.service.csv.export']->setExportQueryBuilder($qb); |
|
| 237 | $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) { |
|
| 238 | ||
| 239 | $Csvs = $csvService->getCsvs(); |
|
| 240 | ||
| 241 | /** @var $Customer \Eccube\Entity\Customer */ |
|
| 242 | $Customer = $entity; |
|
| 243 | ||
| 244 | $row = array(); |
|
| 245 | ||
| 246 | // CSV出力項目と合致するデータを取得. |
|
| 247 | foreach ($Csvs as $Csv) { |
|
| 248 | // 会員データを検索. |
|
| 249 | $row[] = $csvService->getData($Csv, $Customer); |
|
| 250 | } |
|
| 251 | ||
| 252 | //$row[] = number_format(memory_get_usage(true)); |
|
| 253 | // 出力. |
|
| 254 | $csvService->fputcsv($row); |
|
| 255 | }); |
|
| 256 | }); |
|
| 257 | ||
| 258 | $now = new \DateTime(); |
|
| @@ 215-231 (lines=17) @@ | ||
| 212 | ||
| 213 | // データ行の出力. |
|
| 214 | $app['eccube.service.csv.export']->setExportQueryBuilder($qb); |
|
| 215 | $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) { |
|
| 216 | ||
| 217 | $Csvs = $csvService->getCsvs(); |
|
| 218 | ||
| 219 | /** @var $Category \Eccube\Entity\Category */ |
|
| 220 | $Category = $entity; |
|
| 221 | ||
| 222 | // CSV出力項目と合致するデータを取得. |
|
| 223 | $row = array(); |
|
| 224 | foreach ($Csvs as $Csv) { |
|
| 225 | $row[] = $csvService->getData($Csv, $Category); |
|
| 226 | } |
|
| 227 | ||
| 228 | //$row[] = number_format(memory_get_usage(true)); |
|
| 229 | // 出力. |
|
| 230 | $csvService->fputcsv($row); |
|
| 231 | }); |
|
| 232 | }); |
|
| 233 | ||
| 234 | $now = new \DateTime(); |
|