@@ -21,25 +21,25 @@ |
||
21 | 21 | * Did the individual marry within the last year. |
22 | 22 | */ |
23 | 23 | class CensusColumnMarriedWithinYear 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 | - foreach ($individual->getSpouseFamilies() as $family) { |
|
34 | - foreach ($family->getFacts('MARR') as $fact) { |
|
35 | - $marriage_jd = $fact->getDate()->julianDay(); |
|
36 | - $census_jd = $this->date()->julianDay(); |
|
37 | - if ($marriage_jd <= $census_jd && $marriage_jd >= $census_jd - 365) { |
|
38 | - return 'Y'; |
|
39 | - } |
|
40 | - } |
|
41 | - } |
|
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 | + foreach ($individual->getSpouseFamilies() as $family) { |
|
34 | + foreach ($family->getFacts('MARR') as $fact) { |
|
35 | + $marriage_jd = $fact->getDate()->julianDay(); |
|
36 | + $census_jd = $this->date()->julianDay(); |
|
37 | + if ($marriage_jd <= $census_jd && $marriage_jd >= $census_jd - 365) { |
|
38 | + return 'Y'; |
|
39 | + } |
|
40 | + } |
|
41 | + } |
|
42 | 42 | |
43 | - return ''; |
|
44 | - } |
|
43 | + return ''; |
|
44 | + } |
|
45 | 45 | } |
@@ -19,28 +19,28 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfFrance1946 extends CensusOfFrance implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '17 JAN 1946'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '17 JAN 1946'; |
|
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, 'Nom', 'Nom de famille'), |
|
39 | - new CensusColumnGivenNames($this, 'Prénom', 'Prénom usuel'), |
|
40 | - new CensusColumnRelationToHead($this, 'Parenté', 'Parenté avec le chef de ménage ou situation dans le ménage'), |
|
41 | - new CensusColumnBirthYear($this, 'Année', 'Année de naissance'), |
|
42 | - new CensusColumnNationality($this, 'Nationalité', ''), |
|
43 | - new CensusColumnOccupation($this, 'Profession', ''), |
|
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, 'Nom', 'Nom de famille'), |
|
39 | + new CensusColumnGivenNames($this, 'Prénom', 'Prénom usuel'), |
|
40 | + new CensusColumnRelationToHead($this, 'Parenté', 'Parenté avec le chef de ménage ou situation dans le ménage'), |
|
41 | + new CensusColumnBirthYear($this, 'Année', 'Année de naissance'), |
|
42 | + new CensusColumnNationality($this, 'Nationalité', ''), |
|
43 | + new CensusColumnOccupation($this, 'Profession', ''), |
|
44 | + ); |
|
45 | + } |
|
46 | 46 | } |
@@ -19,32 +19,32 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfFrance1866 extends CensusOfFrance implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '18 JAN 1866'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '18 JAN 1866'; |
|
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 | } |
@@ -22,43 +22,43 @@ |
||
22 | 22 | * The nationality of the individual. |
23 | 23 | */ |
24 | 24 | class CensusColumnNationality extends AbstractCensusColumn implements CensusColumnInterface { |
25 | - /** @var array Convert a country name to a nationality */ |
|
26 | - private $nationalities = array( |
|
27 | - 'England' => 'British', |
|
28 | - 'Scotland' => 'British', |
|
29 | - 'Wales' => 'British', |
|
30 | - 'Deutschland' => 'Deutsch', |
|
31 | - ); |
|
25 | + /** @var array Convert a country name to a nationality */ |
|
26 | + private $nationalities = array( |
|
27 | + 'England' => 'British', |
|
28 | + 'Scotland' => 'British', |
|
29 | + 'Wales' => 'British', |
|
30 | + 'Deutschland' => 'Deutsch', |
|
31 | + ); |
|
32 | 32 | |
33 | - /** |
|
34 | - * Generate the likely value of this census column, based on available information. |
|
35 | - * |
|
36 | - * @param Individual $individual |
|
37 | - * @param Individual|null $head |
|
38 | - * |
|
39 | - * @return string |
|
40 | - */ |
|
41 | - public function generate(Individual $individual, Individual $head = null) { |
|
42 | - $place = $individual->getBirthPlace(); |
|
33 | + /** |
|
34 | + * Generate the likely value of this census column, based on available information. |
|
35 | + * |
|
36 | + * @param Individual $individual |
|
37 | + * @param Individual|null $head |
|
38 | + * |
|
39 | + * @return string |
|
40 | + */ |
|
41 | + public function generate(Individual $individual, Individual $head = null) { |
|
42 | + $place = $individual->getBirthPlace(); |
|
43 | 43 | |
44 | - // No birthplace? Assume born in the same country. |
|
45 | - if ($place === '') { |
|
46 | - $place = $this->place(); |
|
47 | - } |
|
44 | + // No birthplace? Assume born in the same country. |
|
45 | + if ($place === '') { |
|
46 | + $place = $this->place(); |
|
47 | + } |
|
48 | 48 | |
49 | - // Did we emigrate or naturalise? |
|
50 | - foreach ($individual->getFacts('IMMI|EMIG|NATU', true) as $fact) { |
|
51 | - if (Date::compare($fact->getDate(), $this->date()) <= 0) { |
|
52 | - $place = $fact->getPlace()->getGedcomName(); |
|
53 | - } |
|
54 | - } |
|
49 | + // Did we emigrate or naturalise? |
|
50 | + foreach ($individual->getFacts('IMMI|EMIG|NATU', true) as $fact) { |
|
51 | + if (Date::compare($fact->getDate(), $this->date()) <= 0) { |
|
52 | + $place = $fact->getPlace()->getGedcomName(); |
|
53 | + } |
|
54 | + } |
|
55 | 55 | |
56 | - $place = $this->lastPartOfPlace($place); |
|
56 | + $place = $this->lastPartOfPlace($place); |
|
57 | 57 | |
58 | - if (array_key_exists($place, $this->nationalities)) { |
|
59 | - return $this->nationalities[$place]; |
|
60 | - } else { |
|
61 | - return $place; |
|
62 | - } |
|
63 | - } |
|
58 | + if (array_key_exists($place, $this->nationalities)) { |
|
59 | + return $this->nationalities[$place]; |
|
60 | + } else { |
|
61 | + return $place; |
|
62 | + } |
|
63 | + } |
|
64 | 64 | } |
@@ -19,30 +19,30 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfFrance1926 extends CensusOfFrance implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '21 JAN 1926'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '21 JAN 1926'; |
|
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 | } |
@@ -19,32 +19,32 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfFrance1861 extends CensusOfFrance implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '17 JAN 1861'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '17 JAN 1861'; |
|
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 | } |
@@ -19,46 +19,46 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfUnitedStates1890 extends CensusOfUnitedStates implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '02 JUN 1890'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '02 JUN 1890'; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * The columns of the census. |
|
33 | - * |
|
34 | - * @return CensusColumnInterface[] |
|
35 | - */ |
|
36 | - public function columns() { |
|
37 | - return array( |
|
38 | - new CensusColumnGivenNameInitial($this, 'Name', 'Christian name in full, and initial of middle name'), |
|
39 | - new CensusColumnSurname($this, 'Surname', 'Surname'), |
|
40 | - new CensusColumnNull($this, 'CW', 'Whether a soldier, sailor or marine during the civil war (U.S. or Conf.), or widow of such person'), |
|
41 | - new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of family'), |
|
42 | - new CensusColumnNull($this, 'Race', 'Whether white, black, mulatto, quadroon, octoroon, Chinese, Japanese, or Indian'), |
|
43 | - new CensusColumnSexMF($this, 'Sex', 'Sex'), |
|
44 | - new CensusColumnAge($this, 'Age', 'Age at nearest birthday. If under one year, give age in months'), |
|
45 | - new CensusColumnConditionUs($this, 'Cond', 'Whether single, married, widowed, or divorced'), |
|
46 | - new CensusColumnMonthIfMarriedWithinYear($this, 'Mar', 'Whether married duirng the census year (June 1, 1889, to May 31, 1890)'), |
|
47 | - new CensusColumnNull($this, 'Chil', 'Mother of how many children, and number of these children living'), |
|
48 | - new CensusColumnBirthPlaceSimple($this, 'BP', 'Place of birth'), |
|
49 | - new CensusColumnFatherBirthPlaceSimple($this, 'FBP', 'Place of birth of father'), |
|
50 | - new CensusColumnFatherBirthPlaceSimple($this, 'MBP', 'Place of birth of mother'), |
|
51 | - new CensusColumnNull($this, 'US', 'Number of years in the United States'), |
|
52 | - new CensusColumnNull($this, 'Nat', 'Whether naturalized'), |
|
53 | - new CensusColumnNull($this, 'Papers', 'Whether naturalization papers have been taken out'), |
|
54 | - new CensusColumnOccupation($this, 'Occupation', 'Profession, trade, occupation'), |
|
55 | - new CensusColumnNull($this, 'Unemp', 'Months unemployed during the census year (June 1, 1889, to May 31, 1890)'), |
|
56 | - new CensusColumnNull($this, 'Read', 'Able to read'), |
|
57 | - new CensusColumnNull($this, 'Write', 'Able to write'), |
|
58 | - new CensusColumnNull($this, 'Eng', 'Able to speak English. If not the language or dialect spoken'), |
|
59 | - new CensusColumnNull($this, 'Disease', 'Whether suffering from acute or chronic disease, with name of disease and length of time afflicted'), |
|
60 | - new CensusColumnNull($this, 'Infirm', 'Whether defective in mind, sight, hearing, or speech, or whether crippled, maimed, or deformed, with name of defect'), |
|
61 | - new CensusColumnNull($this, 'Prisoner', 'Whether a prisoner, convict, homeless child, or pauper'), |
|
62 | - ); |
|
63 | - } |
|
31 | + /** |
|
32 | + * The columns of the census. |
|
33 | + * |
|
34 | + * @return CensusColumnInterface[] |
|
35 | + */ |
|
36 | + public function columns() { |
|
37 | + return array( |
|
38 | + new CensusColumnGivenNameInitial($this, 'Name', 'Christian name in full, and initial of middle name'), |
|
39 | + new CensusColumnSurname($this, 'Surname', 'Surname'), |
|
40 | + new CensusColumnNull($this, 'CW', 'Whether a soldier, sailor or marine during the civil war (U.S. or Conf.), or widow of such person'), |
|
41 | + new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of family'), |
|
42 | + new CensusColumnNull($this, 'Race', 'Whether white, black, mulatto, quadroon, octoroon, Chinese, Japanese, or Indian'), |
|
43 | + new CensusColumnSexMF($this, 'Sex', 'Sex'), |
|
44 | + new CensusColumnAge($this, 'Age', 'Age at nearest birthday. If under one year, give age in months'), |
|
45 | + new CensusColumnConditionUs($this, 'Cond', 'Whether single, married, widowed, or divorced'), |
|
46 | + new CensusColumnMonthIfMarriedWithinYear($this, 'Mar', 'Whether married duirng the census year (June 1, 1889, to May 31, 1890)'), |
|
47 | + new CensusColumnNull($this, 'Chil', 'Mother of how many children, and number of these children living'), |
|
48 | + new CensusColumnBirthPlaceSimple($this, 'BP', 'Place of birth'), |
|
49 | + new CensusColumnFatherBirthPlaceSimple($this, 'FBP', 'Place of birth of father'), |
|
50 | + new CensusColumnFatherBirthPlaceSimple($this, 'MBP', 'Place of birth of mother'), |
|
51 | + new CensusColumnNull($this, 'US', 'Number of years in the United States'), |
|
52 | + new CensusColumnNull($this, 'Nat', 'Whether naturalized'), |
|
53 | + new CensusColumnNull($this, 'Papers', 'Whether naturalization papers have been taken out'), |
|
54 | + new CensusColumnOccupation($this, 'Occupation', 'Profession, trade, occupation'), |
|
55 | + new CensusColumnNull($this, 'Unemp', 'Months unemployed during the census year (June 1, 1889, to May 31, 1890)'), |
|
56 | + new CensusColumnNull($this, 'Read', 'Able to read'), |
|
57 | + new CensusColumnNull($this, 'Write', 'Able to write'), |
|
58 | + new CensusColumnNull($this, 'Eng', 'Able to speak English. If not the language or dialect spoken'), |
|
59 | + new CensusColumnNull($this, 'Disease', 'Whether suffering from acute or chronic disease, with name of disease and length of time afflicted'), |
|
60 | + new CensusColumnNull($this, 'Infirm', 'Whether defective in mind, sight, hearing, or speech, or whether crippled, maimed, or deformed, with name of defect'), |
|
61 | + new CensusColumnNull($this, 'Prisoner', 'Whether a prisoner, convict, homeless child, or pauper'), |
|
62 | + ); |
|
63 | + } |
|
64 | 64 | } |
@@ -19,28 +19,28 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfFrance1891 extends CensusOfFrance implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '15 JAN 1891'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '15 JAN 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 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 | } |
@@ -19,35 +19,35 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfDenmark1835 extends CensusOfDenmark implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '18 FEB 1835'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '18 FEB 1835'; |
|
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 CensusColumnAge($this, 'Alder', ''), |
|
49 | - new CensusColumnConditionDanish($this, 'Civilstand', ''), |
|
50 | - new CensusColumnRelationToHead($this, 'Stilling i familien', ''), |
|
51 | - ); |
|
52 | - } |
|
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 CensusColumnAge($this, 'Alder', ''), |
|
49 | + new CensusColumnConditionDanish($this, 'Civilstand', ''), |
|
50 | + new CensusColumnRelationToHead($this, 'Stilling i familien', ''), |
|
51 | + ); |
|
52 | + } |
|
53 | 53 | } |