xref: /webtrees/app/Census/CensusOfUnitedStates1840.php (revision 3e615db9a880f815ae2d87be1487028595c22f43)
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 */
1681d1be7aSGreg Roachnamespace Fisharebest\Webtrees\Census;
1781d1be7aSGreg Roach
1881d1be7aSGreg Roach/**
1981d1be7aSGreg Roach * Definitions for a census
2081d1be7aSGreg Roach */
2181d1be7aSGreg Roachclass CensusOfUnitedStates1840 extends CensusOfUnitedStates implements CensusInterface {
2281d1be7aSGreg Roach	/**
2381d1be7aSGreg Roach	 * When did this census occur.
2481d1be7aSGreg Roach	 *
2581d1be7aSGreg Roach	 * @return string
2681d1be7aSGreg Roach	 */
2781d1be7aSGreg Roach	public function censusDate() {
2881d1be7aSGreg Roach		return '01 JUN 1840';
2981d1be7aSGreg Roach	}
3081d1be7aSGreg Roach
3181d1be7aSGreg Roach	/**
3281d1be7aSGreg Roach	 * The columns of the census.
3381d1be7aSGreg Roach	 *
3481d1be7aSGreg Roach	 * @return CensusColumnInterface[]
3581d1be7aSGreg Roach	 */
3681d1be7aSGreg Roach	public function columns() {
3781d1be7aSGreg Roach		return array(
3881d1be7aSGreg Roach
39*3e615db9SGreg Roach			new CensusColumnFullName($this, 'Name', 'Name of head of family'),
40*3e615db9SGreg Roach			new CensusColumnNull($this, 'M0', 'Free white males 0-5 years'),
41*3e615db9SGreg Roach			new CensusColumnNull($this, 'M5', 'Free white males 5-10 years'),
42*3e615db9SGreg Roach			new CensusColumnNull($this, 'M10', 'Free white males 10-15 years'),
43*3e615db9SGreg Roach			new CensusColumnNull($this, 'M15', 'Free white males 15-20 years'),
44*3e615db9SGreg Roach			new CensusColumnNull($this, 'M20', 'Free white males 20-30 years'),
45*3e615db9SGreg Roach			new CensusColumnNull($this, 'M30', 'Free white males 30-40 years'),
46*3e615db9SGreg Roach			new CensusColumnNull($this, 'M40', 'Free white males 40-50 years'),
47*3e615db9SGreg Roach			new CensusColumnNull($this, 'M50', 'Free white males 50-60 years'),
48*3e615db9SGreg Roach			new CensusColumnNull($this, 'M60', 'Free white males 60-70 years'),
49*3e615db9SGreg Roach			new CensusColumnNull($this, 'M70', 'Free white males 70-80 years'),
50*3e615db9SGreg Roach			new CensusColumnNull($this, 'M80', 'Free white males 80-90 years'),
51*3e615db9SGreg Roach			new CensusColumnNull($this, 'M90', 'Free white males 90-100 years'),
52*3e615db9SGreg Roach			new CensusColumnNull($this, 'M100', 'Free white males 100+ years'),
53*3e615db9SGreg Roach			new CensusColumnNull($this, 'F0', 'Free white females 0-5 years'),
54*3e615db9SGreg Roach			new CensusColumnNull($this, 'F5', 'Free white females 5-10 years'),
55*3e615db9SGreg Roach			new CensusColumnNull($this, 'F10', 'Free white females 10-15 years'),
56*3e615db9SGreg Roach			new CensusColumnNull($this, 'F15', 'Free white females 15-20 years'),
57*3e615db9SGreg Roach			new CensusColumnNull($this, 'F20', 'Free white females 20-30 years'),
58*3e615db9SGreg Roach			new CensusColumnNull($this, 'F30', 'Free white females 30-40 years'),
59*3e615db9SGreg Roach			new CensusColumnNull($this, 'F40', 'Free white females 40-50 years'),
60*3e615db9SGreg Roach			new CensusColumnNull($this, 'F50', 'Free white females 50-60 years'),
61*3e615db9SGreg Roach			new CensusColumnNull($this, 'F60', 'Free white females 60-70 years'),
62*3e615db9SGreg Roach			new CensusColumnNull($this, 'F70', 'Free white females 70-80 years'),
63*3e615db9SGreg Roach			new CensusColumnNull($this, 'F80', 'Free white females 80-90 years'),
64*3e615db9SGreg Roach			new CensusColumnNull($this, 'F90', 'Free white females 90-100 years'),
65*3e615db9SGreg Roach			new CensusColumnNull($this, 'F100', 'Free white females 100+ years'),
66*3e615db9SGreg Roach			new CensusColumnNull($this, 'M0', 'Free colored males 0-10 years'),
67*3e615db9SGreg Roach			new CensusColumnNull($this, 'M10', 'Free colored males 10-24 years'),
68*3e615db9SGreg Roach			new CensusColumnNull($this, 'M24', 'Free colored males 24-36 years'),
69*3e615db9SGreg Roach			new CensusColumnNull($this, 'M36', 'Free colored males 36-55 years'),
70*3e615db9SGreg Roach			new CensusColumnNull($this, 'M55', 'Free colored males 55-100 years'),
71*3e615db9SGreg Roach			new CensusColumnNull($this, 'M100', 'Free colored males 100+ years'),
72*3e615db9SGreg Roach			new CensusColumnNull($this, 'F0', 'Free colored females 0-10 years'),
73*3e615db9SGreg Roach			new CensusColumnNull($this, 'F10', 'Free colored females 10-24 years'),
74*3e615db9SGreg Roach			new CensusColumnNull($this, 'F24', 'Free colored females 24-36 years'),
75*3e615db9SGreg Roach			new CensusColumnNull($this, 'F36', 'Free colored females 36-55 years'),
76*3e615db9SGreg Roach			new CensusColumnNull($this, 'F55', 'Free colored females 55-100 years'),
77*3e615db9SGreg Roach			new CensusColumnNull($this, 'F100', 'Free colored females 100+ years'),
7881d1be7aSGreg Roach		);
7981d1be7aSGreg Roach	}
8081d1be7aSGreg Roach}
81