xref: /webtrees/app/Census/CensusOfSlovakia1869.php (revision c18c4744a7ae8bed371fb70fd4bc0d3c1136358b)
1*c18c4744SGreg Roach<?php
2*c18c4744SGreg Roach
3*c18c4744SGreg Roach/**
4*c18c4744SGreg Roach * webtrees: online genealogy
5*c18c4744SGreg Roach * Copyright (C) 2016 webtrees development team
6*c18c4744SGreg Roach * This program is free software: you can redistribute it and/or modify
7*c18c4744SGreg Roach * it under the terms of the GNU General Public License as published by
8*c18c4744SGreg Roach * the Free Software Foundation, either version 3 of the License, or
9*c18c4744SGreg Roach * (at your option) any later version.
10*c18c4744SGreg Roach * This program is distributed in the hope that it will be useful,
11*c18c4744SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
12*c18c4744SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13*c18c4744SGreg Roach * GNU General Public License for more details.
14*c18c4744SGreg Roach * You should have received a copy of the GNU General Public License
15*c18c4744SGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>.
16*c18c4744SGreg Roach */
17*c18c4744SGreg Roach
18*c18c4744SGreg Roachnamespace Fisharebest\Webtrees\Census;
19*c18c4744SGreg Roach
20*c18c4744SGreg Roach/**
21*c18c4744SGreg Roach * Definitions for a census
22*c18c4744SGreg Roach */
23*c18c4744SGreg Roachclass CensusOfSlovakia1869 extends CensusOfSlovakia implements CensusInterface
24*c18c4744SGreg Roach{
25*c18c4744SGreg Roach    /**
26*c18c4744SGreg Roach     * When did this census occur.
27*c18c4744SGreg Roach     *
28*c18c4744SGreg Roach     * @return string
29*c18c4744SGreg Roach     */
30*c18c4744SGreg Roach    public function censusDate(): string
31*c18c4744SGreg Roach    {
32*c18c4744SGreg Roach        return '31 DEC 1869';
33*c18c4744SGreg Roach    }
34*c18c4744SGreg Roach
35*c18c4744SGreg Roach    /**
36*c18c4744SGreg Roach     * The columns of the census.
37*c18c4744SGreg Roach     *
38*c18c4744SGreg Roach     * @return CensusColumnInterface[]
39*c18c4744SGreg Roach     */
40*c18c4744SGreg Roach    public function columns(): array
41*c18c4744SGreg Roach    {
42*c18c4744SGreg Roach        return [
43*c18c4744SGreg Roach            new CensusColumnNull($this, 'Č. b.', 'Poradové číslo bytu'),
44*c18c4744SGreg Roach            new CensusColumnNull($this, 'Č. os.', 'Poradové číslo osoby'),
45*c18c4744SGreg Roach            new CensusColumnFullName($this, 'Meno', 'Priezvisko a krstné meno, titul'),
46*c18c4744SGreg Roach            new CensusColumnRelationToHead($this, 'Vzťah', 'Postavenie (rodinný vzťah k hlave domácnosti)'),
47*c18c4744SGreg Roach            new CensusColumnSexMZ($this, 'Poh.­', 'Pohlavie'),
48*c18c4744SGreg Roach            new CensusColumnBirthYear($this, 'Nar.­', 'Rok narodenia­'),
49*c18c4744SGreg Roach            new CensusColumnReligion($this, 'Náb.', 'Náboženstvo'),
50*c18c4744SGreg Roach            new CensusColumnNull($this, 'Stav', 'Rodinský stav'),
51*c18c4744SGreg Roach            new CensusColumnOccupation($this, 'Povolanie­', 'Povolanie­'),
52*c18c4744SGreg Roach            new CensusColumnNull($this, 'Zamestnanie­', 'Okolnosti zamestnania'),
53*c18c4744SGreg Roach            new CensusColumnBirthPlace($this, 'Rodisko', 'Rodisko - štát/krajina, stolica/okres/sídlo/vidiek, mesto/obec­'),
54*c18c4744SGreg Roach            new CensusColumnNull($this, 'Dom.­', 'Príslušnosť k obci - zdejší'),
55*c18c4744SGreg Roach            new CensusColumnNull($this, 'Cudz.­', 'Príslušnosť k obci - cudzí'),
56*c18c4744SGreg Roach            new CensusColumnNull($this, 'P. doč.', 'Prítomný dočasne - do jedného mesiaca'),
57*c18c4744SGreg Roach            new CensusColumnNull($this, 'P. trv.', 'Prítomný trvácne'),
58*c18c4744SGreg Roach            new CensusColumnNull($this, 'Vz. doč.', 'Vzdialený dočasne - do jedného mesiaca'),
59*c18c4744SGreg Roach            new CensusColumnNull($this, 'Vz. dlho.', 'Vzdialený dlhodobo - nad jeden mesiac'),
60*c18c4744SGreg Roach            new CensusColumnNull($this, 'Čít.', 'Osoba vie čítať'),
61*c18c4744SGreg Roach            new CensusColumnNull($this, 'Pís.', 'Osoba vie čítať a písať'),
62*c18c4744SGreg Roach            new CensusColumnNull($this, 'Poz.', 'Poznámka'),
63*c18c4744SGreg Roach        ];
64*c18c4744SGreg Roach    }
65*c18c4744SGreg Roach}
66