diff options
| author | glarwill <58348988+glarwill@users.noreply.github.com> | 2021-07-16 07:48:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-16 15:48:58 +0100 |
| commit | da3cb887318b253ac0a743309ac1b537880d6ba2 (patch) | |
| tree | 1ce0799002aea7bb5cfcc684382b6efbe68c1230 /app/Census/CensusOfCanadaPraries1926.php | |
| parent | 4aa3be6dd4f7e3c3cc3f482380e6eed68b8d17ae (diff) | |
| download | webtrees-da3cb887318b253ac0a743309ac1b537880d6ba2.tar.gz webtrees-da3cb887318b253ac0a743309ac1b537880d6ba2.tar.bz2 webtrees-da3cb887318b253ac0a743309ac1b537880d6ba2.zip | |
Canada census 3 (#3936)
* Added 3 years of Canada Census formats
* Added tests for Canadian census data
* Fixed month-day order and moved Canadian to bottom of default
* a bit of cleanup to the spacing, and comments
* Fix style for spacing
* 5 more years of Canadian census documents
* Corrected cp artifact in original file version
* Adjusted date of 1851 Canada census to be in 1851
* Fixed <tab> vs space
* typo
* Adapted to comments
* Removed change in Age.php, per comments
* restored AgeTest
* small clean up, spacing and some comments
Diffstat (limited to 'app/Census/CensusOfCanadaPraries1926.php')
| -rw-r--r-- | app/Census/CensusOfCanadaPraries1926.php | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/app/Census/CensusOfCanadaPraries1926.php b/app/Census/CensusOfCanadaPraries1926.php new file mode 100644 index 0000000000..048e4dd017 --- /dev/null +++ b/app/Census/CensusOfCanadaPraries1926.php @@ -0,0 +1,65 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2021 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 <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Census; + +/** + * Definitions for a census + */ +class CensusOfCanadaPraries1926 extends CensusOfCanada implements CensusInterface +{ + /** + * When did this census occur. + * + * @return string + */ + public function censusDate(): string + { + return '01 JUN 1926'; + } + + /** + * The columns of the census. + * + * @return CensusColumnInterface[] + */ + public function columns(): array + { + return [ + new CensusColumnFullName($this, 'Name', 'Name of each person in family, household or institution'), + new CensusColumnRelationToHeadEnglish($this, 'Relation', 'Relationship to Head of Family or household'), + new CensusColumnSexMF($this, 'Sex', 'Sex'), + new CensusColumnConditionCanada($this, 'S/M/W/D/L', 'Single, Married, Widowed, Divorced or Legally Separated'), + new CensusColumnAge($this, 'Age', 'Age at last birthday - on June 1, 1926'), + new CensusColumnBirthPlaceSimple($this, 'Birth Loc', 'Place of birth of person'), + new CensusColumnFatherBirthPlaceSimple($this, 'FBP', 'Place of birth of father'), + new CensusColumnMotherBirthPlaceSimple($this, 'MBP', 'Place of birth of mother'), + new CensusColumnNull($this, 'Origin', 'Racial or tribal origin'), + new CensusColumnNull($this, 'Yr. immigrated', 'Year of immigration to Canada'), + new CensusColumnNull($this, 'Yr. naturalized', 'Year of naturalization'), + new CensusColumnNull($this, 'Ctznshp', 'Citizenship'), + new CensusColumnNull($this, 'English', 'Can speak English'), + new CensusColumnNull($this, 'French', 'Can speak French'), + new CensusColumnNull($this, 'Other language', 'Mother tongue'), + new CensusColumnNull($this, 'Read', 'Can read'), + new CensusColumnNull($this, 'Write', 'Can write'), + new CensusColumnNull($this, 'Ms school', 'Months at school since Sept. 1, 1925'), + ]; + } +} |
