@@ 412-429 (lines=18) @@ | ||
409 | * |
|
410 | * @return float |
|
411 | */ |
|
412 | public function getPlannedDurationDays($begin = null, $end = null) |
|
413 | { |
|
414 | if (empty($this->plannedPeriods)) { |
|
415 | $this->loadPlannedPeriods(); |
|
416 | } |
|
417 | ||
418 | $total = 0.0; |
|
419 | ||
420 | foreach ($this->getPlannedPeriods() as $entryPeriod) { |
|
421 | $total += $entryPeriod->getDurationDays($begin, $end); |
|
422 | } |
|
423 | ||
424 | ||
425 | ||
426 | ||
427 | ||
428 | return $total; |
|
429 | } |
|
430 | ||
431 | ||
432 | /** |
|
@@ 440-453 (lines=14) @@ | ||
437 | * |
|
438 | * @return float |
|
439 | */ |
|
440 | public function getPlannedDurationHours($begin = null, $end = null) |
|
441 | { |
|
442 | if (empty($this->plannedPeriods)) { |
|
443 | $this->loadPlannedPeriods(); |
|
444 | } |
|
445 | ||
446 | $total = 0.0; |
|
447 | ||
448 | foreach ($this->getPlannedPeriods() as $entryPeriod) { |
|
449 | $total += $entryPeriod->getDurationHours($begin, $end); |
|
450 | } |
|
451 | ||
452 | return $total; |
|
453 | } |
|
454 | ||
455 | ||
456 | public function loadDefaultValues() |