xref: /webtrees/app/Elements/GovIdType.php (revision 5a8afed46297e8105e3e5a33ce37e6a8e88bc79d)
172ef38edSGreg Roach<?php
272ef38edSGreg Roach
372ef38edSGreg Roach/**
472ef38edSGreg Roach * webtrees: online genealogy
5*d11be702SGreg Roach * Copyright (C) 2023 webtrees development team
672ef38edSGreg Roach * This program is free software: you can redistribute it and/or modify
772ef38edSGreg Roach * it under the terms of the GNU General Public License as published by
872ef38edSGreg Roach * the Free Software Foundation, either version 3 of the License, or
972ef38edSGreg Roach * (at your option) any later version.
1072ef38edSGreg Roach * This program is distributed in the hope that it will be useful,
1172ef38edSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
1272ef38edSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1372ef38edSGreg Roach * GNU General Public License for more details.
1472ef38edSGreg Roach * You should have received a copy of the GNU General Public License
1572ef38edSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>.
1672ef38edSGreg Roach */
1772ef38edSGreg Roach
1872ef38edSGreg Roachdeclare(strict_types=1);
1972ef38edSGreg Roach
2072ef38edSGreg Roachnamespace Fisharebest\Webtrees\Elements;
2172ef38edSGreg Roach
2272ef38edSGreg Roachuse Fisharebest\Webtrees\I18N;
2372ef38edSGreg Roach
2410e06497SGreg Roachuse function is_int;
2510e06497SGreg Roach
2672ef38edSGreg Roach/**
2772ef38edSGreg Roach * GOV ID, for TYPE_OF_LOCATION
2872ef38edSGreg Roach */
2972ef38edSGreg Roachclass GovIdType extends AbstractElement
3072ef38edSGreg Roach{
3172ef38edSGreg Roach    /**
3272ef38edSGreg Roach     * A list of controlled values for this element
3372ef38edSGreg Roach     *
3472ef38edSGreg Roach     * @return array<int|string,string>
3572ef38edSGreg Roach     */
3672ef38edSGreg Roach    public function values(): array
3772ef38edSGreg Roach    {
3872ef38edSGreg Roach        $values = [
3972ef38edSGreg Roach            ''  => '',
4072ef38edSGreg Roach            1   => 'Amt',
4172ef38edSGreg Roach            2   => 'Amtsbezirk',
4272ef38edSGreg Roach            3   => 'Magistrates’ Court',
4372ef38edSGreg Roach            4   => 'Bauerschaft',
4472ef38edSGreg Roach            5   => 'district',
4572ef38edSGreg Roach            6   => 'diocese',
4672ef38edSGreg Roach            7   => 'federal state',
4772ef38edSGreg Roach            8   => 'castle',
4872ef38edSGreg Roach            9   => 'deanery',
4972ef38edSGreg Roach            10  => 'Departement',
5072ef38edSGreg Roach            11  => 'diocese',
5172ef38edSGreg Roach            12  => 'Dompfarrei',
5272ef38edSGreg Roach            13  => 'filial church',
5372ef38edSGreg Roach            14  => 'Flecken',
5472ef38edSGreg Roach            15  => 'field name',
5572ef38edSGreg Roach            16  => 'free state',
5672ef38edSGreg Roach            17  => 'building',
5772ef38edSGreg Roach            18  => 'municipality',
5872ef38edSGreg Roach            19  => 'Gerichtsbezirk',
5972ef38edSGreg Roach            20  => 'countship',
6072ef38edSGreg Roach            21  => 'manor (building)',
6172ef38edSGreg Roach            22  => 'dominion',
6272ef38edSGreg Roach            23  => 'duchy',
6372ef38edSGreg Roach            24  => 'Farm',
6472ef38edSGreg Roach            25  => 'canton',
6572ef38edSGreg Roach            26  => 'church',
6672ef38edSGreg Roach            27  => 'Kirchenkreis',
6772ef38edSGreg Roach            28  => 'Kirchenprovinz',
6872ef38edSGreg Roach            29  => 'parish',
6972ef38edSGreg Roach            30  => 'monastery (building)',
7072ef38edSGreg Roach            31  => 'kingdom',
7172ef38edSGreg Roach            32  => 'county (generic)',
7272ef38edSGreg Roach            33  => 'electorate',
7372ef38edSGreg Roach            34  => 'state',
7472ef38edSGreg Roach            35  => 'national church',
7572ef38edSGreg Roach            36  => 'rural county (rural)',
7672ef38edSGreg Roach            37  => 'Oberamt',
7772ef38edSGreg Roach            38  => 'oblast',
7872ef38edSGreg Roach            39  => 'place',
7972ef38edSGreg Roach            40  => 'part of place',
8072ef38edSGreg Roach            41  => 'Pfarr-Rektorat',
8172ef38edSGreg Roach            42  => 'parish',
8272ef38edSGreg Roach            43  => 'Pfarrkuratie',
8372ef38edSGreg Roach            44  => 'Pfarrverband',
8472ef38edSGreg Roach            45  => 'province',
8572ef38edSGreg Roach            46  => 'administrative district',
8672ef38edSGreg Roach            47  => 'historical region',
8772ef38edSGreg Roach            48  => 'Samtgemeinde',
8872ef38edSGreg Roach            49  => 'sprengel',
8972ef38edSGreg Roach            50  => 'country',
9072ef38edSGreg Roach            51  => 'town',
9172ef38edSGreg Roach            52  => 'borough',
9272ef38edSGreg Roach            53  => 'urban county (city)',
9372ef38edSGreg Roach            54  => 'part of town',
9472ef38edSGreg Roach            55  => 'village',
9572ef38edSGreg Roach            56  => 'republic',
9672ef38edSGreg Roach            57  => 'Amt',
9772ef38edSGreg Roach            58  => 'union republic',
9872ef38edSGreg Roach            59  => 'voivodship',
9972ef38edSGreg Roach            60  => 'principality',
10072ef38edSGreg Roach            61  => 'grand duchy',
10172ef38edSGreg Roach            62  => 'margravate',
10272ef38edSGreg Roach            63  => 'rayon',
10372ef38edSGreg Roach            64  => 'Vorwerk',
10472ef38edSGreg Roach            65  => 'Pfarrdorf',
10572ef38edSGreg Roach            66  => 'village',
10672ef38edSGreg Roach            67  => 'solitude',
10772ef38edSGreg Roach            68  => 'Hauptort',
10872ef38edSGreg Roach            69  => 'hamlet',
10972ef38edSGreg Roach            70  => 'bailiwick',
11072ef38edSGreg Roach            71  => 'confederation',
11172ef38edSGreg Roach            72  => 'people’s republic',
11272ef38edSGreg Roach            73  => 'Landdrostei',
11372ef38edSGreg Roach            74  => 'deprecated',
11472ef38edSGreg Roach            75  => 'Güterdistrikt',
11572ef38edSGreg Roach            76  => 'Adeliges Gut',
11672ef38edSGreg Roach            77  => 'Reichskreis',
11772ef38edSGreg Roach            78  => 'Amt(administrative division)',
11872ef38edSGreg Roach            79  => 'hundred',
11972ef38edSGreg Roach            80  => 'Landschaft',
12072ef38edSGreg Roach            81  => 'monastery',
12172ef38edSGreg Roach            82  => 'Domkapitel',
12272ef38edSGreg Roach            83  => 'Hanseatic city',
12372ef38edSGreg Roach            84  => 'Kirchspielvogtei',
12472ef38edSGreg Roach            85  => 'rural municipality',
12572ef38edSGreg Roach            86  => 'part province',
12672ef38edSGreg Roach            87  => 'mill',
12772ef38edSGreg Roach            88  => 'Judet',
12872ef38edSGreg Roach            89  => 'cemetery',
12972ef38edSGreg Roach            90  => 'abandoned place',
13072ef38edSGreg Roach            91  => 'Bistumsregion',
13172ef38edSGreg Roach            92  => 'Kirchengemeinde',
13272ef38edSGreg Roach            93  => 'Reichsstadt',
13372ef38edSGreg Roach            94  => 'Verwaltungsgemeinschaft',
13472ef38edSGreg Roach            95  => 'county - level city',
13572ef38edSGreg Roach            96  => 'archbishopric',
13672ef38edSGreg Roach            97  => 'Bürgermeisterei',
13772ef38edSGreg Roach            98  => 'veraltet',
13872ef38edSGreg Roach            99  => 'captaincy',
13972ef38edSGreg Roach            100 => 'Kreishauptmannschaft',
14072ef38edSGreg Roach            101 => 'Kreisdirektion',
14172ef38edSGreg Roach            102 => 'forester’s house',
14272ef38edSGreg Roach            103 => 'civil registry',
14372ef38edSGreg Roach            104 => 'veraltet',
14472ef38edSGreg Roach            105 => 'Landgericht',
14572ef38edSGreg Roach            107 => 'island',
14672ef38edSGreg Roach            108 => 'Gutsbezirk',
14772ef38edSGreg Roach            109 => 'Forstgutsbezirk',
14872ef38edSGreg Roach            110 => 'district office',
14972ef38edSGreg Roach            111 => 'Schloss',
15072ef38edSGreg Roach            112 => 'Gespanschaft',
15172ef38edSGreg Roach            113 => 'comitatus',
15272ef38edSGreg Roach            114 => 'Vest',
15372ef38edSGreg Roach            115 => 'forestry',
15472ef38edSGreg Roach            116 => 'Oberförsterei',
15572ef38edSGreg Roach            117 => 'Unterförsterei',
15672ef38edSGreg Roach            118 => 'train station',
15772ef38edSGreg Roach            119 => 'stop station',
15872ef38edSGreg Roach            120 => 'settlement',
15972ef38edSGreg Roach            121 => 'colony',
16072ef38edSGreg Roach            122 => 'Verbandsgemeinde',
16172ef38edSGreg Roach            124 => 'Abbey',
16272ef38edSGreg Roach            125 => 'imperial abbey',
16372ef38edSGreg Roach            126 => 'Syssel',
16472ef38edSGreg Roach            127 => 'Verwaltungsverband',
16572ef38edSGreg Roach            128 => 'Landgrafschaft',
16672ef38edSGreg Roach            129 => 'settlement',
16772ef38edSGreg Roach            130 => 'state',
16872ef38edSGreg Roach            131 => 'Weichbild',
16972ef38edSGreg Roach            133 => 'region',
17072ef38edSGreg Roach            134 => 'arrondissement',
17172ef38edSGreg Roach            135 => 'canton',
17272ef38edSGreg Roach            136 => 'commune',
17372ef38edSGreg Roach            137 => 'region',
17472ef38edSGreg Roach            138 => 'Oberlandratsbezirk',
17572ef38edSGreg Roach            139 => 'Einschicht',
17672ef38edSGreg Roach            140 => 'Einheitsgemeinde',
17772ef38edSGreg Roach            142 => 'Reichsgau',
17872ef38edSGreg Roach            143 => 'kommune',
17972ef38edSGreg Roach            144 => 'Ortschaft',
18072ef38edSGreg Roach            145 => 'Markt',
18172ef38edSGreg Roach            146 => 'Bezirkshauptmannschaft',
18272ef38edSGreg Roach            147 => 'veraltet',
18372ef38edSGreg Roach            148 => 'Erfüllende Gemeinde',
18472ef38edSGreg Roach            149 => 'Landratsamt',
18572ef38edSGreg Roach            150 => 'Stadt',
18672ef38edSGreg Roach            151 => 'Oberlandesgericht',
18772ef38edSGreg Roach            152 => 'Landbürgermeisterei',
18872ef38edSGreg Roach            153 => 'Kommissariat',
18972ef38edSGreg Roach            154 => 'Honschaft',
19072ef38edSGreg Roach            155 => 'region',
19172ef38edSGreg Roach            156 => 'Gemeindebezirk',
19272ef38edSGreg Roach            157 => 'Guberniya',
19372ef38edSGreg Roach            158 => 'Gemeindeteil',
19472ef38edSGreg Roach            159 => 'Khutor',
19572ef38edSGreg Roach            160 => 'soviet republic',
19672ef38edSGreg Roach            161 => 'Verwaltungsbezirk',
19772ef38edSGreg Roach            162 => 'Stadt - und Landgemeinde',
19872ef38edSGreg Roach            163 => 'Ortsgemeinde',
19972ef38edSGreg Roach            164 => 'Ortsbezirk',
20072ef38edSGreg Roach            165 => 'Gnotschaft',
20172ef38edSGreg Roach            166 => 'ruins',
20272ef38edSGreg Roach            167 => 'mandate territory',
20372ef38edSGreg Roach            168 => 'Provinz',
20472ef38edSGreg Roach            169 => 'Gemeinde',
20572ef38edSGreg Roach            170 => 'district',
20672ef38edSGreg Roach            171 => 'Stadthauptmannschaft',
20772ef38edSGreg Roach            172 => 'Katastralgemeinde',
20872ef38edSGreg Roach            173 => 'Reichskommissariat',
20972ef38edSGreg Roach            174 => 'general district',
21072ef38edSGreg Roach            175 => 'Kreisgebiet',
21172ef38edSGreg Roach            176 => 'protectorate',
21272ef38edSGreg Roach            177 => 'Reichsritterschaft',
21372ef38edSGreg Roach            178 => 'Ritterkanton',
21472ef38edSGreg Roach            179 => 'Ritterkreis',
21572ef38edSGreg Roach            180 => 'Marktgemeinde',
21672ef38edSGreg Roach            181 => 'Rotte',
21772ef38edSGreg Roach            182 => 'Erzstift',
21872ef38edSGreg Roach            183 => 'Hochstift',
21972ef38edSGreg Roach            184 => 'Kammerschreiberei',
22072ef38edSGreg Roach            185 => 'Klosteramt',
22172ef38edSGreg Roach            186 => 'Rentkammer',
22272ef38edSGreg Roach            187 => 'zu überprüfen',
22372ef38edSGreg Roach            188 => 'Ritterorden',
22472ef38edSGreg Roach            189 => 'Großpriorat',
22572ef38edSGreg Roach            190 => 'Ballei',
22672ef38edSGreg Roach            191 => 'Kommende',
22772ef38edSGreg Roach            192 => 'zone of occupation',
22872ef38edSGreg Roach            193 => 'Alm',
22972ef38edSGreg Roach            194 => 'Distrikts - Amt',
23072ef38edSGreg Roach            195 => 'veraltet',
23172ef38edSGreg Roach            196 => 'veraltet',
23272ef38edSGreg Roach            197 => '',
23372ef38edSGreg Roach            198 => 'veraltet(früher: Bundesverwaltungsgericht)',
23472ef38edSGreg Roach            199 => 'veraltet(früher: Landesverwaltungsgericht)',
23572ef38edSGreg Roach            200 => 'veraltet(früher: Verwaltungsgericht)',
23672ef38edSGreg Roach            201 => 'Landeskommissarbezirk',
23772ef38edSGreg Roach            202 => 'Amtsgerichtsbezirk',
23872ef38edSGreg Roach            203 => 'Domanialamt',
23972ef38edSGreg Roach            204 => 'Ritterschaftliches Amt',
24072ef38edSGreg Roach            205 => 'selsoviet',
24172ef38edSGreg Roach            206 => 'Regionalkirchenamt',
24272ef38edSGreg Roach            207 => 'Oberamtsbezirk',
24372ef38edSGreg Roach            210 => 'Kirchenbund',
24472ef38edSGreg Roach            211 => 'Landgebiet',
24572ef38edSGreg Roach            212 => 'Landherrenschaft',
24672ef38edSGreg Roach            213 => 'gorsoviet',
24772ef38edSGreg Roach            214 => 'realm',
24872ef38edSGreg Roach            215 => 'Reichshälfte',
24972ef38edSGreg Roach            216 => 'Landesteil',
25072ef38edSGreg Roach            217 => 'Direktionsbezirk',
25172ef38edSGreg Roach            218 => 'Stadt',
25272ef38edSGreg Roach            219 => 'Expositur',
25372ef38edSGreg Roach            221 => 'Fylke',
25472ef38edSGreg Roach            222 => 'Kreis',
25572ef38edSGreg Roach            223 => 'Landgericht',
25672ef38edSGreg Roach            224 => 'Pfleggericht',
25772ef38edSGreg Roach            225 => 'Rentamt',
25872ef38edSGreg Roach            226 => 'Obmannschaft',
25972ef38edSGreg Roach            227 => 'Kirchspielslandgemeinde',
26072ef38edSGreg Roach            228 => 'Gerichtsamt',
26172ef38edSGreg Roach            229 => 'group of houses',
26272ef38edSGreg Roach            230 => 'scattered settlement',
26372ef38edSGreg Roach            231 => 'Höfe',
26472ef38edSGreg Roach            232 => 'Randort',
26572ef38edSGreg Roach            233 => 'Flecken',
26672ef38edSGreg Roach            234 => 'borough',
26772ef38edSGreg Roach            235 => 'unitary authority',
26872ef38edSGreg Roach            236 => 'houses',
26972ef38edSGreg Roach            237 => 'Siedlungsrat',
27072ef38edSGreg Roach            238 => 'urban - type settlement',
27172ef38edSGreg Roach            239 => 'Verwaltungsamt',
27272ef38edSGreg Roach            240 => 'uyezd',
27372ef38edSGreg Roach            241 => 'Volost',
27472ef38edSGreg Roach            242 => 'Katasteramt',
27572ef38edSGreg Roach            243 => 'Propstei',
27672ef38edSGreg Roach            244 => 'Nebenkirche',
27772ef38edSGreg Roach            245 => 'chapel',
27872ef38edSGreg Roach            246 => 'Gromada',
27972ef38edSGreg Roach            247 => 'Ortsteil',
28072ef38edSGreg Roach            248 => 'Schulzenamt',
28172ef38edSGreg Roach            249 => 'Erzbischöfliches Amt',
28272ef38edSGreg Roach            250 => 'Apostolische Administratur',
28372ef38edSGreg Roach            251 => 'autonome Gemeinschaft',
28472ef38edSGreg Roach            252 => 'local government',
28572ef38edSGreg Roach            253 => 'religious organization',
28672ef38edSGreg Roach            254 => 'Okrug',
28772ef38edSGreg Roach            255 => 'Stadtgut',
28872ef38edSGreg Roach            256 => 'Landesbezirk',
28972ef38edSGreg Roach            257 => 'Landgemeinde PL',
29072ef38edSGreg Roach            258 => 'Stadtgemeinde',
29172ef38edSGreg Roach            259 => 'Landvogteibezirk',
29272ef38edSGreg Roach            260 => 'Delegaturbezirk',
29372ef38edSGreg Roach            261 => 'Hofschaft',
29472ef38edSGreg Roach            262 => 'Stadtteil',
29572ef38edSGreg Roach            263 => 'Sprengel',
29672ef38edSGreg Roach            264 => 'Mairie',
29772ef38edSGreg Roach            265 => 'sultanate',
29872ef38edSGreg Roach            266 => 'Landratsbezirk',
29972ef38edSGreg Roach            267 => 'sognekommune',
30072ef38edSGreg Roach            268 => 'Großgemeinde',
30172ef38edSGreg Roach            269 => 'Kleingemeinde',
30272ef38edSGreg Roach            270 => 'Bezirk',
30372ef38edSGreg Roach            271 => 'Stadt mit Munizipium',
30472ef38edSGreg Roach            272 => 'Königliche Freistadt',
30572ef38edSGreg Roach            273 => 'Stadt mit geordnetem Magistrate',
30672ef38edSGreg Roach            274 => 'unincorporated area',
30772ef38edSGreg Roach            275 => 'Stadtgemeinde',
30872ef38edSGreg Roach            276 => 'Hardesvogtei',
30972ef38edSGreg Roach        ];
31072ef38edSGreg Roach
31172ef38edSGreg Roach        array_walk($values, static function (string &$value, $key): void {
31272ef38edSGreg Roach            if (is_int($key)) {
31372ef38edSGreg Roach                $value .= ' — ' . I18N::number($key);
31472ef38edSGreg Roach            }
31572ef38edSGreg Roach        });
31672ef38edSGreg Roach
31772ef38edSGreg Roach        return $values;
31872ef38edSGreg Roach    }
31972ef38edSGreg Roach}
320