|
@@ 343-352 (lines=10) @@
|
| 340 |
|
$day = substr($this->iterator->from, 0, 10); |
| 341 |
|
$planned = $entry->getDayPlannedPeriods($day); |
| 342 |
|
|
| 343 |
|
if (0 === count($planned)) { |
| 344 |
|
$workingPeriods = $entry->getDayWorkingPeriods($day); |
| 345 |
|
|
| 346 |
|
if (0 === count($workingPeriods)) { |
| 347 |
|
return bab_mktime($this->iterator->from); |
| 348 |
|
} |
| 349 |
|
|
| 350 |
|
$firstPeriod = reset($workingPeriods); |
| 351 |
|
return $firstPeriod->ts_begin; |
| 352 |
|
} |
| 353 |
|
|
| 354 |
|
$firstperiod = reset($planned); |
| 355 |
|
|
|
@@ 382-391 (lines=10) @@
|
| 379 |
|
$day = $end->getIsoDate(); |
| 380 |
|
$planned = $entry->getDayPlannedPeriods($day); |
| 381 |
|
|
| 382 |
|
if (0 === count($planned)) { |
| 383 |
|
$workingPeriods = $entry->getDayWorkingPeriods($day); |
| 384 |
|
|
| 385 |
|
if (0 === count($workingPeriods)) { |
| 386 |
|
return bab_mktime($this->iterator->to); |
| 387 |
|
} |
| 388 |
|
|
| 389 |
|
$lastPeriod = end($workingPeriods); |
| 390 |
|
return $lastPeriod->ts_end; |
| 391 |
|
} |
| 392 |
|
|
| 393 |
|
$lastperiod = end($planned); |
| 394 |
|
|