1*4c135060Smikejpr<?php 2*4c135060Smikejpr/** 3*4c135060Smikejpr * webtrees: online genealogy 4*4c135060Smikejpr * Copyright (C) 2016 webtrees development team 5*4c135060Smikejpr * This program is free software: you can redistribute it and/or modify 6*4c135060Smikejpr * it under the terms of the GNU General Public License as published by 7*4c135060Smikejpr * the Free Software Foundation, either version 3 of the License, or 8*4c135060Smikejpr * (at your option) any later version. 9*4c135060Smikejpr * This program is distributed in the hope that it will be useful, 10*4c135060Smikejpr * but WITHOUT ANY WARRANTY; without even the implied warranty of 11*4c135060Smikejpr * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12*4c135060Smikejpr * GNU General Public License for more details. 13*4c135060Smikejpr * You should have received a copy of the GNU General Public License 14*4c135060Smikejpr * along with this program. If not, see <http://www.gnu.org/licenses/>. 15*4c135060Smikejpr */ 16*4c135060Smikejprnamespace Fisharebest\Webtrees\Census; 17*4c135060Smikejpr 18*4c135060Smikejpr/** 19*4c135060Smikejpr * Definitions for a census 20*4c135060Smikejpr */ 21*4c135060Smikejprclass CensusOfFrance1946 extends CensusOfFrance implements CensusInterface { 22*4c135060Smikejpr /** 23*4c135060Smikejpr * When did this census occur. 24*4c135060Smikejpr * 25*4c135060Smikejpr * @return string 26*4c135060Smikejpr */ 27*4c135060Smikejpr public function censusDate() { 28*4c135060Smikejpr return '1946'; 29*4c135060Smikejpr } 30*4c135060Smikejpr 31*4c135060Smikejpr /** 32*4c135060Smikejpr * The columns of the census. 33*4c135060Smikejpr * 34*4c135060Smikejpr * @return CensusColumnInterface[] 35*4c135060Smikejpr */ 36*4c135060Smikejpr public function columns() { 37*4c135060Smikejpr return array( 38*4c135060Smikejpr new CensusColumnSurname($this, 'Nom', 'Nom de famille'), 39*4c135060Smikejpr new CensusColumnGivenNames($this, 'Prénom', 'Prénom'), 40*4c135060Smikejpr new CensusColumnOccupation($this, 'Profession', 'Profession'), 41*4c135060Smikejpr new CensusColumnBirthYear($this, 'Année', 'Année de naissance'), 42*4c135060Smikejpr new CensusColumnRelationToHead($this, 'Position', 'Position dans le ménage'), 43*4c135060Smikejpr new CensusColumnNationality($this, 'Nationalité', 'Nationalité'), 44*4c135060Smikejpr ); 45*4c135060Smikejpr } 46*4c135060Smikejpr} 47