fisharebest /
webtrees
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * webtrees: online genealogy |
||
| 5 | * Copyright (C) 2025 webtrees development team |
||
| 6 | * This program is free software: you can redistribute it and/or modify |
||
| 7 | * it under the terms of the GNU General Public License as published by |
||
| 8 | * the Free Software Foundation, either version 3 of the License, or |
||
| 9 | * (at your option) any later version. |
||
| 10 | * This program is distributed in the hope that it will be useful, |
||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
| 13 | * GNU General Public License for more details. |
||
| 14 | * You should have received a copy of the GNU General Public License |
||
| 15 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
||
| 16 | */ |
||
| 17 | |||
| 18 | declare(strict_types=1); |
||
| 19 | |||
| 20 | namespace Fisharebest\Webtrees\Module; |
||
| 21 | |||
| 22 | use Illuminate\Support\Collection; |
||
| 23 | |||
| 24 | class AustrianPresidents extends AbstractModule implements ModuleHistoricEventsInterface |
||
| 25 | { |
||
| 26 | use ModuleHistoricEventsTrait; |
||
| 27 | |||
| 28 | public function title(): string |
||
| 29 | { |
||
| 30 | return 'Bundespräsidenten Österreichs 🇦🇹'; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function isEnabledByDefault(): bool |
||
| 34 | { |
||
| 35 | return false; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return Collection<int,string> |
||
| 40 | */ |
||
| 41 | public function historicEventsAll(string $language_tag): Collection |
||
| 42 | { |
||
| 43 | switch ($language_tag) { |
||
| 44 | case 'de': |
||
| 45 | return new Collection([ |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 46 | "1 EVEN Karl Seitz\n2 TYPE Präsident des Staatsdirektoriums\n2 DATE FROM 30 OCT 1918 TO 09 DEC 1920", |
||
| 47 | "1 EVEN Michael Hainisch\n2 TYPE Bundespräsident\n2 DATE FROM 09 DEC 1920 TO 10 DEC 1928", |
||
| 48 | "1 EVEN Wilhelm Miklas\n2 TYPE Bundespräsident\n2 DATE FROM 10 DEC 1928 TO 12 MAR 1938", |
||
| 49 | "1 EVEN Karl Renner\n2 TYPE Bundespräsident\n2 DATE FROM 20 DEC 1945 TO 31 DEC 1950", |
||
| 50 | "1 EVEN Theodor Körner\n2 TYPE Bundespräsident\n2 DATE FROM 21 JUN 1951 TO 04 JAN 1957", |
||
| 51 | "1 EVEN Adolf Schärf\n2 TYPE Bundespräsident\n2 DATE FROM 22 MAY 1957 TO 28 FEB 1965", |
||
| 52 | "1 EVEN Franz Jonas\n2 TYPE Bundespräsident\n2 DATE FROM 09 JUN 1965 TO 24 APR 1974", |
||
| 53 | "1 EVEN Rudolf Kirchschläger\n2 TYPE Bundespräsident\n2 DATE FROM 08 JUL 1974 TO 08 JUL 1986", |
||
| 54 | "1 EVEN Kurt Waldheim\n2 TYPE Bundespräsident\n2 DATE FROM 08 JUL 1986 TO 08 JUL 1992", |
||
| 55 | "1 EVEN Thomas Klestil\n2 TYPE Bundespräsident\n2 DATE FROM 08 JUL 1992 TO 06 JUL 2004", |
||
| 56 | "1 EVEN Heinz Fischer\n2 TYPE Bundespräsident\n2 DATE FROM 08 JUL 2004 TO 08 JUL 2016", |
||
| 57 | "1 EVEN Alexander Van der Bellen\n2 TYPE Bundespräsident\n2 DATE FROM 26 JAN 2017", |
||
| 58 | ]); |
||
| 59 | |||
| 60 | default: |
||
| 61 | return new Collection(); |
||
| 62 | } |
||
| 63 | } |
||
| 64 | } |
||
| 65 |