xref: /webtrees/app/Census/CensusOfUnitedStates1820.php (revision 15d603e7c7c15d20f055d3d9c38d6b133453c5be)
181d1be7aSGreg Roach<?php
281d1be7aSGreg Roach/**
381d1be7aSGreg Roach * webtrees: online genealogy
481d1be7aSGreg Roach * Copyright (C) 2015 webtrees development team
581d1be7aSGreg Roach * This program is free software: you can redistribute it and/or modify
681d1be7aSGreg Roach * it under the terms of the GNU General Public License as published by
781d1be7aSGreg Roach * the Free Software Foundation, either version 3 of the License, or
881d1be7aSGreg Roach * (at your option) any later version.
981d1be7aSGreg Roach * This program is distributed in the hope that it will be useful,
1081d1be7aSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
1181d1be7aSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1281d1be7aSGreg Roach * GNU General Public License for more details.
1381d1be7aSGreg Roach * You should have received a copy of the GNU General Public License
1481d1be7aSGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>.
1581d1be7aSGreg Roach */
16*15d603e7SGreg Roach
1781d1be7aSGreg Roachnamespace Fisharebest\Webtrees\Census;
1881d1be7aSGreg Roach
1981d1be7aSGreg Roach/**
2081d1be7aSGreg Roach * Definitions for a census
2181d1be7aSGreg Roach */
2281d1be7aSGreg Roachclass CensusOfUnitedStates1820 extends CensusOfUnitedStates implements CensusInterface {
2381d1be7aSGreg Roach	/**
2481d1be7aSGreg Roach	 * When did this census occur.
2581d1be7aSGreg Roach	 *
2681d1be7aSGreg Roach	 * @return string
2781d1be7aSGreg Roach	 */
2881d1be7aSGreg Roach	public function censusDate() {
2981d1be7aSGreg Roach		return '07 AUG 1820';
3081d1be7aSGreg Roach	}
3181d1be7aSGreg Roach
3281d1be7aSGreg Roach	/**
3381d1be7aSGreg Roach	 * The columns of the census.
3481d1be7aSGreg Roach	 *
3581d1be7aSGreg Roach	 * @return CensusColumnInterface[]
3681d1be7aSGreg Roach	 */
3781d1be7aSGreg Roach
3881d1be7aSGreg Roach	public function columns() {
3913abd6f3SGreg Roach		return [
403e615db9SGreg Roach			new CensusColumnFullName($this, 'Name', 'Name of head of family'),
413e615db9SGreg Roach			new CensusColumnNull($this, 'M0-10', 'Free white males 0-10 years'),
423e615db9SGreg Roach			new CensusColumnNull($this, 'M10-16', 'Free white males 10-16 years'),
433e615db9SGreg Roach			new CensusColumnNull($this, 'M16-18', 'Free white males 16-18 years'),
443e615db9SGreg Roach			new CensusColumnNull($this, 'M16-26', 'Free white males 16-26 years'),
453e615db9SGreg Roach			new CensusColumnNull($this, 'M26-45', 'Free white males 26-45 years'),
463e615db9SGreg Roach			new CensusColumnNull($this, 'M45+', 'Free white males 45+ years'),
473e615db9SGreg Roach			new CensusColumnNull($this, 'F0-10', 'Free white females 0-10 years'),
483e615db9SGreg Roach			new CensusColumnNull($this, 'F10-16', 'Free white females 10-16 years'),
493e615db9SGreg Roach			new CensusColumnNull($this, 'F16-26', 'Free white females 16-26 years'),
503e615db9SGreg Roach			new CensusColumnNull($this, 'F26-45', 'Free white females 26-45 years'),
513e615db9SGreg Roach			new CensusColumnNull($this, 'F45+', 'Free white females 45+ years'),
5281d1be7aSGreg Roach			new CensusColumnNull($this, 'FNR', 'Foreigners not naturalized'),
5381d1be7aSGreg Roach			new CensusColumnNull($this, 'AG', 'No. engaged in agriculture'),
5481d1be7aSGreg Roach			new CensusColumnNull($this, 'COM', 'No. engaged in commerce'),
5581d1be7aSGreg Roach			new CensusColumnNull($this, 'MNF', 'No. engaged in manufactures'),
563e615db9SGreg Roach			new CensusColumnNull($this, 'M0', 'Slave males 0-14 years'),
573e615db9SGreg Roach			new CensusColumnNull($this, 'M14', 'Slave males 14-26 years'),
583e615db9SGreg Roach			new CensusColumnNull($this, 'M26', 'Slave males 26-45 years'),
593e615db9SGreg Roach			new CensusColumnNull($this, 'M45', 'Slave males 45+ years'),
603e615db9SGreg Roach			new CensusColumnNull($this, 'F0', 'Slave females 0-14 years'),
613e615db9SGreg Roach			new CensusColumnNull($this, 'F14', 'Slave females 14-26 years'),
623e615db9SGreg Roach			new CensusColumnNull($this, 'F26', 'Slave females 26-45 years'),
633e615db9SGreg Roach			new CensusColumnNull($this, 'F45', 'Slave females 45+ years'),
643e615db9SGreg Roach			new CensusColumnNull($this, 'M0', 'Free colored males 0-14 years'),
653e615db9SGreg Roach			new CensusColumnNull($this, 'M14', 'Free colored males 14-26 years'),
663e615db9SGreg Roach			new CensusColumnNull($this, 'M26', 'Free colored males 26-45 years'),
673e615db9SGreg Roach			new CensusColumnNull($this, 'M45', 'Free colored males 45+ years'),
683e615db9SGreg Roach			new CensusColumnNull($this, 'F0', 'Free colored females 0-14 years'),
693e615db9SGreg Roach			new CensusColumnNull($this, 'F14', 'Free colored females 14-26 years'),
703e615db9SGreg Roach			new CensusColumnNull($this, 'F26', 'Free colored females 26-45 years'),
713e615db9SGreg Roach			new CensusColumnNull($this, 'F45', 'Free colored females 45+ years'),
7213abd6f3SGreg Roach		];
7381d1be7aSGreg Roach	}
7481d1be7aSGreg Roach}
75