summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Census/AbstractCensusColumn.php47
-rw-r--r--app/Census/CensusColumnAge.php33
-rw-r--r--app/Census/CensusColumnFullName.php32
-rw-r--r--app/Census/CensusColumnInterface.php28
-rw-r--r--app/Census/CensusColumnOccupation.php36
-rw-r--r--app/Census/CensusColumnSameCounty.php32
-rw-r--r--app/Census/CensusColumnSexMF.php36
-rw-r--r--app/Census/CensusInterface.php53
-rw-r--r--app/Census/CensusOfDenmark.php58
-rw-r--r--app/Census/CensusOfDenmark1787.php52
-rw-r--r--app/Census/CensusOfDenmark1801.php52
-rw-r--r--app/Census/CensusOfDenmark1834.php52
-rw-r--r--app/Census/CensusOfDenmark1840.php52
-rw-r--r--app/Census/CensusOfDenmark1845.php52
-rw-r--r--app/Census/CensusOfDenmark1850.php52
-rw-r--r--app/Census/CensusOfDenmark1855.php52
-rw-r--r--app/Census/CensusOfDenmark1860.php52
-rw-r--r--app/Census/CensusOfDenmark1870.php52
-rw-r--r--app/Census/CensusOfDenmark1880.php52
-rw-r--r--app/Census/CensusOfDenmark1890.php52
-rw-r--r--app/Census/CensusOfDenmark1901.php52
-rw-r--r--app/Census/CensusOfDenmark1906.php52
-rw-r--r--app/Census/CensusOfDenmark1911.php52
-rw-r--r--app/Census/CensusOfDenmark1916.php52
-rw-r--r--app/Census/CensusOfDenmark1921.php52
-rw-r--r--app/Census/CensusOfDenmark1925.php52
-rw-r--r--app/Census/CensusOfDenmark1930.php52
-rw-r--r--app/Census/CensusOfEngland1841.php53
-rw-r--r--app/Census/CensusOfEngland1851.php50
-rw-r--r--app/Census/CensusOfEngland1861.php50
-rw-r--r--app/Census/CensusOfEngland1871.php50
-rw-r--r--app/Census/CensusOfEngland1881.php50
-rw-r--r--app/Census/CensusOfEngland1891.php50
-rw-r--r--app/Census/CensusOfEngland1901.php50
-rw-r--r--app/Census/CensusOfEngland1911.php50
-rw-r--r--app/Census/CensusOfFrance.php56
-rw-r--r--app/Census/CensusOfFrance1836.php50
-rw-r--r--app/Census/CensusOfFrance1841.php50
-rw-r--r--app/Census/CensusOfFrance1846.php50
-rw-r--r--app/Census/CensusOfFrance1851.php50
-rw-r--r--app/Census/CensusOfFrance1856.php50
-rw-r--r--app/Census/CensusOfFrance1861.php50
-rw-r--r--app/Census/CensusOfFrance1866.php50
-rw-r--r--app/Census/CensusOfFrance1872.php50
-rw-r--r--app/Census/CensusOfFrance1876.php50
-rw-r--r--app/Census/CensusOfFrance1881.php50
-rw-r--r--app/Census/CensusOfFrance1886.php50
-rw-r--r--app/Census/CensusOfFrance1891.php50
-rw-r--r--app/Census/CensusOfFrance1896.php50
-rw-r--r--app/Census/CensusOfFrance1901.php50
-rw-r--r--app/Census/CensusOfFrance1906.php50
-rw-r--r--app/Census/CensusOfFrance1911.php50
-rw-r--r--app/Census/CensusOfOfEngland.php48
-rw-r--r--app/Census/CensusOfScotland.php48
-rw-r--r--app/Census/CensusOfScotland1841.php52
-rw-r--r--app/Census/CensusOfScotland1851.php50
-rw-r--r--app/Census/CensusOfScotland1861.php50
-rw-r--r--app/Census/CensusOfScotland1871.php50
-rw-r--r--app/Census/CensusOfScotland1881.php50
-rw-r--r--app/Census/CensusOfScotland1891.php50
-rw-r--r--app/Census/CensusOfScotland1901.php50
-rw-r--r--app/Census/CensusOfScotland1911.php50
-rw-r--r--app/Census/CensusOfUnitedStates.php56
-rw-r--r--app/Census/CensusOfUnitedStates1790.php50
-rw-r--r--app/Census/CensusOfUnitedStates1800.php50
-rw-r--r--app/Census/CensusOfUnitedStates1810.php50
-rw-r--r--app/Census/CensusOfUnitedStates1820.php50
-rw-r--r--app/Census/CensusOfUnitedStates1830.php50
-rw-r--r--app/Census/CensusOfUnitedStates1840.php50
-rw-r--r--app/Census/CensusOfUnitedStates1850.php50
-rw-r--r--app/Census/CensusOfUnitedStates1860.php50
-rw-r--r--app/Census/CensusOfUnitedStates1870.php50
-rw-r--r--app/Census/CensusOfUnitedStates1880.php50
-rw-r--r--app/Census/CensusOfUnitedStates1890.php50
-rw-r--r--app/Census/CensusOfUnitedStates1900.php50
-rw-r--r--app/Census/CensusOfUnitedStates1910.php50
-rw-r--r--app/Census/CensusOfUnitedStates1920.php50
-rw-r--r--app/Census/CensusOfUnitedStates1930.php50
-rw-r--r--app/Census/CensusOfUnitedStates1940.php50
-rw-r--r--app/Census/CensusOfWales.php48
-rw-r--r--app/Census/CensusOfWales1841.php52
-rw-r--r--app/Census/CensusOfWales1851.php50
-rw-r--r--app/Census/CensusOfWales1861.php50
-rw-r--r--app/Census/CensusOfWales1871.php50
-rw-r--r--app/Census/CensusOfWales1881.php50
-rw-r--r--app/Census/CensusOfWales1891.php50
-rw-r--r--app/Census/CensusOfWales1901.php50
-rw-r--r--app/Census/CensusOfWales1911.php50
-rw-r--r--app/Census/CensusPlace.php37
-rw-r--r--app/Census/CensusPlaceInterface.php35
90 files changed, 4426 insertions, 0 deletions
diff --git a/app/Census/AbstractCensusColumn.php b/app/Census/AbstractCensusColumn.php
new file mode 100644
index 0000000000..8c6283e819
--- /dev/null
+++ b/app/Census/AbstractCensusColumn.php
@@ -0,0 +1,47 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census column
+ */
+class AbstractCensusColumn {
+ /** @var Individual - the individual recorded on the census */
+ protected $individul;
+
+ /** @var Place - the place where the census took place */
+ protected $place;
+
+ /** @var Date - the date when the census took place */
+ protected $date;
+
+ /**
+ * Create a census column
+ *
+ * @param Individual $individual
+ * @param Place $place
+ * @param Date $date
+ */
+ public function __construct(Individual $individual, Place $place, Date $date) {
+ $this->individual = $individual;
+ $this->place = $place;
+ $this->date = $date;
+ }
+}
diff --git a/app/Census/CensusColumnAge.php b/app/Census/CensusColumnAge.php
new file mode 100644
index 0000000000..a6b80deff4
--- /dev/null
+++ b/app/Census/CensusColumnAge.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\I18N;
+
+/**
+ * The individual's age.
+ */
+class CensusColumnAge extends AbstractCensusColumn implements CensusColumnInterface {
+ /**
+ * Generate the likely value of this census column, based on available information.
+ *
+ * @return string
+ */
+ public function generate() {
+ return Date::getAge($this->individual->getEstimatedBirthDate(), $this->date, 0);
+ }
+}
diff --git a/app/Census/CensusColumnFullName.php b/app/Census/CensusColumnFullName.php
new file mode 100644
index 0000000000..50a2da018a
--- /dev/null
+++ b/app/Census/CensusColumnFullName.php
@@ -0,0 +1,32 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\I18N;
+
+/**
+ * The individual's full name.
+ */
+class CensusColumnFullName extends AbstractCensusColumn implements CensusColumnInterface {
+ /**
+ * Generate the likely value of this census column, based on available information.
+ *
+ * @return string
+ */
+ public function generate() {
+ return strip_tags($this->individual->getFullName());
+ }
+}
diff --git a/app/Census/CensusColumnInterface.php b/app/Census/CensusColumnInterface.php
new file mode 100644
index 0000000000..9282335ba1
--- /dev/null
+++ b/app/Census/CensusColumnInterface.php
@@ -0,0 +1,28 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+/**
+ * Definitions for a census column
+ */
+interface CensusColumnInterface {
+ /**
+ * Generate the likely value of this census column, based on available information.
+ *
+ * @return string
+ */
+ public function generate();
+}
diff --git a/app/Census/CensusColumnOccupation.php b/app/Census/CensusColumnOccupation.php
new file mode 100644
index 0000000000..f18898e127
--- /dev/null
+++ b/app/Census/CensusColumnOccupation.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\I18N;
+
+/**
+ * The individual's occupation.
+ */
+class CensusColumnOccupation extends AbstractCensusColumn implements CensusColumnInterface {
+ /**
+ * Generate the likely value of this census column, based on available information.
+ *
+ * @return string
+ */
+ public function generate() {
+ foreach ($this->individual->getFacts('OCCU') as $fact) {
+ return $fact->getValue();
+ }
+
+ return '';
+ }
+}
diff --git a/app/Census/CensusColumnSameCounty.php b/app/Census/CensusColumnSameCounty.php
new file mode 100644
index 0000000000..1026e01f9c
--- /dev/null
+++ b/app/Census/CensusColumnSameCounty.php
@@ -0,0 +1,32 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+
+/**
+ * Does the individual live in the county in which they were born.
+ */
+class CensusColumnSameCounty extends AbstractCensusColumn implements CensusColumnInterface {
+ /**
+ * Generate the likely value of this census column, based on available information.
+ *
+ * @return string
+ */
+ public function generate() {
+ return '';
+ }
+}
diff --git a/app/Census/CensusColumnSexMF.php b/app/Census/CensusColumnSexMF.php
new file mode 100644
index 0000000000..7cb7c6e13f
--- /dev/null
+++ b/app/Census/CensusColumnSexMF.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\I18N;
+
+/**
+ * The individual's sex.
+ */
+class CensusColumnSexMF extends AbstractCensusColumn implements CensusColumnInterface {
+ /**
+ * Generate the likely value of this census column, based on available information.
+ *
+ * @return string
+ */
+ public function generate() {
+ if ($this->individual->getSex() === 'U') {
+ return '';
+ } else {
+ return $this->individual->getSex();
+ }
+ }
+}
diff --git a/app/Census/CensusInterface.php b/app/Census/CensusInterface.php
new file mode 100644
index 0000000000..3f5992ebdf
--- /dev/null
+++ b/app/Census/CensusInterface.php
@@ -0,0 +1,53 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Individual;
+
+/**
+ * Definitions for a census
+ */
+interface CensusInterface {
+ /**
+ * Where did this census occur, in GEDCOM format.
+ *
+ * @return string
+ */
+ public function censusPlace();
+
+ /**
+ * When did this census occur, in GEDCOM format.
+ *
+ * @return string
+ */
+ public function censusDate();
+
+ /**
+ * All available censuses for this census place.
+ *
+ * @return CensusInterface[]
+ */
+ public function allCensusDates();
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual);
+}
diff --git a/app/Census/CensusOfDenmark.php b/app/Census/CensusOfDenmark.php
new file mode 100644
index 0000000000..01a904cacc
--- /dev/null
+++ b/app/Census/CensusOfDenmark.php
@@ -0,0 +1,58 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfDenmark extends CensusPlace implements CensusPlaceInterface {
+ /**
+ * All available censuses for this census place.
+ *
+ * @return CensusInterface[]
+ */
+ public function allCensusDates() {
+ return array(
+ new CensusOfDenmark1787(),
+ new CensusOfDenmark1801(),
+ new CensusOfDenmark1834(),
+ new CensusOfDenmark1840(),
+ new CensusOfDenmark1845(),
+ new CensusOfDenmark1850(),
+ new CensusOfDenmark1855(),
+ new CensusOfDenmark1860(),
+ new CensusOfDenmark1870(),
+ new CensusOfDenmark1880(),
+ new CensusOfDenmark1890(),
+ new CensusOfDenmark1901(),
+ new CensusOfDenmark1906(),
+ new CensusOfDenmark1911(),
+ new CensusOfDenmark1916(),
+ new CensusOfDenmark1921(),
+ new CensusOfDenmark1925(),
+ new CensusOfDenmark1930(),
+ );
+ }
+
+ /**
+ * Where did this census occur, in GEDCOM format.
+ *
+ * @return string
+ */
+ public function censusPlace() {
+ return 'Danmark';
+ }
+}
diff --git a/app/Census/CensusOfDenmark1787.php b/app/Census/CensusOfDenmark1787.php
new file mode 100644
index 0000000000..c1fbd63c86
--- /dev/null
+++ b/app/Census/CensusOfDenmark1787.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfDenmark1787 extends CensusOfDenmark implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 JUL 1787';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfDenmark1801.php b/app/Census/CensusOfDenmark1801.php
new file mode 100644
index 0000000000..cfd0dec373
--- /dev/null
+++ b/app/Census/CensusOfDenmark1801.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfDenmark1801 extends CensusOfDenmark implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 FEB 1801';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfDenmark1834.php b/app/Census/CensusOfDenmark1834.php
new file mode 100644
index 0000000000..2559f41f13
--- /dev/null
+++ b/app/Census/CensusOfDenmark1834.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfDenmark1834 extends CensusOfDenmark implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '18 FEB 1834';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfDenmark1840.php b/app/Census/CensusOfDenmark1840.php
new file mode 100644
index 0000000000..6f0f518622
--- /dev/null
+++ b/app/Census/CensusOfDenmark1840.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfDenmark1840 extends CensusOfDenmark implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 FEB 1840';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfDenmark1845.php b/app/Census/CensusOfDenmark1845.php
new file mode 100644
index 0000000000..fe33b8503f
--- /dev/null
+++ b/app/Census/CensusOfDenmark1845.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfDenmark1845 extends CensusOfDenmark implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 FEB 1845';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfDenmark1850.php b/app/Census/CensusOfDenmark1850.php
new file mode 100644
index 0000000000..4fba7f8952
--- /dev/null
+++ b/app/Census/CensusOfDenmark1850.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfDenmark1850 extends CensusOfDenmark implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 FEB 1850';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfDenmark1855.php b/app/Census/CensusOfDenmark1855.php
new file mode 100644
index 0000000000..8f3fb23b2b
--- /dev/null
+++ b/app/Census/CensusOfDenmark1855.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfDenmark1855 extends CensusOfDenmark implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 FEB 1855';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfDenmark1860.php b/app/Census/CensusOfDenmark1860.php
new file mode 100644
index 0000000000..752fab04f8
--- /dev/null
+++ b/app/Census/CensusOfDenmark1860.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfDenmark1860 extends CensusOfDenmark implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 FEB 1860';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfDenmark1870.php b/app/Census/CensusOfDenmark1870.php
new file mode 100644
index 0000000000..e560b7e78b
--- /dev/null
+++ b/app/Census/CensusOfDenmark1870.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfDenmark1870 extends CensusOfDenmark implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 FEB 1870';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfDenmark1880.php b/app/Census/CensusOfDenmark1880.php
new file mode 100644
index 0000000000..944ca9c260
--- /dev/null
+++ b/app/Census/CensusOfDenmark1880.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfDenmark1880 extends CensusOfDenmark implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 FEB 1880';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfDenmark1890.php b/app/Census/CensusOfDenmark1890.php
new file mode 100644
index 0000000000..bbb567d675
--- /dev/null
+++ b/app/Census/CensusOfDenmark1890.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfDenmark1890 extends CensusOfDenmark implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 FEB 1890';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfDenmark1901.php b/app/Census/CensusOfDenmark1901.php
new file mode 100644
index 0000000000..2230d4c90d
--- /dev/null
+++ b/app/Census/CensusOfDenmark1901.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfDenmark1901 extends CensusOfDenmark implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 FEB 1901';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfDenmark1906.php b/app/Census/CensusOfDenmark1906.php
new file mode 100644
index 0000000000..780697689b
--- /dev/null
+++ b/app/Census/CensusOfDenmark1906.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfDenmark1906 extends CensusOfDenmark implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 FEB 1906';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfDenmark1911.php b/app/Census/CensusOfDenmark1911.php
new file mode 100644
index 0000000000..cc0fcde5b1
--- /dev/null
+++ b/app/Census/CensusOfDenmark1911.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfDenmark1911 extends CensusOfDenmark implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 FEB 1911';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfDenmark1916.php b/app/Census/CensusOfDenmark1916.php
new file mode 100644
index 0000000000..c80e9ce04e
--- /dev/null
+++ b/app/Census/CensusOfDenmark1916.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfDenmark1916 extends CensusOfDenmark implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 FEB 1916';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfDenmark1921.php b/app/Census/CensusOfDenmark1921.php
new file mode 100644
index 0000000000..92ce3a3f78
--- /dev/null
+++ b/app/Census/CensusOfDenmark1921.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfDenmark1921 extends CensusOfDenmark implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 FEB 1921';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfDenmark1925.php b/app/Census/CensusOfDenmark1925.php
new file mode 100644
index 0000000000..66ddd1e914
--- /dev/null
+++ b/app/Census/CensusOfDenmark1925.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfDenmark1925 extends CensusOfDenmark implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '05 NOV 1925';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfDenmark1930.php b/app/Census/CensusOfDenmark1930.php
new file mode 100644
index 0000000000..ec266b79cb
--- /dev/null
+++ b/app/Census/CensusOfDenmark1930.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfDenmark1930 extends CensusOfDenmark implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '05 NOV 1930';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfEngland1841.php b/app/Census/CensusOfEngland1841.php
new file mode 100644
index 0000000000..567b232bec
--- /dev/null
+++ b/app/Census/CensusOfEngland1841.php
@@ -0,0 +1,53 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfEngland1841 extends CensusOfEngland implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '06 MAY 1841';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnAge($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfEngland1851.php b/app/Census/CensusOfEngland1851.php
new file mode 100644
index 0000000000..b72c695dfc
--- /dev/null
+++ b/app/Census/CensusOfEngland1851.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfEngland1851 extends CensusOfEngland implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '30 FEB 1851';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfEngland1861.php b/app/Census/CensusOfEngland1861.php
new file mode 100644
index 0000000000..fee49df523
--- /dev/null
+++ b/app/Census/CensusOfEngland1861.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfEngland1861 extends CensusOfEngland implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '07 MAR 1861';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfEngland1871.php b/app/Census/CensusOfEngland1871.php
new file mode 100644
index 0000000000..3381f86840
--- /dev/null
+++ b/app/Census/CensusOfEngland1871.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfEngland1871 extends CensusOfEngland implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '02 MAR 1871';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfEngland1881.php b/app/Census/CensusOfEngland1881.php
new file mode 100644
index 0000000000..1f91258a8b
--- /dev/null
+++ b/app/Census/CensusOfEngland1881.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfEngland1881 extends CensusOfEngland implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '03 MAR 1881';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfEngland1891.php b/app/Census/CensusOfEngland1891.php
new file mode 100644
index 0000000000..fc2e20f20b
--- /dev/null
+++ b/app/Census/CensusOfEngland1891.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfEngland1891 extends CensusOfEngland implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '05 MAR 1891';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfEngland1901.php b/app/Census/CensusOfEngland1901.php
new file mode 100644
index 0000000000..5cca09cbb8
--- /dev/null
+++ b/app/Census/CensusOfEngland1901.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfEngland1901 extends CensusOfEngland implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '31 FEB 1901';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfEngland1911.php b/app/Census/CensusOfEngland1911.php
new file mode 100644
index 0000000000..153ae6e9ad
--- /dev/null
+++ b/app/Census/CensusOfEngland1911.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfEngland1911 extends CensusOfEngland implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '02 MAR 1911';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfFrance.php b/app/Census/CensusOfFrance.php
new file mode 100644
index 0000000000..0371da088f
--- /dev/null
+++ b/app/Census/CensusOfFrance.php
@@ -0,0 +1,56 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfFrance extends CensusPlace implements CensusPlaceInterface {
+ /**
+ * All available censuses for this census place.
+ *
+ * @return CensusInterface[]
+ */
+ public function allCensusDates() {
+ return array(
+ new CensusOfFrance1836(),
+ new CensusOfFrance1841(),
+ new CensusOfFrance1846(),
+ new CensusOfFrance1851(),
+ new CensusOfFrance1856(),
+ new CensusOfFrance1861(),
+ new CensusOfFrance1866(),
+ new CensusOfFrance1872(),
+ new CensusOfFrance1876(),
+ new CensusOfFrance1881(),
+ new CensusOfFrance1886(),
+ new CensusOfFrance1891(),
+ new CensusOfFrance1896(),
+ new CensusOfFrance1901(),
+ new CensusOfFrance1906(),
+ new CensusOfFrance1911(),
+ );
+ }
+
+ /**
+ * Where did this census occur, in GEDCOM format.
+ *
+ * @return string
+ */
+ public function censusPlace() {
+ return 'France';
+ }
+}
diff --git a/app/Census/CensusOfFrance1836.php b/app/Census/CensusOfFrance1836.php
new file mode 100644
index 0000000000..48b82c07bd
--- /dev/null
+++ b/app/Census/CensusOfFrance1836.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfFrance1836 extends CensusOfFrance implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '1836';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfFrance1841.php b/app/Census/CensusOfFrance1841.php
new file mode 100644
index 0000000000..1e0b0d0ef9
--- /dev/null
+++ b/app/Census/CensusOfFrance1841.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfFrance1841 extends CensusOfFrance implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '1841';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfFrance1846.php b/app/Census/CensusOfFrance1846.php
new file mode 100644
index 0000000000..810c4bad86
--- /dev/null
+++ b/app/Census/CensusOfFrance1846.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfFrance1846 extends CensusOfFrance implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '1846';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfFrance1851.php b/app/Census/CensusOfFrance1851.php
new file mode 100644
index 0000000000..b707bb2893
--- /dev/null
+++ b/app/Census/CensusOfFrance1851.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfFrance1851 extends CensusOfFrance implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '1851';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfFrance1856.php b/app/Census/CensusOfFrance1856.php
new file mode 100644
index 0000000000..7f508bcd94
--- /dev/null
+++ b/app/Census/CensusOfFrance1856.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfFrance1856 extends CensusOfFrance implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '1856';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfFrance1861.php b/app/Census/CensusOfFrance1861.php
new file mode 100644
index 0000000000..7bb037b043
--- /dev/null
+++ b/app/Census/CensusOfFrance1861.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfFrance1861 extends CensusOfFrance implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '1861';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfFrance1866.php b/app/Census/CensusOfFrance1866.php
new file mode 100644
index 0000000000..29fa2d5c72
--- /dev/null
+++ b/app/Census/CensusOfFrance1866.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfFrance1866 extends CensusOfFrance implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '1866';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfFrance1872.php b/app/Census/CensusOfFrance1872.php
new file mode 100644
index 0000000000..80499ad3c1
--- /dev/null
+++ b/app/Census/CensusOfFrance1872.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfFrance1872 extends CensusOfFrance implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '1872';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfFrance1876.php b/app/Census/CensusOfFrance1876.php
new file mode 100644
index 0000000000..e1328de228
--- /dev/null
+++ b/app/Census/CensusOfFrance1876.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfFrance1876 extends CensusOfFrance implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '1876';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfFrance1881.php b/app/Census/CensusOfFrance1881.php
new file mode 100644
index 0000000000..cd0fe8c834
--- /dev/null
+++ b/app/Census/CensusOfFrance1881.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfFrance1881 extends CensusOfFrance implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '1881';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfFrance1886.php b/app/Census/CensusOfFrance1886.php
new file mode 100644
index 0000000000..d39b5c4d8c
--- /dev/null
+++ b/app/Census/CensusOfFrance1886.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfFrance1886 extends CensusOfFrance implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '1886';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfFrance1891.php b/app/Census/CensusOfFrance1891.php
new file mode 100644
index 0000000000..330de94ab1
--- /dev/null
+++ b/app/Census/CensusOfFrance1891.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfFrance1891 extends CensusOfFrance implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '1891';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfFrance1896.php b/app/Census/CensusOfFrance1896.php
new file mode 100644
index 0000000000..c34a3af01c
--- /dev/null
+++ b/app/Census/CensusOfFrance1896.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfFrance1896 extends CensusOfFrance implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '1896';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfFrance1901.php b/app/Census/CensusOfFrance1901.php
new file mode 100644
index 0000000000..f2506256f4
--- /dev/null
+++ b/app/Census/CensusOfFrance1901.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfFrance1901 extends CensusOfFrance implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '1901';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfFrance1906.php b/app/Census/CensusOfFrance1906.php
new file mode 100644
index 0000000000..863d477485
--- /dev/null
+++ b/app/Census/CensusOfFrance1906.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfFrance1906 extends CensusOfFrance implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '1906';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfFrance1911.php b/app/Census/CensusOfFrance1911.php
new file mode 100644
index 0000000000..84d565294e
--- /dev/null
+++ b/app/Census/CensusOfFrance1911.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfFrance1911 extends CensusOfFrance implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '1911';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfOfEngland.php b/app/Census/CensusOfOfEngland.php
new file mode 100644
index 0000000000..2f74256337
--- /dev/null
+++ b/app/Census/CensusOfOfEngland.php
@@ -0,0 +1,48 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfEngland extends CensusPlace implements CensusPlaceInterface {
+ /**
+ * All available censuses for this census place.
+ *
+ * @return CensusInterface[]
+ */
+ public function allCensusDates() {
+ return array(
+ new CensusOfEngland1841(),
+ new CensusOfEngland1851(),
+ new CensusOfEngland1861(),
+ new CensusOfEngland1871(),
+ new CensusOfEngland1881(),
+ new CensusOfEngland1891(),
+ new CensusOfEngland1901(),
+ new CensusOfEngland1911(),
+ );
+ }
+
+ /**
+ * Where did this census occur, in GEDCOM format.
+ *
+ * @return string
+ */
+ public function censusPlace() {
+ return 'England';
+ }
+}
diff --git a/app/Census/CensusOfScotland.php b/app/Census/CensusOfScotland.php
new file mode 100644
index 0000000000..efe33eeeb6
--- /dev/null
+++ b/app/Census/CensusOfScotland.php
@@ -0,0 +1,48 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfScotland extends CensusPlace implements CensusPlaceInterface {
+ /**
+ * All available censuses for this census place.
+ *
+ * @return CensusInterface[]
+ */
+ public function allCensusDates() {
+ return array(
+ new CensusOfScotland1841(),
+ new CensusOfScotland1851(),
+ new CensusOfScotland1861(),
+ new CensusOfScotland1871(),
+ new CensusOfScotland1881(),
+ new CensusOfScotland1891(),
+ new CensusOfScotland1901(),
+ new CensusOfScotland1911(),
+ );
+ }
+
+ /**
+ * Where did this census occur, in GEDCOM format.
+ *
+ * @return string
+ */
+ public function censusPlace() {
+ return 'Scotland';
+ }
+}
diff --git a/app/Census/CensusOfScotland1841.php b/app/Census/CensusOfScotland1841.php
new file mode 100644
index 0000000000..b33f606625
--- /dev/null
+++ b/app/Census/CensusOfScotland1841.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfScotland1841 extends CensusOfScotland implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '06 MAY 1841';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfScotland1851.php b/app/Census/CensusOfScotland1851.php
new file mode 100644
index 0000000000..f5edee9714
--- /dev/null
+++ b/app/Census/CensusOfScotland1851.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfScotland1851 extends CensusOfScotland implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '30 FEB 1851';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfScotland1861.php b/app/Census/CensusOfScotland1861.php
new file mode 100644
index 0000000000..dfd5bb11b6
--- /dev/null
+++ b/app/Census/CensusOfScotland1861.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfScotland1861 extends CensusOfScotland implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '07 MAR 1861';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfScotland1871.php b/app/Census/CensusOfScotland1871.php
new file mode 100644
index 0000000000..d5d09df38d
--- /dev/null
+++ b/app/Census/CensusOfScotland1871.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfScotland1871 extends CensusOfScotland implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '02 MAR 1871';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfScotland1881.php b/app/Census/CensusOfScotland1881.php
new file mode 100644
index 0000000000..e9a92d3c9b
--- /dev/null
+++ b/app/Census/CensusOfScotland1881.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfScotland1881 extends CensusOfScotland implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '03 MAR 1881';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfScotland1891.php b/app/Census/CensusOfScotland1891.php
new file mode 100644
index 0000000000..0dc58e986f
--- /dev/null
+++ b/app/Census/CensusOfScotland1891.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfScotland1891 extends CensusOfScotland implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '05 MAR 1891';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfScotland1901.php b/app/Census/CensusOfScotland1901.php
new file mode 100644
index 0000000000..4005574c5e
--- /dev/null
+++ b/app/Census/CensusOfScotland1901.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfScotland1901 extends CensusOfScotland implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '31 FEB 1901';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfScotland1911.php b/app/Census/CensusOfScotland1911.php
new file mode 100644
index 0000000000..d953405d76
--- /dev/null
+++ b/app/Census/CensusOfScotland1911.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfScotland1911 extends CensusOfScotland implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '02 MAR 1911';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfUnitedStates.php b/app/Census/CensusOfUnitedStates.php
new file mode 100644
index 0000000000..74491e257f
--- /dev/null
+++ b/app/Census/CensusOfUnitedStates.php
@@ -0,0 +1,56 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfUnitedStates extends CensusPlace implements CensusPlaceInterface {
+ /**
+ * All available censuses for this census place.
+ *
+ * @return CensusInterface[]
+ */
+ public function allCensusDates() {
+ return array(
+ new CensusOfUnitedStates1790(),
+ new CensusOfUnitedStates1800(),
+ new CensusOfUnitedStates1810(),
+ new CensusOfUnitedStates1820(),
+ new CensusOfUnitedStates1830(),
+ new CensusOfUnitedStates1840(),
+ new CensusOfUnitedStates1850(),
+ new CensusOfUnitedStates1860(),
+ new CensusOfUnitedStates1870(),
+ new CensusOfUnitedStates1880(),
+ new CensusOfUnitedStates1890(),
+ new CensusOfUnitedStates1900(),
+ new CensusOfUnitedStates1910(),
+ new CensusOfUnitedStates1920(),
+ new CensusOfUnitedStates1930(),
+ new CensusOfUnitedStates1940(),
+ );
+ }
+
+ /**
+ * Where did this census occur, in GEDCOM format.
+ *
+ * @return string
+ */
+ public function censusPlace() {
+ return 'Wales';
+ }
+}
diff --git a/app/Census/CensusOfUnitedStates1790.php b/app/Census/CensusOfUnitedStates1790.php
new file mode 100644
index 0000000000..da97f8fd56
--- /dev/null
+++ b/app/Census/CensusOfUnitedStates1790.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfUnitedStates1790 extends CensusOfUnitedStates implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '02 AUG 1790';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfUnitedStates1800.php b/app/Census/CensusOfUnitedStates1800.php
new file mode 100644
index 0000000000..59072afb76
--- /dev/null
+++ b/app/Census/CensusOfUnitedStates1800.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfUnitedStates1800 extends CensusOfUnitedStates implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '04 AUG 1800';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfUnitedStates1810.php b/app/Census/CensusOfUnitedStates1810.php
new file mode 100644
index 0000000000..8cd8010c2e
--- /dev/null
+++ b/app/Census/CensusOfUnitedStates1810.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfUnitedStates1810 extends CensusOfUnitedStates implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '06 AUG 1810';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfUnitedStates1820.php b/app/Census/CensusOfUnitedStates1820.php
new file mode 100644
index 0000000000..de8132cc87
--- /dev/null
+++ b/app/Census/CensusOfUnitedStates1820.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfUnitedStates1820 extends CensusOfUnitedStates implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '07 AUG 1820';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfUnitedStates1830.php b/app/Census/CensusOfUnitedStates1830.php
new file mode 100644
index 0000000000..d83b65e5bf
--- /dev/null
+++ b/app/Census/CensusOfUnitedStates1830.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfUnitedStates1830 extends CensusOfUnitedStates implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 JUN 1830';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfUnitedStates1840.php b/app/Census/CensusOfUnitedStates1840.php
new file mode 100644
index 0000000000..6535153ab7
--- /dev/null
+++ b/app/Census/CensusOfUnitedStates1840.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfUnitedStates1840 extends CensusOfUnitedStates implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 JUN 1840';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfUnitedStates1850.php b/app/Census/CensusOfUnitedStates1850.php
new file mode 100644
index 0000000000..d1d5018c6b
--- /dev/null
+++ b/app/Census/CensusOfUnitedStates1850.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfUnitedStates1850 extends CensusOfUnitedStates implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 JUN 1850';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfUnitedStates1860.php b/app/Census/CensusOfUnitedStates1860.php
new file mode 100644
index 0000000000..d5b4124f1e
--- /dev/null
+++ b/app/Census/CensusOfUnitedStates1860.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfUnitedStates1860 extends CensusOfUnitedStates implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return 'BET JUN 1860 AND OCT 1860';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfUnitedStates1870.php b/app/Census/CensusOfUnitedStates1870.php
new file mode 100644
index 0000000000..3648a9c674
--- /dev/null
+++ b/app/Census/CensusOfUnitedStates1870.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfUnitedStates1870 extends CensusOfUnitedStates implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return 'JUN 1870';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfUnitedStates1880.php b/app/Census/CensusOfUnitedStates1880.php
new file mode 100644
index 0000000000..43b8ecab4f
--- /dev/null
+++ b/app/Census/CensusOfUnitedStates1880.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfUnitedStates1880 extends CensusOfUnitedStates implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return 'JUN 1880';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfUnitedStates1890.php b/app/Census/CensusOfUnitedStates1890.php
new file mode 100644
index 0000000000..4e88d7a3a9
--- /dev/null
+++ b/app/Census/CensusOfUnitedStates1890.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfUnitedStates1890 extends CensusOfUnitedStates implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '02 JUN 1890';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfUnitedStates1900.php b/app/Census/CensusOfUnitedStates1900.php
new file mode 100644
index 0000000000..e21c87da99
--- /dev/null
+++ b/app/Census/CensusOfUnitedStates1900.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfUnitedStates1900 extends CensusOfUnitedStates implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 JUN 1900';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfUnitedStates1910.php b/app/Census/CensusOfUnitedStates1910.php
new file mode 100644
index 0000000000..be8c66b896
--- /dev/null
+++ b/app/Census/CensusOfUnitedStates1910.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfUnitedStates1910 extends CensusOfUnitedStates implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '15 APR 1910';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfUnitedStates1920.php b/app/Census/CensusOfUnitedStates1920.php
new file mode 100644
index 0000000000..9b77cbcc02
--- /dev/null
+++ b/app/Census/CensusOfUnitedStates1920.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfUnitedStates1920 extends CensusOfUnitedStates implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return 'JAN 1920';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfUnitedStates1930.php b/app/Census/CensusOfUnitedStates1930.php
new file mode 100644
index 0000000000..912466cf8f
--- /dev/null
+++ b/app/Census/CensusOfUnitedStates1930.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfUnitedStates1930 extends CensusOfUnitedStates implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return 'APR 1930';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfUnitedStates1940.php b/app/Census/CensusOfUnitedStates1940.php
new file mode 100644
index 0000000000..911606676c
--- /dev/null
+++ b/app/Census/CensusOfUnitedStates1940.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfUnitedStates1940 extends CensusOfUnitedStates implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '01 APR 1940';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfWales.php b/app/Census/CensusOfWales.php
new file mode 100644
index 0000000000..b68b483d8d
--- /dev/null
+++ b/app/Census/CensusOfWales.php
@@ -0,0 +1,48 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfWales extends CensusPlace implements CensusPlaceInterface {
+ /**
+ * All available censuses for this census place.
+ *
+ * @return CensusInterface[]
+ */
+ public function allCensusDates() {
+ return array(
+ new CensusOfEngland1841(),
+ new CensusOfEngland1851(),
+ new CensusOfEngland1861(),
+ new CensusOfEngland1871(),
+ new CensusOfEngland1881(),
+ new CensusOfEngland1891(),
+ new CensusOfEngland1901(),
+ new CensusOfEngland1911(),
+ );
+ }
+
+ /**
+ * Where did this census occur, in GEDCOM format.
+ *
+ * @return string
+ */
+ public function censusPlace() {
+ return 'Wales';
+ }
+}
diff --git a/app/Census/CensusOfWales1841.php b/app/Census/CensusOfWales1841.php
new file mode 100644
index 0000000000..c43da02742
--- /dev/null
+++ b/app/Census/CensusOfWales1841.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfWales1841 extends CensusOfWales implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '06 MAY 1841';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ new CensusColumnSexMF($individual, $place, $date),
+ new CensusColumnOccupation($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfWales1851.php b/app/Census/CensusOfWales1851.php
new file mode 100644
index 0000000000..d67e65a1f1
--- /dev/null
+++ b/app/Census/CensusOfWales1851.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfWales1851 extends CensusOfWales implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '30 FEB 1851';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfWales1861.php b/app/Census/CensusOfWales1861.php
new file mode 100644
index 0000000000..cd016c4373
--- /dev/null
+++ b/app/Census/CensusOfWales1861.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfWales1861 extends CensusOfWales implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '07 MAR 1861';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfWales1871.php b/app/Census/CensusOfWales1871.php
new file mode 100644
index 0000000000..2a336a2d38
--- /dev/null
+++ b/app/Census/CensusOfWales1871.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfWales1871 extends CensusOfWales implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '02 MAR 1871';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfWales1881.php b/app/Census/CensusOfWales1881.php
new file mode 100644
index 0000000000..44f6334902
--- /dev/null
+++ b/app/Census/CensusOfWales1881.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfWales1881 extends CensusOfWales implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '03 MAR 1881';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfWales1891.php b/app/Census/CensusOfWales1891.php
new file mode 100644
index 0000000000..29addc0f3e
--- /dev/null
+++ b/app/Census/CensusOfWales1891.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfWales1891 extends CensusOfWales implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '05 MAR 1891';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfWales1901.php b/app/Census/CensusOfWales1901.php
new file mode 100644
index 0000000000..8339feeb83
--- /dev/null
+++ b/app/Census/CensusOfWales1901.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfWales1901 extends CensusOfWales implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '31 FEB 1901';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusOfWales1911.php b/app/Census/CensusOfWales1911.php
new file mode 100644
index 0000000000..3ecec5cbba
--- /dev/null
+++ b/app/Census/CensusOfWales1911.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Place;
+
+/**
+ * Definitions for a census
+ */
+class CensusOfWales1911 extends CensusOfWales implements CensusInterface {
+ /**
+ * When did this census occur.
+ *
+ * @return string
+ */
+ public function censusDate() {
+ return '02 MAR 1911';
+ }
+
+ /**
+ * The columns of the census.
+ *
+ * @param Individual $individual
+ *
+ * @return CensusColumnInterface[]
+ */
+ public function columns(Individual $individual) {
+ $place = new Place($this->censusPlace(), $individual->getTree());
+ $date = new Date($this->censusDate());
+
+ return array(
+ new CensusColumnFullName($individual, $place, $date),
+ );
+ }
+}
diff --git a/app/Census/CensusPlace.php b/app/Census/CensusPlace.php
new file mode 100644
index 0000000000..fe585f4a50
--- /dev/null
+++ b/app/Census/CensusPlace.php
@@ -0,0 +1,37 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+use Fisharebest\Webtrees\Date;
+
+/**
+ * Definitions for a census
+ */
+class CensusPlace {
+ /**
+ * @return CensusPlaceInterface[]
+ */
+ public static function allCensusPlaces() {
+ return array(
+ new CensusOfDenmark,
+ new CensusOfEngland,
+ new CensusOfFrance,
+ new CensusOfScotland,
+ new CensusOfUnitedStates,
+ new CensusOfWales,
+ );
+ }
+}
diff --git a/app/Census/CensusPlaceInterface.php b/app/Census/CensusPlaceInterface.php
new file mode 100644
index 0000000000..20fc203e5d
--- /dev/null
+++ b/app/Census/CensusPlaceInterface.php
@@ -0,0 +1,35 @@
+<?php
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2015 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace Fisharebest\Webtrees\Census;
+
+/**
+ * Definitions for a census
+ */
+interface CensusPlaceInterface {
+ /**
+ * All available censuses for this census place.
+ *
+ * @return CensusInterface[]
+ */
+ public function allCensusDates();
+
+ /**
+ * Where did this census occur, in GEDCOM format.
+ *
+ * @return string
+ */
+ public function censusPlace();
+}