@@ -19,46 +19,46 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfUnitedStates1920 extends CensusOfUnitedStates implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return 'JAN 1920'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return 'JAN 1920'; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * The columns of the census. |
|
33 | - * |
|
34 | - * @return CensusColumnInterface[] |
|
35 | - */ |
|
36 | - public function columns() { |
|
37 | - return array( |
|
38 | - new CensusColumnSurnameGivenNameInitial($this, 'Name', 'Name'), |
|
39 | - new CensusColumnRelationToHead($this, 'Relation', 'Relationship of each person to the head of the family'), |
|
40 | - new CensusColumnNull($this, 'Home', 'Owned or rented'), |
|
41 | - new CensusColumnNull($this, 'Mort', 'If owned, free or mortgaged'), |
|
42 | - new CensusColumnSexMF($this, 'Sex', 'Sex'), |
|
43 | - new CensusColumnNull($this, 'Race', 'Color or race'), |
|
44 | - new CensusColumnAge($this, 'Age', 'Age at last birthday'), |
|
45 | - new CensusColumnConditionUs($this, 'Condition', 'Whether single, married, widowed, or divorced'), |
|
46 | - new CensusColumnNull($this, 'Imm', 'Year of immigration to the United States'), |
|
47 | - new CensusColumnNull($this, 'Nat', 'Naturalized or alien'), |
|
48 | - new CensusColumnNull($this, 'NatY', 'If naturalized, year of naturalization'), |
|
49 | - new CensusColumnNull($this, 'School', 'Attended school since Sept. 1, 1919'), |
|
50 | - new CensusColumnNull($this, 'R', 'Whether able to read'), |
|
51 | - new CensusColumnNull($this, 'W', 'Whether able to write'), |
|
52 | - new CensusColumnBirthPlaceSimple($this, 'BP', 'Place of birth'), |
|
53 | - new CensusColumnNull($this, 'Lang', 'Mother tongue'), |
|
54 | - new CensusColumnFatherBirthPlaceSimple($this, 'FBP', 'Place of birth of father'), |
|
55 | - new CensusColumnNull($this, 'Father lang', 'Mother tongue of father'), |
|
56 | - new CensusColumnFatherBirthPlaceSimple($this, 'MBP', 'Place of birth of mother'), |
|
57 | - new CensusColumnNull($this, 'Mother lang', 'Mother tongue of mother'), |
|
58 | - new CensusColumnNull($this, 'Eng', 'Whether able to speak English'), |
|
59 | - new CensusColumnOccupation($this, 'Occupation', 'Trade, profession, or particular kind of work done'), |
|
60 | - new CensusColumnNull($this, 'Ind', 'Industry, business of establishment in which at work'), |
|
61 | - new CensusColumnNull($this, 'Emp', 'Employer, salary or wage worker, or work on own account'), |
|
62 | - ); |
|
63 | - } |
|
31 | + /** |
|
32 | + * The columns of the census. |
|
33 | + * |
|
34 | + * @return CensusColumnInterface[] |
|
35 | + */ |
|
36 | + public function columns() { |
|
37 | + return array( |
|
38 | + new CensusColumnSurnameGivenNameInitial($this, 'Name', 'Name'), |
|
39 | + new CensusColumnRelationToHead($this, 'Relation', 'Relationship of each person to the head of the family'), |
|
40 | + new CensusColumnNull($this, 'Home', 'Owned or rented'), |
|
41 | + new CensusColumnNull($this, 'Mort', 'If owned, free or mortgaged'), |
|
42 | + new CensusColumnSexMF($this, 'Sex', 'Sex'), |
|
43 | + new CensusColumnNull($this, 'Race', 'Color or race'), |
|
44 | + new CensusColumnAge($this, 'Age', 'Age at last birthday'), |
|
45 | + new CensusColumnConditionUs($this, 'Condition', 'Whether single, married, widowed, or divorced'), |
|
46 | + new CensusColumnNull($this, 'Imm', 'Year of immigration to the United States'), |
|
47 | + new CensusColumnNull($this, 'Nat', 'Naturalized or alien'), |
|
48 | + new CensusColumnNull($this, 'NatY', 'If naturalized, year of naturalization'), |
|
49 | + new CensusColumnNull($this, 'School', 'Attended school since Sept. 1, 1919'), |
|
50 | + new CensusColumnNull($this, 'R', 'Whether able to read'), |
|
51 | + new CensusColumnNull($this, 'W', 'Whether able to write'), |
|
52 | + new CensusColumnBirthPlaceSimple($this, 'BP', 'Place of birth'), |
|
53 | + new CensusColumnNull($this, 'Lang', 'Mother tongue'), |
|
54 | + new CensusColumnFatherBirthPlaceSimple($this, 'FBP', 'Place of birth of father'), |
|
55 | + new CensusColumnNull($this, 'Father lang', 'Mother tongue of father'), |
|
56 | + new CensusColumnFatherBirthPlaceSimple($this, 'MBP', 'Place of birth of mother'), |
|
57 | + new CensusColumnNull($this, 'Mother lang', 'Mother tongue of mother'), |
|
58 | + new CensusColumnNull($this, 'Eng', 'Whether able to speak English'), |
|
59 | + new CensusColumnOccupation($this, 'Occupation', 'Trade, profession, or particular kind of work done'), |
|
60 | + new CensusColumnNull($this, 'Ind', 'Industry, business of establishment in which at work'), |
|
61 | + new CensusColumnNull($this, 'Emp', 'Employer, salary or wage worker, or work on own account'), |
|
62 | + ); |
|
63 | + } |
|
64 | 64 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfUnitedStates1920 extends CensusOfUnitedStates implements CensusInterface { |
|
21 | +class CensusOfUnitedStates1920 extends CensusOfUnitedStates implements CensusInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * When did this census occur. |
24 | 25 | * |
25 | 26 | * @return string |
26 | 27 | */ |
27 | - public function censusDate() { |
|
28 | + public function censusDate() |
|
29 | + { |
|
28 | 30 | return 'JAN 1920'; |
29 | 31 | } |
30 | 32 | |
@@ -33,7 +35,8 @@ discard block |
||
33 | 35 | * |
34 | 36 | * @return CensusColumnInterface[] |
35 | 37 | */ |
36 | - public function columns() { |
|
38 | + public function columns() |
|
39 | + { |
|
37 | 40 | return array( |
38 | 41 | new CensusColumnSurnameGivenNameInitial($this, 'Name', 'Name'), |
39 | 42 | new CensusColumnRelationToHead($this, 'Relation', 'Relationship of each person to the head of the family'), |
@@ -19,36 +19,36 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfDenmark1803 extends CensusOfDenmark implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '01 FEB 1803'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '01 FEB 1803'; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * Where did this census occur, in GEDCOM format. |
|
33 | - * |
|
34 | - * @return string |
|
35 | - */ |
|
36 | - public function censusPlace() { |
|
37 | - return 'Schleswig-Holstein, Deutschland'; |
|
38 | - } |
|
31 | + /** |
|
32 | + * Where did this census occur, in GEDCOM format. |
|
33 | + * |
|
34 | + * @return string |
|
35 | + */ |
|
36 | + public function censusPlace() { |
|
37 | + return 'Schleswig-Holstein, Deutschland'; |
|
38 | + } |
|
39 | 39 | |
40 | - /** |
|
41 | - * The columns of the census. |
|
42 | - * |
|
43 | - * @return CensusColumnInterface[] |
|
44 | - */ |
|
45 | - public function columns() { |
|
46 | - return array( |
|
47 | - new CensusColumnFullName($this, 'Navn', ''), |
|
48 | - new CensusColumnRelationToHead($this, 'Stilling i familien', ''), |
|
49 | - new CensusColumnAge($this, 'Alder', ''), |
|
50 | - new CensusColumnConditionDanish($this, 'Civilstand', ''), |
|
51 | - new CensusColumnOccupation($this, 'Erhverv', ''), |
|
52 | - ); |
|
53 | - } |
|
40 | + /** |
|
41 | + * The columns of the census. |
|
42 | + * |
|
43 | + * @return CensusColumnInterface[] |
|
44 | + */ |
|
45 | + public function columns() { |
|
46 | + return array( |
|
47 | + new CensusColumnFullName($this, 'Navn', ''), |
|
48 | + new CensusColumnRelationToHead($this, 'Stilling i familien', ''), |
|
49 | + new CensusColumnAge($this, 'Alder', ''), |
|
50 | + new CensusColumnConditionDanish($this, 'Civilstand', ''), |
|
51 | + new CensusColumnOccupation($this, 'Erhverv', ''), |
|
52 | + ); |
|
53 | + } |
|
54 | 54 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfDenmark1803 extends CensusOfDenmark implements CensusInterface { |
|
21 | +class CensusOfDenmark1803 extends CensusOfDenmark implements CensusInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * When did this census occur. |
24 | 25 | * |
25 | 26 | * @return string |
26 | 27 | */ |
27 | - public function censusDate() { |
|
28 | + public function censusDate() |
|
29 | + { |
|
28 | 30 | return '01 FEB 1803'; |
29 | 31 | } |
30 | 32 | |
@@ -33,7 +35,8 @@ discard block |
||
33 | 35 | * |
34 | 36 | * @return string |
35 | 37 | */ |
36 | - public function censusPlace() { |
|
38 | + public function censusPlace() |
|
39 | + { |
|
37 | 40 | return 'Schleswig-Holstein, Deutschland'; |
38 | 41 | } |
39 | 42 | |
@@ -42,7 +45,8 @@ discard block |
||
42 | 45 | * |
43 | 46 | * @return CensusColumnInterface[] |
44 | 47 | */ |
45 | - public function columns() { |
|
48 | + public function columns() |
|
49 | + { |
|
46 | 50 | return array( |
47 | 51 | new CensusColumnFullName($this, 'Navn', ''), |
48 | 52 | new CensusColumnRelationToHead($this, 'Stilling i familien', ''), |
@@ -19,33 +19,33 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfDenmark1925 extends CensusOfDenmark implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '05 NOV 1925'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '05 NOV 1925'; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * The columns of the census. |
|
33 | - * |
|
34 | - * @return CensusColumnInterface[] |
|
35 | - */ |
|
36 | - public function columns() { |
|
37 | - return array( |
|
38 | - new CensusColumnFullName($this, 'Navn', 'Samtlige Personers Navn (ogsaa Fornavn). Ved Børn, endnu uden Navn, sættes „Dreng“ eller „Pige“. Midlertidig fraværerade Personer anføres ikke her, men paa Skemaeta Bagside)'), |
|
39 | - new CensusColumnSexMK($this, 'Køn', 'Kjønnet. Mandkøn (M) eller Kvindekøn (K).'), |
|
40 | - new CensusColumnBirthDaySlashMonth($this, 'Fødselsdag', ''), |
|
41 | - new CensusColumnBirthYear($this, 'Fødselsaar', ''), |
|
42 | - new CensusColumnBirthPlace($this, 'Fødested', ''), |
|
43 | - new CensusColumnNull($this, 'Statsbergerferhold', ''), |
|
44 | - new CensusColumnConditionDanish($this, 'Civilstand', 'Ægteskabelig Stillinge. Ugift (U), Gift (G), Enkemand eller Enke (E), Separeret (S), Fraskilt (F).'), |
|
45 | - new CensusColumnRelationToHead($this, 'Stilling i familien', 'Stilling i Familien: Husfader, Husmoder, Barn, Slangtning o.l., Tjenestetyende, Logerende, Pensioner'), |
|
46 | - new CensusColumnOccupation($this, 'Erhverv', 'Erhverv eller Livsstilling'), |
|
47 | - new CensusColumnNull($this, 'Bopæl', 'Bopæl den 5. Novbr. 1924'), |
|
48 | - new CensusColumnNull($this, 'Anmærkninger', 'Anmærkninger'), |
|
49 | - ); |
|
50 | - } |
|
31 | + /** |
|
32 | + * The columns of the census. |
|
33 | + * |
|
34 | + * @return CensusColumnInterface[] |
|
35 | + */ |
|
36 | + public function columns() { |
|
37 | + return array( |
|
38 | + new CensusColumnFullName($this, 'Navn', 'Samtlige Personers Navn (ogsaa Fornavn). Ved Børn, endnu uden Navn, sættes „Dreng“ eller „Pige“. Midlertidig fraværerade Personer anføres ikke her, men paa Skemaeta Bagside)'), |
|
39 | + new CensusColumnSexMK($this, 'Køn', 'Kjønnet. Mandkøn (M) eller Kvindekøn (K).'), |
|
40 | + new CensusColumnBirthDaySlashMonth($this, 'Fødselsdag', ''), |
|
41 | + new CensusColumnBirthYear($this, 'Fødselsaar', ''), |
|
42 | + new CensusColumnBirthPlace($this, 'Fødested', ''), |
|
43 | + new CensusColumnNull($this, 'Statsbergerferhold', ''), |
|
44 | + new CensusColumnConditionDanish($this, 'Civilstand', 'Ægteskabelig Stillinge. Ugift (U), Gift (G), Enkemand eller Enke (E), Separeret (S), Fraskilt (F).'), |
|
45 | + new CensusColumnRelationToHead($this, 'Stilling i familien', 'Stilling i Familien: Husfader, Husmoder, Barn, Slangtning o.l., Tjenestetyende, Logerende, Pensioner'), |
|
46 | + new CensusColumnOccupation($this, 'Erhverv', 'Erhverv eller Livsstilling'), |
|
47 | + new CensusColumnNull($this, 'Bopæl', 'Bopæl den 5. Novbr. 1924'), |
|
48 | + new CensusColumnNull($this, 'Anmærkninger', 'Anmærkninger'), |
|
49 | + ); |
|
50 | + } |
|
51 | 51 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfDenmark1925 extends CensusOfDenmark implements CensusInterface { |
|
21 | +class CensusOfDenmark1925 extends CensusOfDenmark implements CensusInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * When did this census occur. |
24 | 25 | * |
25 | 26 | * @return string |
26 | 27 | */ |
27 | - public function censusDate() { |
|
28 | + public function censusDate() |
|
29 | + { |
|
28 | 30 | return '05 NOV 1925'; |
29 | 31 | } |
30 | 32 | |
@@ -33,7 +35,8 @@ discard block |
||
33 | 35 | * |
34 | 36 | * @return CensusColumnInterface[] |
35 | 37 | */ |
36 | - public function columns() { |
|
38 | + public function columns() |
|
39 | + { |
|
37 | 40 | return array( |
38 | 41 | new CensusColumnFullName($this, 'Navn', 'Samtlige Personers Navn (ogsaa Fornavn). Ved Børn, endnu uden Navn, sættes „Dreng“ eller „Pige“. Midlertidig fraværerade Personer anføres ikke her, men paa Skemaeta Bagside)'), |
39 | 42 | new CensusColumnSexMK($this, 'Køn', 'Kjønnet. Mandkøn (M) eller Kvindekøn (K).'), |
@@ -19,30 +19,30 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfEngland1871 extends CensusOfEngland implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '02 APR 1871'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '02 APR 1871'; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * The columns of the census. |
|
33 | - * |
|
34 | - * @return CensusColumnInterface[] |
|
35 | - */ |
|
36 | - public function columns() { |
|
37 | - return array( |
|
38 | - new CensusColumnFullName($this, 'Name', 'Name and surname'), |
|
39 | - new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'), |
|
40 | - new CensusColumnConditionEnglish($this, 'Condition', 'Condition'), |
|
41 | - new CensusColumnAgeMale($this, 'AgeM', 'Age (males)'), |
|
42 | - new CensusColumnAgeFemale($this, 'AgeF', 'Age (females)'), |
|
43 | - new CensusColumnOccupation($this, 'Occupation', 'Rank, profession or occupation'), |
|
44 | - new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'), |
|
45 | - new CensusColumnNull($this, 'Infirm', 'Whether deaf-and-dumb, blind, imbecile, idiot or lunatic'), |
|
46 | - ); |
|
47 | - } |
|
31 | + /** |
|
32 | + * The columns of the census. |
|
33 | + * |
|
34 | + * @return CensusColumnInterface[] |
|
35 | + */ |
|
36 | + public function columns() { |
|
37 | + return array( |
|
38 | + new CensusColumnFullName($this, 'Name', 'Name and surname'), |
|
39 | + new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'), |
|
40 | + new CensusColumnConditionEnglish($this, 'Condition', 'Condition'), |
|
41 | + new CensusColumnAgeMale($this, 'AgeM', 'Age (males)'), |
|
42 | + new CensusColumnAgeFemale($this, 'AgeF', 'Age (females)'), |
|
43 | + new CensusColumnOccupation($this, 'Occupation', 'Rank, profession or occupation'), |
|
44 | + new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'), |
|
45 | + new CensusColumnNull($this, 'Infirm', 'Whether deaf-and-dumb, blind, imbecile, idiot or lunatic'), |
|
46 | + ); |
|
47 | + } |
|
48 | 48 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfEngland1871 extends CensusOfEngland implements CensusInterface { |
|
21 | +class CensusOfEngland1871 extends CensusOfEngland implements CensusInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * When did this census occur. |
24 | 25 | * |
25 | 26 | * @return string |
26 | 27 | */ |
27 | - public function censusDate() { |
|
28 | + public function censusDate() |
|
29 | + { |
|
28 | 30 | return '02 APR 1871'; |
29 | 31 | } |
30 | 32 | |
@@ -33,7 +35,8 @@ discard block |
||
33 | 35 | * |
34 | 36 | * @return CensusColumnInterface[] |
35 | 37 | */ |
36 | - public function columns() { |
|
38 | + public function columns() |
|
39 | + { |
|
37 | 40 | return array( |
38 | 41 | new CensusColumnFullName($this, 'Name', 'Name and surname'), |
39 | 42 | new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'), |
@@ -19,28 +19,28 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfEngland1841 extends CensusOfEngland implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '06 JUN 1841'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '06 JUN 1841'; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * The columns of the census. |
|
33 | - * |
|
34 | - * @return CensusColumnInterface[] |
|
35 | - */ |
|
36 | - public function columns() { |
|
37 | - return array( |
|
38 | - new CensusColumnFullName($this, 'Name', 'Name'), |
|
39 | - new CensusColumnAgeMale5Years($this, 'AgeM', 'Age (males)'), |
|
40 | - new CensusColumnAgeFemale5Years($this, 'AgeF', 'Age (females)'), |
|
41 | - new CensusColumnOccupation($this, 'Occupation', 'Profession, trade, employment or of independent means'), |
|
42 | - new CensusColumnNull($this, 'BiC', 'Born in same county'), |
|
43 | - new CensusColumnBornForeignParts($this, 'SIF', 'Born in Scotland, Ireland or foreign parts'), |
|
44 | - ); |
|
45 | - } |
|
31 | + /** |
|
32 | + * The columns of the census. |
|
33 | + * |
|
34 | + * @return CensusColumnInterface[] |
|
35 | + */ |
|
36 | + public function columns() { |
|
37 | + return array( |
|
38 | + new CensusColumnFullName($this, 'Name', 'Name'), |
|
39 | + new CensusColumnAgeMale5Years($this, 'AgeM', 'Age (males)'), |
|
40 | + new CensusColumnAgeFemale5Years($this, 'AgeF', 'Age (females)'), |
|
41 | + new CensusColumnOccupation($this, 'Occupation', 'Profession, trade, employment or of independent means'), |
|
42 | + new CensusColumnNull($this, 'BiC', 'Born in same county'), |
|
43 | + new CensusColumnBornForeignParts($this, 'SIF', 'Born in Scotland, Ireland or foreign parts'), |
|
44 | + ); |
|
45 | + } |
|
46 | 46 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfEngland1841 extends CensusOfEngland implements CensusInterface { |
|
21 | +class CensusOfEngland1841 extends CensusOfEngland implements CensusInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * When did this census occur. |
24 | 25 | * |
25 | 26 | * @return string |
26 | 27 | */ |
27 | - public function censusDate() { |
|
28 | + public function censusDate() |
|
29 | + { |
|
28 | 30 | return '06 JUN 1841'; |
29 | 31 | } |
30 | 32 | |
@@ -33,7 +35,8 @@ discard block |
||
33 | 35 | * |
34 | 36 | * @return CensusColumnInterface[] |
35 | 37 | */ |
36 | - public function columns() { |
|
38 | + public function columns() |
|
39 | + { |
|
37 | 40 | return array( |
38 | 41 | new CensusColumnFullName($this, 'Name', 'Name'), |
39 | 42 | new CensusColumnAgeMale5Years($this, 'AgeM', 'Age (males)'), |
@@ -19,32 +19,32 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfFrance1831 extends CensusOfFrance implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '20 JAN 1831'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '20 JAN 1831'; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * The columns of the census. |
|
33 | - * |
|
34 | - * @return CensusColumnInterface[] |
|
35 | - */ |
|
36 | - public function columns() { |
|
37 | - return array( |
|
38 | - new CensusColumnSurname($this, 'Noms', 'Noms de famille'), |
|
39 | - new CensusColumnGivenNames($this, 'Prénoms', ''), |
|
40 | - new CensusColumnOccupation($this, 'Titres', 'Titres, qualifications, état ou profession et fonctions'), |
|
41 | - new CensusColumnConditionFrenchGarcon($this, 'Garçons', ''), |
|
42 | - new CensusColumnConditionFrenchHomme($this, 'Hommes', 'Hommes mariés'), |
|
43 | - new CensusColumnConditionFrenchVeuf($this, 'Veufs', ''), |
|
44 | - new CensusColumnConditionFrenchFille($this, 'Filles', ''), |
|
45 | - new CensusColumnConditionFrenchFemme($this, 'Femmes', 'Femmes mariées'), |
|
46 | - new CensusColumnConditionFrenchVeuve($this, 'Veuves', ''), |
|
47 | - new CensusColumnAge($this, 'Âge', ''), |
|
48 | - ); |
|
49 | - } |
|
31 | + /** |
|
32 | + * The columns of the census. |
|
33 | + * |
|
34 | + * @return CensusColumnInterface[] |
|
35 | + */ |
|
36 | + public function columns() { |
|
37 | + return array( |
|
38 | + new CensusColumnSurname($this, 'Noms', 'Noms de famille'), |
|
39 | + new CensusColumnGivenNames($this, 'Prénoms', ''), |
|
40 | + new CensusColumnOccupation($this, 'Titres', 'Titres, qualifications, état ou profession et fonctions'), |
|
41 | + new CensusColumnConditionFrenchGarcon($this, 'Garçons', ''), |
|
42 | + new CensusColumnConditionFrenchHomme($this, 'Hommes', 'Hommes mariés'), |
|
43 | + new CensusColumnConditionFrenchVeuf($this, 'Veufs', ''), |
|
44 | + new CensusColumnConditionFrenchFille($this, 'Filles', ''), |
|
45 | + new CensusColumnConditionFrenchFemme($this, 'Femmes', 'Femmes mariées'), |
|
46 | + new CensusColumnConditionFrenchVeuve($this, 'Veuves', ''), |
|
47 | + new CensusColumnAge($this, 'Âge', ''), |
|
48 | + ); |
|
49 | + } |
|
50 | 50 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfFrance1831 extends CensusOfFrance implements CensusInterface { |
|
21 | +class CensusOfFrance1831 extends CensusOfFrance implements CensusInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * When did this census occur. |
24 | 25 | * |
25 | 26 | * @return string |
26 | 27 | */ |
27 | - public function censusDate() { |
|
28 | + public function censusDate() |
|
29 | + { |
|
28 | 30 | return '20 JAN 1831'; |
29 | 31 | } |
30 | 32 | |
@@ -33,7 +35,8 @@ discard block |
||
33 | 35 | * |
34 | 36 | * @return CensusColumnInterface[] |
35 | 37 | */ |
36 | - public function columns() { |
|
38 | + public function columns() |
|
39 | + { |
|
37 | 40 | return array( |
38 | 41 | new CensusColumnSurname($this, 'Noms', 'Noms de famille'), |
39 | 42 | new CensusColumnGivenNames($this, 'Prénoms', ''), |
@@ -22,48 +22,48 @@ |
||
22 | 22 | * The individual's full name. |
23 | 23 | */ |
24 | 24 | class CensusColumnFullName extends AbstractCensusColumn implements CensusColumnInterface { |
25 | - /** |
|
26 | - * Generate the likely value of this census column, based on available information. |
|
27 | - * |
|
28 | - * @param Individual $individual |
|
29 | - * @param Individual|null $head |
|
30 | - * |
|
31 | - * @return string |
|
32 | - */ |
|
33 | - public function generate(Individual $individual, Individual $head = null) { |
|
34 | - $name = $this->nameAtCensusDate($individual, $this->date()); |
|
25 | + /** |
|
26 | + * Generate the likely value of this census column, based on available information. |
|
27 | + * |
|
28 | + * @param Individual $individual |
|
29 | + * @param Individual|null $head |
|
30 | + * |
|
31 | + * @return string |
|
32 | + */ |
|
33 | + public function generate(Individual $individual, Individual $head = null) { |
|
34 | + $name = $this->nameAtCensusDate($individual, $this->date()); |
|
35 | 35 | |
36 | - return strip_tags($name['full']); |
|
37 | - } |
|
36 | + return strip_tags($name['full']); |
|
37 | + } |
|
38 | 38 | |
39 | - /** |
|
40 | - * What was an individual's likely name on a given date, allowing |
|
41 | - * for marriages and married names. |
|
42 | - * |
|
43 | - * @param Individual $individual |
|
44 | - * @param Date $census_date |
|
45 | - * |
|
46 | - * @return string[] |
|
47 | - */ |
|
48 | - protected function nameAtCensusDate(Individual $individual, Date $census_date) { |
|
49 | - $names = $individual->getAllNames(); |
|
50 | - $name = $names[0]; |
|
39 | + /** |
|
40 | + * What was an individual's likely name on a given date, allowing |
|
41 | + * for marriages and married names. |
|
42 | + * |
|
43 | + * @param Individual $individual |
|
44 | + * @param Date $census_date |
|
45 | + * |
|
46 | + * @return string[] |
|
47 | + */ |
|
48 | + protected function nameAtCensusDate(Individual $individual, Date $census_date) { |
|
49 | + $names = $individual->getAllNames(); |
|
50 | + $name = $names[0]; |
|
51 | 51 | |
52 | - foreach ($individual->getSpouseFamilies() as $family) { |
|
53 | - foreach ($family->getFacts('MARR') as $marriage) { |
|
54 | - if ($marriage->getDate()->isOK() && Date::compare($marriage->getDate(), $census_date) < 0) { |
|
55 | - $spouse = $family->getSpouse($individual); |
|
56 | - foreach ($names as $individual_name) { |
|
57 | - foreach ($spouse->getAllNames() as $spouse_name) { |
|
58 | - if ($individual_name['type'] === '_MARNM' && $individual_name['surn'] === $spouse_name['surn']) { |
|
59 | - return $individual_name; |
|
60 | - } |
|
61 | - } |
|
62 | - } |
|
63 | - } |
|
64 | - } |
|
65 | - } |
|
52 | + foreach ($individual->getSpouseFamilies() as $family) { |
|
53 | + foreach ($family->getFacts('MARR') as $marriage) { |
|
54 | + if ($marriage->getDate()->isOK() && Date::compare($marriage->getDate(), $census_date) < 0) { |
|
55 | + $spouse = $family->getSpouse($individual); |
|
56 | + foreach ($names as $individual_name) { |
|
57 | + foreach ($spouse->getAllNames() as $spouse_name) { |
|
58 | + if ($individual_name['type'] === '_MARNM' && $individual_name['surn'] === $spouse_name['surn']) { |
|
59 | + return $individual_name; |
|
60 | + } |
|
61 | + } |
|
62 | + } |
|
63 | + } |
|
64 | + } |
|
65 | + } |
|
66 | 66 | |
67 | - return $name; |
|
68 | - } |
|
67 | + return $name; |
|
68 | + } |
|
69 | 69 | } |
@@ -21,7 +21,8 @@ discard block |
||
21 | 21 | /** |
22 | 22 | * The individual's full name. |
23 | 23 | */ |
24 | -class CensusColumnFullName extends AbstractCensusColumn implements CensusColumnInterface { |
|
24 | +class CensusColumnFullName extends AbstractCensusColumn implements CensusColumnInterface |
|
25 | +{ |
|
25 | 26 | /** |
26 | 27 | * Generate the likely value of this census column, based on available information. |
27 | 28 | * |
@@ -30,7 +31,8 @@ discard block |
||
30 | 31 | * |
31 | 32 | * @return string |
32 | 33 | */ |
33 | - public function generate(Individual $individual, Individual $head = null) { |
|
34 | + public function generate(Individual $individual, Individual $head = null) |
|
35 | + { |
|
34 | 36 | $name = $this->nameAtCensusDate($individual, $this->date()); |
35 | 37 | |
36 | 38 | return strip_tags($name['full']); |
@@ -45,7 +47,8 @@ discard block |
||
45 | 47 | * |
46 | 48 | * @return string[] |
47 | 49 | */ |
48 | - protected function nameAtCensusDate(Individual $individual, Date $census_date) { |
|
50 | + protected function nameAtCensusDate(Individual $individual, Date $census_date) |
|
51 | + { |
|
49 | 52 | $names = $individual->getAllNames(); |
50 | 53 | $name = $names[0]; |
51 | 54 |
@@ -21,21 +21,21 @@ |
||
21 | 21 | * Is the individual's father a foreigner. |
22 | 22 | */ |
23 | 23 | class CensusColumnFatherForeign extends AbstractCensusColumn implements CensusColumnInterface { |
24 | - /** |
|
25 | - * Generate the likely value of this census column, based on available information. |
|
26 | - * |
|
27 | - * @param Individual $individual |
|
28 | - * @param Individual|null $head |
|
29 | - * |
|
30 | - * @return string |
|
31 | - */ |
|
32 | - public function generate(Individual $individual, Individual $head = null) { |
|
33 | - $father = $this->father($individual); |
|
24 | + /** |
|
25 | + * Generate the likely value of this census column, based on available information. |
|
26 | + * |
|
27 | + * @param Individual $individual |
|
28 | + * @param Individual|null $head |
|
29 | + * |
|
30 | + * @return string |
|
31 | + */ |
|
32 | + public function generate(Individual $individual, Individual $head = null) { |
|
33 | + $father = $this->father($individual); |
|
34 | 34 | |
35 | - if ($father && $this->lastPartOfPlace($father->getBirthPlace()) !== $this->place()) { |
|
36 | - return 'Y'; |
|
37 | - } else { |
|
38 | - return ''; |
|
39 | - } |
|
40 | - } |
|
35 | + if ($father && $this->lastPartOfPlace($father->getBirthPlace()) !== $this->place()) { |
|
36 | + return 'Y'; |
|
37 | + } else { |
|
38 | + return ''; |
|
39 | + } |
|
40 | + } |
|
41 | 41 | } |
@@ -20,7 +20,8 @@ discard block |
||
20 | 20 | /** |
21 | 21 | * Is the individual's father a foreigner. |
22 | 22 | */ |
23 | -class CensusColumnFatherForeign extends AbstractCensusColumn implements CensusColumnInterface { |
|
23 | +class CensusColumnFatherForeign extends AbstractCensusColumn implements CensusColumnInterface |
|
24 | +{ |
|
24 | 25 | /** |
25 | 26 | * Generate the likely value of this census column, based on available information. |
26 | 27 | * |
@@ -29,7 +30,8 @@ discard block |
||
29 | 30 | * |
30 | 31 | * @return string |
31 | 32 | */ |
32 | - public function generate(Individual $individual, Individual $head = null) { |
|
33 | + public function generate(Individual $individual, Individual $head = null) |
|
34 | + { |
|
33 | 35 | $father = $this->father($individual); |
34 | 36 | |
35 | 37 | if ($father && $this->lastPartOfPlace($father->getBirthPlace()) !== $this->place()) { |
@@ -19,31 +19,31 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfWales extends Census implements CensusPlaceInterface { |
22 | - /** |
|
23 | - * All available censuses for this census place. |
|
24 | - * |
|
25 | - * @return CensusInterface[] |
|
26 | - */ |
|
27 | - public function allCensusDates() { |
|
28 | - return array( |
|
29 | - new CensusOfWales1841(), |
|
30 | - new CensusOfWales1851(), |
|
31 | - new CensusOfWales1861(), |
|
32 | - new CensusOfWales1871(), |
|
33 | - new CensusOfWales1881(), |
|
34 | - new CensusOfWales1891(), |
|
35 | - new CensusOfWales1901(), |
|
36 | - new CensusOfWales1911(), |
|
37 | - new RegisterOfWales1939(), |
|
38 | - ); |
|
39 | - } |
|
22 | + /** |
|
23 | + * All available censuses for this census place. |
|
24 | + * |
|
25 | + * @return CensusInterface[] |
|
26 | + */ |
|
27 | + public function allCensusDates() { |
|
28 | + return array( |
|
29 | + new CensusOfWales1841(), |
|
30 | + new CensusOfWales1851(), |
|
31 | + new CensusOfWales1861(), |
|
32 | + new CensusOfWales1871(), |
|
33 | + new CensusOfWales1881(), |
|
34 | + new CensusOfWales1891(), |
|
35 | + new CensusOfWales1901(), |
|
36 | + new CensusOfWales1911(), |
|
37 | + new RegisterOfWales1939(), |
|
38 | + ); |
|
39 | + } |
|
40 | 40 | |
41 | - /** |
|
42 | - * Where did this census occur, in GEDCOM format. |
|
43 | - * |
|
44 | - * @return string |
|
45 | - */ |
|
46 | - public function censusPlace() { |
|
47 | - return 'Wales'; |
|
48 | - } |
|
41 | + /** |
|
42 | + * Where did this census occur, in GEDCOM format. |
|
43 | + * |
|
44 | + * @return string |
|
45 | + */ |
|
46 | + public function censusPlace() { |
|
47 | + return 'Wales'; |
|
48 | + } |
|
49 | 49 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfWales extends Census implements CensusPlaceInterface { |
|
21 | +class CensusOfWales extends Census implements CensusPlaceInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * All available censuses for this census place. |
24 | 25 | * |
25 | 26 | * @return CensusInterface[] |
26 | 27 | */ |
27 | - public function allCensusDates() { |
|
28 | + public function allCensusDates() |
|
29 | + { |
|
28 | 30 | return array( |
29 | 31 | new CensusOfWales1841(), |
30 | 32 | new CensusOfWales1851(), |
@@ -43,7 +45,8 @@ discard block |
||
43 | 45 | * |
44 | 46 | * @return string |
45 | 47 | */ |
46 | - public function censusPlace() { |
|
48 | + public function censusPlace() |
|
49 | + { |
|
47 | 50 | return 'Wales'; |
48 | 51 | } |
49 | 52 | } |