@@ -21,15 +21,15 @@ |
||
21 | 21 | * The individual's birth place. |
22 | 22 | */ |
23 | 23 | class CensusColumnBirthPlaceSimple extends CensusColumnBirthPlace 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 | - return $this->lastPartOfPlace(parent::generate($individual, $head)); |
|
34 | - } |
|
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 | + return $this->lastPartOfPlace(parent::generate($individual, $head)); |
|
34 | + } |
|
35 | 35 | } |
@@ -20,7 +20,8 @@ discard block |
||
20 | 20 | /** |
21 | 21 | * The individual's birth place. |
22 | 22 | */ |
23 | -class CensusColumnBirthPlaceSimple extends CensusColumnBirthPlace implements CensusColumnInterface { |
|
23 | +class CensusColumnBirthPlaceSimple extends CensusColumnBirthPlace 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 | return $this->lastPartOfPlace(parent::generate($individual, $head)); |
34 | 36 | } |
35 | 37 | } |
@@ -22,34 +22,34 @@ |
||
22 | 22 | * The number of children who have died. |
23 | 23 | */ |
24 | 24 | class CensusColumnChildrenDied 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 | - if ($individual->getSex() !== 'F') { |
|
35 | - return ''; |
|
36 | - } |
|
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 | + if ($individual->getSex() !== 'F') { |
|
35 | + return ''; |
|
36 | + } |
|
37 | 37 | |
38 | - $count = 0; |
|
39 | - foreach ($individual->getSpouseFamilies() as $family) { |
|
40 | - foreach ($family->getChildren() as $child) { |
|
41 | - if ( |
|
42 | - $child->getBirthDate()->isOK() && |
|
43 | - Date::compare($child->getBirthDate(), $this->date()) < 0 && |
|
44 | - $child->getBirthDate() != $child->getDeathDate() && |
|
45 | - $child->getDeathDate()->isOK() && |
|
46 | - Date::compare($child->getDeathDate(), $this->date()) < 0 |
|
47 | - ) { |
|
48 | - $count++; |
|
49 | - } |
|
50 | - } |
|
51 | - } |
|
38 | + $count = 0; |
|
39 | + foreach ($individual->getSpouseFamilies() as $family) { |
|
40 | + foreach ($family->getChildren() as $child) { |
|
41 | + if ( |
|
42 | + $child->getBirthDate()->isOK() && |
|
43 | + Date::compare($child->getBirthDate(), $this->date()) < 0 && |
|
44 | + $child->getBirthDate() != $child->getDeathDate() && |
|
45 | + $child->getDeathDate()->isOK() && |
|
46 | + Date::compare($child->getDeathDate(), $this->date()) < 0 |
|
47 | + ) { |
|
48 | + $count++; |
|
49 | + } |
|
50 | + } |
|
51 | + } |
|
52 | 52 | |
53 | - return (string) $count; |
|
54 | - } |
|
53 | + return (string) $count; |
|
54 | + } |
|
55 | 55 | } |
@@ -21,7 +21,8 @@ discard block |
||
21 | 21 | /** |
22 | 22 | * The number of children who have died. |
23 | 23 | */ |
24 | -class CensusColumnChildrenDied extends AbstractCensusColumn implements CensusColumnInterface { |
|
24 | +class CensusColumnChildrenDied 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 | if ($individual->getSex() !== 'F') { |
35 | 37 | return ''; |
36 | 38 | } |
@@ -19,30 +19,30 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfFrance1911 extends CensusOfFrance implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '19 JAN 1911'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '19 JAN 1911'; |
|
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 CensusColumnBirthYear($this, 'Année', 'Année de naissance'), |
|
41 | - new CensusColumnBirthPlace($this, 'Lieu', 'Lieu de naissance'), |
|
42 | - new CensusColumnNationality($this, 'Nationalité', ''), |
|
43 | - new CensusColumnRelationToHead($this, 'Situation', 'Situation par rapport au chef de ménage'), |
|
44 | - new CensusColumnOccupation($this, 'Profession', ''), |
|
45 | - new CensusColumnNull($this, 'Empl', ''), |
|
46 | - ); |
|
47 | - } |
|
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 CensusColumnBirthYear($this, 'Année', 'Année de naissance'), |
|
41 | + new CensusColumnBirthPlace($this, 'Lieu', 'Lieu de naissance'), |
|
42 | + new CensusColumnNationality($this, 'Nationalité', ''), |
|
43 | + new CensusColumnRelationToHead($this, 'Situation', 'Situation par rapport au chef de ménage'), |
|
44 | + new CensusColumnOccupation($this, 'Profession', ''), |
|
45 | + new CensusColumnNull($this, 'Empl', ''), |
|
46 | + ); |
|
47 | + } |
|
48 | 48 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfFrance1911 extends CensusOfFrance implements CensusInterface { |
|
21 | +class CensusOfFrance1911 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 '19 JAN 1911'; |
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', ''), |
@@ -19,28 +19,28 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfFrance1886 extends CensusOfFrance implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '21 JAN 1886'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '21 JAN 1886'; |
|
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 CensusColumnAge($this, 'Âge', ''), |
|
41 | - new CensusColumnNationality($this, 'Nationalité', ''), |
|
42 | - new CensusColumnOccupation($this, 'Profession', ''), |
|
43 | - new CensusColumnRelationToHead($this, 'Position', 'Position dans le ménage'), |
|
44 | - ); |
|
45 | - } |
|
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 CensusColumnAge($this, 'Âge', ''), |
|
41 | + new CensusColumnNationality($this, 'Nationalité', ''), |
|
42 | + new CensusColumnOccupation($this, 'Profession', ''), |
|
43 | + new CensusColumnRelationToHead($this, 'Position', 'Position dans le ménage'), |
|
44 | + ); |
|
45 | + } |
|
46 | 46 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfFrance1886 extends CensusOfFrance implements CensusInterface { |
|
21 | +class CensusOfFrance1886 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 '21 JAN 1886'; |
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', ''), |
@@ -19,36 +19,36 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfDenmark1906 extends CensusOfDenmark implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '01 FEB 1906'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '01 FEB 1906'; |
|
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 CensusColumnBirthDaySlashMonthYear($this, 'Fødselsdag', 'Føderlsaar og Føderladag.'), |
|
41 | - new CensusColumnConditionDanish($this, 'Civilstand', 'Ægteskabelig Stillinge. Ugift (U), Gift (G), Enkemand eller Enke (E), Separeret (S), Fraskilt (F).'), |
|
42 | - new CensusColumnReligion($this, 'Trossamfund', 'Trossamfund (Folkekirken eller Navnet paa det Trossamfund, man tilhører, eller „udenfor Trossamfund“).'), |
|
43 | - new CensusColumnBirthPlace($this, 'Fødested', ''), |
|
44 | - new CensusColumnNull($this, '', ''), |
|
45 | - new CensusColumnNull($this, '', ''), |
|
46 | - new CensusColumnRelationToHead($this, 'Stilling i familien', 'Stilling i Familien: Husfader, Husmoder, Barn, Slangtning o.l., Tjenestetyende, Logerende, Pensioner'), |
|
47 | - new CensusColumnOccupation($this, 'Erhverv', ''), |
|
48 | - new CensusColumnNull($this, '', ''), |
|
49 | - new CensusColumnNull($this, '', ''), |
|
50 | - new CensusColumnNull($this, '', ''), |
|
51 | - new CensusColumnNull($this, 'Anmærkninger', 'Anmærkninger.'), |
|
52 | - ); |
|
53 | - } |
|
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 CensusColumnBirthDaySlashMonthYear($this, 'Fødselsdag', 'Føderlsaar og Føderladag.'), |
|
41 | + new CensusColumnConditionDanish($this, 'Civilstand', 'Ægteskabelig Stillinge. Ugift (U), Gift (G), Enkemand eller Enke (E), Separeret (S), Fraskilt (F).'), |
|
42 | + new CensusColumnReligion($this, 'Trossamfund', 'Trossamfund (Folkekirken eller Navnet paa det Trossamfund, man tilhører, eller „udenfor Trossamfund“).'), |
|
43 | + new CensusColumnBirthPlace($this, 'Fødested', ''), |
|
44 | + new CensusColumnNull($this, '', ''), |
|
45 | + new CensusColumnNull($this, '', ''), |
|
46 | + new CensusColumnRelationToHead($this, 'Stilling i familien', 'Stilling i Familien: Husfader, Husmoder, Barn, Slangtning o.l., Tjenestetyende, Logerende, Pensioner'), |
|
47 | + new CensusColumnOccupation($this, 'Erhverv', ''), |
|
48 | + new CensusColumnNull($this, '', ''), |
|
49 | + new CensusColumnNull($this, '', ''), |
|
50 | + new CensusColumnNull($this, '', ''), |
|
51 | + new CensusColumnNull($this, 'Anmærkninger', 'Anmærkninger.'), |
|
52 | + ); |
|
53 | + } |
|
54 | 54 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfDenmark1906 extends CensusOfDenmark implements CensusInterface { |
|
21 | +class CensusOfDenmark1906 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 1906'; |
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).'), |
@@ -22,25 +22,25 @@ |
||
22 | 22 | * At what age did the individual marry. |
23 | 23 | */ |
24 | 24 | class CensusColumnAgeMarried 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 | - if ($individual->getBirthDate()->isOK()) { |
|
35 | - foreach ($individual->getSpouseFamilies() as $family) { |
|
36 | - foreach ($family->getFacts('MARR', true) as $fact) { |
|
37 | - if ($fact->getDate()->isOK()) { |
|
38 | - return Date::getAge($individual->getBirthDate(), $fact->getDate(), 0); |
|
39 | - } |
|
40 | - } |
|
41 | - } |
|
42 | - } |
|
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 | + if ($individual->getBirthDate()->isOK()) { |
|
35 | + foreach ($individual->getSpouseFamilies() as $family) { |
|
36 | + foreach ($family->getFacts('MARR', true) as $fact) { |
|
37 | + if ($fact->getDate()->isOK()) { |
|
38 | + return Date::getAge($individual->getBirthDate(), $fact->getDate(), 0); |
|
39 | + } |
|
40 | + } |
|
41 | + } |
|
42 | + } |
|
43 | 43 | |
44 | - return ''; |
|
45 | - } |
|
44 | + return ''; |
|
45 | + } |
|
46 | 46 | } |
@@ -21,7 +21,8 @@ discard block |
||
21 | 21 | /** |
22 | 22 | * At what age did the individual marry. |
23 | 23 | */ |
24 | -class CensusColumnAgeMarried extends AbstractCensusColumn implements CensusColumnInterface { |
|
24 | +class CensusColumnAgeMarried 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 | if ($individual->getBirthDate()->isOK()) { |
35 | 37 | foreach ($individual->getSpouseFamilies() as $family) { |
36 | 38 | foreach ($family->getFacts('MARR', true) as $fact) { |
@@ -19,40 +19,40 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfDenmark1930 extends CensusOfDenmark implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '05 NOV 1930'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '05 NOV 1930'; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * The columns of the census. |
|
33 | - * |
|
34 | - * @return CensusColumnInterface[] |
|
35 | - */ |
|
36 | - public function columns() { |
|
37 | - return array( |
|
38 | - new CensusColumnSurnameGivenNames($this, 'Navn', ''), |
|
39 | - new CensusColumnNull($this, 'Bopæl', ''), |
|
40 | - new CensusColumnNull($this, 'Andetsteds', 'Hvis den i Rubrik 3 opførte Person har fast Bopæl andetsteds, anføres her den faste Bopæl'), |
|
41 | - new CensusColumnNull($this, 'Stede', 'Hvis den i Rubrik 3 opførte Person paa Tællingsdagen til Stede paa Tællingsstedet? Ja eller Nej.'), |
|
42 | - new CensusColumnNull($this, 'Bopæl', 'Bopæl den 5. Novbr. 1929'), |
|
43 | - new CensusColumnSexMK($this, 'Køn', 'Kjønnet. Mandkøn (M) eller Kvindekøn (K).'), |
|
44 | - new CensusColumnBirthDaySlashMonth($this, 'Fødselsdag', ''), |
|
45 | - new CensusColumnBirthYear($this, 'Fødselsaar', ''), |
|
46 | - new CensusColumnBirthPlace($this, 'Fødested', ''), |
|
47 | - new CensusColumnNull($this, 'Statsbergerferhold', ''), |
|
48 | - new CensusColumnConditionDanish($this, 'Civilstand', 'Ægteskabelig Stillinge. Ugift (U), Gift (G), Enkemand eller Enke (E), Separeret (S), Fraskilt (F).'), |
|
49 | - new CensusColumnRelationToHead($this, 'Stilling i familien', 'Stilling i Familien: Husfader, Husmoder, Barn, Slangtning o.l., Tjenestetyende, Logerende, Pensioner'), |
|
50 | - new CensusColumnOccupation($this, 'Erhverv', ''), |
|
51 | - new CensusColumnNull($this, '', ''), |
|
52 | - new CensusColumnNull($this, '', ''), |
|
53 | - new CensusColumnNull($this, '', ''), |
|
54 | - new CensusColumnNull($this, '', ''), |
|
55 | - new CensusColumnNull($this, '', ''), |
|
56 | - ); |
|
57 | - } |
|
31 | + /** |
|
32 | + * The columns of the census. |
|
33 | + * |
|
34 | + * @return CensusColumnInterface[] |
|
35 | + */ |
|
36 | + public function columns() { |
|
37 | + return array( |
|
38 | + new CensusColumnSurnameGivenNames($this, 'Navn', ''), |
|
39 | + new CensusColumnNull($this, 'Bopæl', ''), |
|
40 | + new CensusColumnNull($this, 'Andetsteds', 'Hvis den i Rubrik 3 opførte Person har fast Bopæl andetsteds, anføres her den faste Bopæl'), |
|
41 | + new CensusColumnNull($this, 'Stede', 'Hvis den i Rubrik 3 opførte Person paa Tællingsdagen til Stede paa Tællingsstedet? Ja eller Nej.'), |
|
42 | + new CensusColumnNull($this, 'Bopæl', 'Bopæl den 5. Novbr. 1929'), |
|
43 | + new CensusColumnSexMK($this, 'Køn', 'Kjønnet. Mandkøn (M) eller Kvindekøn (K).'), |
|
44 | + new CensusColumnBirthDaySlashMonth($this, 'Fødselsdag', ''), |
|
45 | + new CensusColumnBirthYear($this, 'Fødselsaar', ''), |
|
46 | + new CensusColumnBirthPlace($this, 'Fødested', ''), |
|
47 | + new CensusColumnNull($this, 'Statsbergerferhold', ''), |
|
48 | + new CensusColumnConditionDanish($this, 'Civilstand', 'Ægteskabelig Stillinge. Ugift (U), Gift (G), Enkemand eller Enke (E), Separeret (S), Fraskilt (F).'), |
|
49 | + new CensusColumnRelationToHead($this, 'Stilling i familien', 'Stilling i Familien: Husfader, Husmoder, Barn, Slangtning o.l., Tjenestetyende, Logerende, Pensioner'), |
|
50 | + new CensusColumnOccupation($this, 'Erhverv', ''), |
|
51 | + new CensusColumnNull($this, '', ''), |
|
52 | + new CensusColumnNull($this, '', ''), |
|
53 | + new CensusColumnNull($this, '', ''), |
|
54 | + new CensusColumnNull($this, '', ''), |
|
55 | + new CensusColumnNull($this, '', ''), |
|
56 | + ); |
|
57 | + } |
|
58 | 58 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfDenmark1930 extends CensusOfDenmark implements CensusInterface { |
|
21 | +class CensusOfDenmark1930 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 1930'; |
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 CensusColumnSurnameGivenNames($this, 'Navn', ''), |
39 | 42 | new CensusColumnNull($this, 'Bopæl', ''), |
@@ -19,34 +19,34 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfScotland1891 extends CensusOfScotland implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '05 APR 1891'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '05 APR 1891'; |
|
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 CensusColumnNull($this, 'Empl', 'Employer'), |
|
45 | - new CensusColumnNull($this, 'Empd', 'Employed'), |
|
46 | - new CensusColumnNull($this, 'OAC', 'Own account'), |
|
47 | - new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'), |
|
48 | - new CensusColumnNull($this, 'Lang', 'Language spoken'), |
|
49 | - new CensusColumnNull($this, 'Infirm', 'Whether deaf-and-dumb, blind, lunatic or imbecile'), |
|
50 | - ); |
|
51 | - } |
|
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 CensusColumnNull($this, 'Empl', 'Employer'), |
|
45 | + new CensusColumnNull($this, 'Empd', 'Employed'), |
|
46 | + new CensusColumnNull($this, 'OAC', 'Own account'), |
|
47 | + new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'), |
|
48 | + new CensusColumnNull($this, 'Lang', 'Language spoken'), |
|
49 | + new CensusColumnNull($this, 'Infirm', 'Whether deaf-and-dumb, blind, lunatic or imbecile'), |
|
50 | + ); |
|
51 | + } |
|
52 | 52 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfScotland1891 extends CensusOfScotland implements CensusInterface { |
|
21 | +class CensusOfScotland1891 extends CensusOfScotland 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 APR 1891'; |
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'), |
@@ -21,17 +21,17 @@ |
||
21 | 21 | * The individual's religion. |
22 | 22 | */ |
23 | 23 | class CensusColumnReligion extends AbstractCensusColumn implements CensusColumnInterface { |
24 | - /** |
|
25 | - * Generate the likely value of this census column, based on available information. |
|
26 | - * |
|
27 | - * @todo Look for RELI tags (or subtags?) |
|
28 | - * |
|
29 | - * @param Individual $individual |
|
30 | - * @param Individual|null $head |
|
31 | - * |
|
32 | - * @return string |
|
33 | - */ |
|
34 | - public function generate(Individual $individual, Individual $head = null) { |
|
35 | - return ''; |
|
36 | - } |
|
24 | + /** |
|
25 | + * Generate the likely value of this census column, based on available information. |
|
26 | + * |
|
27 | + * @todo Look for RELI tags (or subtags?) |
|
28 | + * |
|
29 | + * @param Individual $individual |
|
30 | + * @param Individual|null $head |
|
31 | + * |
|
32 | + * @return string |
|
33 | + */ |
|
34 | + public function generate(Individual $individual, Individual $head = null) { |
|
35 | + return ''; |
|
36 | + } |
|
37 | 37 | } |
@@ -20,7 +20,8 @@ discard block |
||
20 | 20 | /** |
21 | 21 | * The individual's religion. |
22 | 22 | */ |
23 | -class CensusColumnReligion extends AbstractCensusColumn implements CensusColumnInterface { |
|
23 | +class CensusColumnReligion extends AbstractCensusColumn implements CensusColumnInterface |
|
24 | +{ |
|
24 | 25 | /** |
25 | 26 | * Generate the likely value of this census column, based on available information. |
26 | 27 | * |
@@ -31,7 +32,8 @@ discard block |
||
31 | 32 | * |
32 | 33 | * @return string |
33 | 34 | */ |
34 | - public function generate(Individual $individual, Individual $head = null) { |
|
35 | + public function generate(Individual $individual, Individual $head = null) |
|
36 | + { |
|
35 | 37 | return ''; |
36 | 38 | } |
37 | 39 | } |