| @@ 150-160 (lines=11) @@ | ||
| 147 | $deliveryDates = array(); |
|
| 148 | ||
| 149 | // 配送日数が設定されている |
|
| 150 | if ($deliveryDateFlag) { |
|
| 151 | $period = new \DatePeriod ( |
|
| 152 | new \DateTime($minDate.' day'), |
|
| 153 | new \DateInterval('P1D'), |
|
| 154 | new \DateTime($minDate + $this->appConfig['deliv_date_end_max'].' day') |
|
| 155 | ); |
|
| 156 | ||
| 157 | foreach ($period as $day) { |
|
| 158 | $deliveryDates[$day->format('Y/m/d')] = $day->format('Y/m/d'); |
|
| 159 | } |
|
| 160 | } |
|
| 161 | ||
| 162 | $form = $event->getForm(); |
|
| 163 | $form |
|
| @@ 1114-1124 (lines=11) @@ | ||
| 1111 | $deliveryDates = array(); |
|
| 1112 | ||
| 1113 | // 配送日数が設定されている |
|
| 1114 | if ($deliveryDateFlag) { |
|
| 1115 | $period = new \DatePeriod ( |
|
| 1116 | new \DateTime($minDate.' day'), |
|
| 1117 | new \DateInterval('P1D'), |
|
| 1118 | new \DateTime($minDate + $this->appConfig['deliv_date_end_max'].' day') |
|
| 1119 | ); |
|
| 1120 | ||
| 1121 | foreach ($period as $day) { |
|
| 1122 | $deliveryDates[$day->format('Y/m/d')] = $day->format('Y/m/d'); |
|
| 1123 | } |
|
| 1124 | } |
|
| 1125 | ||
| 1126 | return $deliveryDates; |
|
| 1127 | ||