| @@ 384-396 (lines=13) @@ | ||
| 381 | /** |
|
| 382 | * @return string |
|
| 383 | */ |
|
| 384 | public function getUnitLabel() |
|
| 385 | { |
|
| 386 | switch($this->quantity_unit) |
|
| 387 | { |
|
| 388 | case 'D': |
|
| 389 | return absences_translate('day(s)'); |
|
| 390 | ||
| 391 | case 'H': |
|
| 392 | return absences_translate('hour(s)'); |
|
| 393 | } |
|
| 394 | ||
| 395 | return ''; |
|
| 396 | } |
|
| 397 | ||
| 398 | /** |
|
| 399 | * Start date year |
|
| @@ 93-102 (lines=10) @@ | ||
| 90 | * @param string $quantity_unit |
|
| 91 | * @return string |
|
| 92 | */ |
|
| 93 | protected function getUnit($quantity_unit) |
|
| 94 | { |
|
| 95 | switch($quantity_unit) |
|
| 96 | { |
|
| 97 | case 'D': return absences_translate('days'); |
|
| 98 | case 'H': return absences_translate('hours'); |
|
| 99 | } |
|
| 100 | ||
| 101 | return ''; |
|
| 102 | } |
|
| 103 | ||
| 104 | ||
| 105 | protected function setHeaders($filename) |
|