@@ 118-127 (lines=10) @@ | ||
115 | * @param string $quantity_unit |
|
116 | * @return string |
|
117 | */ |
|
118 | protected function getUnit($quantity_unit) |
|
119 | { |
|
120 | switch($quantity_unit) |
|
121 | { |
|
122 | case 'D': return absences_translate('days'); |
|
123 | case 'H': return absences_translate('hours'); |
|
124 | } |
|
125 | ||
126 | return ''; |
|
127 | } |
|
128 | ||
129 | ||
130 | protected function setHeaders($filename) |
@@ 385-397 (lines=13) @@ | ||
382 | /** |
|
383 | * @return string |
|
384 | */ |
|
385 | public function getUnitLabel() |
|
386 | { |
|
387 | switch($this->quantity_unit) |
|
388 | { |
|
389 | case 'D': |
|
390 | return absences_translate('day(s)'); |
|
391 | ||
392 | case 'H': |
|
393 | return absences_translate('hour(s)'); |
|
394 | } |
|
395 | ||
396 | return ''; |
|
397 | } |
|
398 | ||
399 | /** |
|
400 | * Start date year |