@@ -18,13 +18,15 @@ discard block |
||
| 18 | 18 | /** |
| 19 | 19 | * Definitions for a census |
| 20 | 20 | */ |
| 21 | -class CensusOfDeutschland1867 extends CensusOfDeutschland implements CensusInterface { |
|
| 21 | +class CensusOfDeutschland1867 extends CensusOfDeutschland 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 '03 DEC 1867'; |
| 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 'Mecklenburg-Schwerin, 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 CensusColumnNull($this, '1.Nr.', 'Ordnungs-Nummer (1-15).'), |
| 48 | 52 | new CensusColumnGivenNames($this, '2.Vorname', 'I. Vor- und Familien-Name jeder Person. Vorname'), |
@@ -18,13 +18,15 @@ discard block |
||
| 18 | 18 | /** |
| 19 | 19 | * Definitions for a census |
| 20 | 20 | */ |
| 21 | -class CensusOfDenmark1911 extends CensusOfDenmark implements CensusInterface { |
|
| 21 | +class CensusOfDenmark1911 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 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 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).'), |
@@ -18,7 +18,8 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * The individual's sex. |
| 20 | 20 | */ |
| 21 | -class CensusColumnSexMZ extends CensusColumnSexMF { |
|
| 21 | +class CensusColumnSexMZ extends CensusColumnSexMF |
|
| 22 | +{ |
|
| 22 | 23 | /* Text to display for female individuals */ |
| 23 | 24 | protected $female = 'Ž'; |
| 24 | 25 | } |
@@ -18,13 +18,15 @@ discard block |
||
| 18 | 18 | /** |
| 19 | 19 | * Definitions for a census |
| 20 | 20 | */ |
| 21 | -class CensusOfFrance1896 extends CensusOfFrance implements CensusInterface { |
|
| 21 | +class CensusOfFrance1896 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 '16 JAN 1896'; |
| 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', ''), |
@@ -20,7 +20,8 @@ discard block |
||
| 20 | 20 | /** |
| 21 | 21 | * A column that we cannot generate. |
| 22 | 22 | */ |
| 23 | -class CensusColumnNull extends AbstractCensusColumn implements CensusColumnInterface { |
|
| 23 | +class CensusColumnNull 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 | return ''; |
| 34 | 36 | } |
| 35 | 37 | } |
@@ -18,13 +18,15 @@ discard block |
||
| 18 | 18 | /** |
| 19 | 19 | * Definitions for a census |
| 20 | 20 | */ |
| 21 | -class CensusOfWales1881 extends CensusOfWales implements CensusInterface { |
|
| 21 | +class CensusOfWales1881 extends CensusOfWales 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 '03 APR 1881'; |
| 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'), |
@@ -18,13 +18,15 @@ discard block |
||
| 18 | 18 | /** |
| 19 | 19 | * Definitions for a census |
| 20 | 20 | */ |
| 21 | -class CensusOfDenmark1850 extends CensusOfDenmark implements CensusInterface { |
|
| 21 | +class CensusOfDenmark1850 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 1850'; |
| 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', ''), |
| 39 | 42 | new CensusColumnAge($this, 'Alder', ''), |
@@ -20,7 +20,8 @@ discard block |
||
| 20 | 20 | /** |
| 21 | 21 | * Birth place of the individual's fther. |
| 22 | 22 | */ |
| 23 | -class CensusColumnFatherBirthPlace extends AbstractCensusColumn implements CensusColumnInterface { |
|
| 23 | +class CensusColumnFatherBirthPlace 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) { |
@@ -18,13 +18,15 @@ discard block |
||
| 18 | 18 | /** |
| 19 | 19 | * Definitions for a census |
| 20 | 20 | */ |
| 21 | -class RegisterOfEngland1939 extends CensusOfEngland implements CensusInterface { |
|
| 21 | +class RegisterOfEngland1939 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 '29 SEP 1939'; |
| 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 CensusColumnNull($this, 'Schedule', 'Schedule Number'), |
| 39 | 42 | new CensusColumnNull($this, 'SubNum', 'Schedule Sub Number'), |