| @@ 173-183 (lines=11) @@ | ||
| 170 | $deliveryDurations = []; |
|
| 171 | ||
| 172 | // 配送日数が設定されている |
|
| 173 | if ($deliveryDurationFlag) { |
|
| 174 | $period = new \DatePeriod( |
|
| 175 | new \DateTime($minDate.' day'), |
|
| 176 | new \DateInterval('P1D'), |
|
| 177 | new \DateTime($minDate + $this->eccubeConfig['eccube_deliv_date_end_max'].' day') |
|
| 178 | ); |
|
| 179 | ||
| 180 | foreach ($period as $day) { |
|
| 181 | $deliveryDurations[$day->format('Y/m/d')] = $day->format('Y/m/d'); |
|
| 182 | } |
|
| 183 | } |
|
| 184 | ||
| 185 | $form = $event->getForm(); |
|
| 186 | $form |
|
| @@ 933-943 (lines=11) @@ | ||
| 930 | $deliveryDurations = []; |
|
| 931 | ||
| 932 | // 配送日数が設定されている |
|
| 933 | if ($deliveryDurationFlag) { |
|
| 934 | $period = new \DatePeriod( |
|
| 935 | new \DateTime($minDate.' day'), |
|
| 936 | new \DateInterval('P1D'), |
|
| 937 | new \DateTime($minDate + $this->eccubeConfig['eccube_deliv_date_end_max'].' day') |
|
| 938 | ); |
|
| 939 | ||
| 940 | foreach ($period as $day) { |
|
| 941 | $deliveryDurations[$day->format('Y/m/d')] = $day->format('Y/m/d'); |
|
| 942 | } |
|
| 943 | } |
|
| 944 | ||
| 945 | return $deliveryDurations; |
|
| 946 | } |
|