| @@ 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 |
|
| @@ 958-968 (lines=11) @@ | ||
| 955 | $deliveryDates = array(); |
|
| 956 | ||
| 957 | // 配送日数が設定されている |
|
| 958 | if ($deliveryDateFlag) { |
|
| 959 | $period = new \DatePeriod ( |
|
| 960 | new \DateTime($minDate.' day'), |
|
| 961 | new \DateInterval('P1D'), |
|
| 962 | new \DateTime($minDate + $this->appConfig['deliv_date_end_max'].' day') |
|
| 963 | ); |
|
| 964 | ||
| 965 | foreach ($period as $day) { |
|
| 966 | $deliveryDates[$day->format('Y/m/d')] = $day->format('Y/m/d'); |
|
| 967 | } |
|
| 968 | } |
|
| 969 | ||
| 970 | return $deliveryDates; |
|
| 971 | } |
|