@@ 148-158 (lines=11) @@ | ||
145 | )) |
|
146 | ->fields($hours) |
|
147 | ->execute(); |
|
148 | } else { |
|
149 | db_merge($this->hour_table_no_prefix) |
|
150 | ->key(array( |
|
151 | 'unit_id' => $event->getUnitId(), |
|
152 | 'year' => $year, |
|
153 | 'month' => $month, |
|
154 | 'day' => substr($day, 1) |
|
155 | )) |
|
156 | ->fields($hours) |
|
157 | ->execute(); |
|
158 | } |
|
159 | } |
|
160 | } |
|
161 | } |
|
@@ 180-191 (lines=12) @@ | ||
177 | )) |
|
178 | ->fields($minutes) |
|
179 | ->execute(); |
|
180 | } else { |
|
181 | db_merge($this->minute_table_no_prefix) |
|
182 | ->key(array( |
|
183 | 'unit_id' => $event->getUnitId(), |
|
184 | 'year' => $year, |
|
185 | 'month' => $month, |
|
186 | 'day' => substr($day, 1), |
|
187 | 'hour' => substr($hour, 1) |
|
188 | )) |
|
189 | ->fields($minutes) |
|
190 | ->execute(); |
|
191 | } |
|
192 | } |
|
193 | } |
|
194 | } |