| @@ 157-167 (lines=11) @@ | ||
| 154 | $deliveryDates = array(); |
|
| 155 | ||
| 156 | // 配送日数が設定されている |
|
| 157 | if ($deliveryDateFlag) { |
|
| 158 | $period = new \DatePeriod ( |
|
| 159 | new \DateTime($minDate.' day'), |
|
| 160 | new \DateInterval('P1D'), |
|
| 161 | new \DateTime($minDate + $this->appConfig['deliv_date_end_max'].' day') |
|
| 162 | ); |
|
| 163 | ||
| 164 | foreach ($period as $day) { |
|
| 165 | $deliveryDates[$day->format('Y/m/d')] = $day->format('Y/m/d'); |
|
| 166 | } |
|
| 167 | } |
|
| 168 | ||
| 169 | $form = $event->getForm(); |
|
| 170 | $form |
|
| @@ 1119-1129 (lines=11) @@ | ||
| 1116 | $deliveryDates = array(); |
|
| 1117 | ||
| 1118 | // 配送日数が設定されている |
|
| 1119 | if ($deliveryDateFlag) { |
|
| 1120 | $period = new \DatePeriod ( |
|
| 1121 | new \DateTime($minDate.' day'), |
|
| 1122 | new \DateInterval('P1D'), |
|
| 1123 | new \DateTime($minDate + $this->appConfig['deliv_date_end_max'].' day') |
|
| 1124 | ); |
|
| 1125 | ||
| 1126 | foreach ($period as $day) { |
|
| 1127 | $deliveryDates[$day->format('Y/m/d')] = $day->format('Y/m/d'); |
|
| 1128 | } |
|
| 1129 | } |
|
| 1130 | ||
| 1131 | return $deliveryDates; |
|
| 1132 | ||