1*5df8e840SDavid Drury<?php 2*5df8e840SDavid Drury/** 3*5df8e840SDavid Drury * webtrees: online genealogy 4*5df8e840SDavid Drury * Copyright (C) 2016 webtrees development team 5*5df8e840SDavid Drury * This program is free software: you can redistribute it and/or modify 6*5df8e840SDavid Drury * it under the terms of the GNU General Public License as published by 7*5df8e840SDavid Drury * the Free Software Foundation, either version 3 of the License, or 8*5df8e840SDavid Drury * (at your option) any later version. 9*5df8e840SDavid Drury * This program is distributed in the hope that it will be useful, 10*5df8e840SDavid Drury * but WITHOUT ANY WARRANTY; without even the implied warranty of 11*5df8e840SDavid Drury * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12*5df8e840SDavid Drury * GNU General Public License for more details. 13*5df8e840SDavid Drury * You should have received a copy of the GNU General Public License 14*5df8e840SDavid Drury * along with this program. If not, see <http://www.gnu.org/licenses/>. 15*5df8e840SDavid Drury */ 16*5df8e840SDavid Drurynamespace Fisharebest\Webtrees\Census; 17*5df8e840SDavid Drury 18*5df8e840SDavid Drury/** 19*5df8e840SDavid Drury * Definitions for a census 20*5df8e840SDavid Drury */ 21*5df8e840SDavid Druryclass RegisterOfWales1939 extends CensusOfWales implements CensusInterface { 22*5df8e840SDavid Drury /** 23*5df8e840SDavid Drury * When did this census occur. 24*5df8e840SDavid Drury * 25*5df8e840SDavid Drury * @return string 26*5df8e840SDavid Drury */ 27*5df8e840SDavid Drury public function censusDate() { 28*5df8e840SDavid Drury return '29 SEP 1939'; 29*5df8e840SDavid Drury } 30*5df8e840SDavid Drury 31*5df8e840SDavid Drury /** 32*5df8e840SDavid Drury * The columns of the census. 33*5df8e840SDavid Drury * 34*5df8e840SDavid Drury * @return CensusColumnInterface[] 35*5df8e840SDavid Drury */ 36*5df8e840SDavid Drury public function columns() { 37*5df8e840SDavid Drury return array( 38*5df8e840SDavid Drury new CensusColumnNull($this, 'Schedule', 'Schedule Number'), 39*5df8e840SDavid Drury new CensusColumnNull($this, 'SubNum', 'Schedule Sub Number'), 40*5df8e840SDavid Drury new CensusColumnSurnameGivenNames($this, 'Name', 'Surname & other names'), 41*5df8e840SDavid Drury new CensusColumnNull($this, 'Role', 'Officer, Visitor, Servant, Patient, Inmate'), 42*5df8e840SDavid Drury new CensusColumnSexMF($this, 'Gender', 'Male or Female'), 43*5df8e840SDavid Drury new CensusColumnBirthDayMonthSlashYear($this, 'DoB', 'Date of birth'), 44*5df8e840SDavid Drury new CensusColumnConditionEnglish($this, 'Marr Status', 'Single, Married, Widowed or Divorced'), 45*5df8e840SDavid Drury new CensusColumnOccupation($this, 'Occupation', 'Occupation') 46*5df8e840SDavid Drury ); 47*5df8e840SDavid Drury } 48*5df8e840SDavid Drury} 49