1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* webtrees: online genealogy |
4
|
|
|
* Copyright (C) 2015 webtrees development team |
5
|
|
|
* This program is free software: you can redistribute it and/or modify |
6
|
|
|
* it under the terms of the GNU General Public License as published by |
7
|
|
|
* the Free Software Foundation, either version 3 of the License, or |
8
|
|
|
* (at your option) any later version. |
9
|
|
|
* This program is distributed in the hope that it will be useful, |
10
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
11
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12
|
|
|
* GNU General Public License for more details. |
13
|
|
|
* You should have received a copy of the GNU General Public License |
14
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
15
|
|
|
*/ |
16
|
|
|
namespace Fisharebest\Webtrees\Census; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* Definitions for a census |
20
|
|
|
*/ |
21
|
|
|
class CensusOfDeutschland1900 extends CensusOfDeutschland implements CensusInterface { |
22
|
|
|
/** |
23
|
|
|
* When did this census occur. |
24
|
|
|
* |
25
|
|
|
* @return string |
26
|
|
|
*/ |
27
|
|
|
public function censusDate() { |
28
|
|
|
return '01 DEC 1900'; |
29
|
|
|
} |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* Where did this census occur, in GEDCOM format. |
33
|
|
|
* |
34
|
|
|
* @return string |
35
|
|
|
*/ |
36
|
|
|
public function censusPlace() { |
37
|
|
|
return 'Mecklenburg-Schwerin, Deutschland'; |
38
|
|
|
} |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* The columns of the census. |
42
|
|
|
* |
43
|
|
|
* @return CensusColumnInterface[] |
|
|
|
|
44
|
|
|
*/ |
45
|
|
|
public function columns() { |
46
|
|
|
return array( |
47
|
|
|
new CensusColumnNull($this, 'Lfd.Nr.', 'Laufende Nummer'), |
48
|
|
|
new CensusColumnGivenNames($this, 'Vorname', 'Vorname'), |
49
|
|
|
new CensusColumnSurname($this, 'Familienname', 'Familienname'), |
50
|
|
|
new CensusColumnRelationToHeadGerman($this, 'Stellung', 'Verwandtschaft oder sonstige Stellung zum Haushaltungsvorstand'), |
51
|
|
|
new CensusColumnNull($this, 'männlich', 'Geschlecht männlich'), |
52
|
|
|
new CensusColumnNull($this, 'weiblich', 'Geschlecht weiblich'), |
53
|
|
|
new CensusColumnNull($this, 'Blind', 'Blind auf beiden Augen'), |
54
|
|
|
new CensusColumnNull($this, 'Taubstumm', 'Taubstumm'), |
55
|
|
|
new CensusColumnNull($this, 'Bemerkungen', 'Bemerkungen'), |
56
|
|
|
new CensusColumnNull($this, '', 'Nachfolgend die detaillierten Zählkartenangaben'), |
57
|
|
|
new CensusColumnFullName($this, 'ZK 1.Name', '1. Vor- und Familienname:'), |
58
|
|
|
new CensusColumnNull($this, 'ZK 2.Geschlecht', '2. Geschlecht:'), |
59
|
|
|
new CensusColumnNull($this, 'ZK 3.Familienstand', '3. Familienstand:'), |
60
|
|
|
new CensusColumnBirthDayDotMonthYear($this, 'ZK 4.Alter', '4. Alter: geboren den ... im Jahre ...'), |
61
|
|
|
new CensusColumnBirthPlace($this, 'ZK 5.Geburtsort', '5. Geburtsort: ... im Bezirk (Amt) ...'), |
62
|
|
|
new CensusColumnNull($this, 'ZK 5.Land/Provinz', 'für außerhalb des Großherzogthums Geborene auch Geburtsland, für in Preußen Geborene auch Provinz: ...'), |
63
|
|
|
new CensusColumnOccupation($this, 'ZK 6.Beruf/Stand', '6. Beruf, Stand, Erwerb, Gewerbe, Geschäft oder Nahrungszweig:'), |
64
|
|
|
new CensusColumnNull($this, 'ZK 7a.Gemeinde Wohnort', '7.a. Gemeinde (Ortschaft), in welcher der Wohnort (Wohnung), bei verheiratheten Personen der Familienwohnsitz liegt:'), |
65
|
|
|
new CensusColumnNull($this, 'ZK 7a.Land/Provinz', 'für außerhalb des Großherzogthums Wohnende auch Staat und für in Preußen Wohnende auch Provinz: ...'), |
66
|
|
|
new CensusColumnNull($this, 'ZK 7b.Gemeinde Erwerbsort', '7.b. Gemeinde (Ortschaft), in welcher der Beruf (die Erwerbsthätigkeit) zur Zeit ausgeübt wird oder zuletzt ausgeübt wurde:'), |
67
|
|
|
new CensusColumnNull($this, 'ZK 7b.Land/Provinz', 'für außerhalb des Großherzogthums Arbeitende auch Staat und für in Preußen Arbeitende auch Provinz: ...'), |
68
|
|
|
new CensusColumnReligion($this, 'ZK 8.Religion', '8. Religionsbekenntnis:'), |
69
|
|
|
new CensusColumnNull($this, 'ZK 9.Muttersprache', '9. Muttersprache (ob deutsch oder welche andere Sprache?):'), |
70
|
|
|
new CensusColumnNull($this, 'ZK 10.StA', '10. Staatsangehörigkeit:'), |
71
|
|
|
new CensusColumnNull($this, 'ZK 11.Dienstgrad', '11. Für Militärpersonen im aktiven Dienste: Dienstgrad:'), |
72
|
|
|
new CensusColumnNull($this, 'ZK 11.Einheit', 'Truppentheil, Kommando- oder Verwaltungsbehörde:'), |
73
|
|
|
new CensusColumnNull($this, 'ZK 12.Gebrechen', '12. Etwaige körperliche Mängel und Gebrechen:'), |
74
|
|
|
); |
75
|
|
|
} |
76
|
|
|
} |
77
|
|
|
|
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.