1*3d2c98d1SGreg Roach<?php 2*3d2c98d1SGreg Roach 3*3d2c98d1SGreg Roach/** 4*3d2c98d1SGreg Roach * webtrees: online genealogy 5*3d2c98d1SGreg Roach * Copyright (C) 2021 webtrees development team 6*3d2c98d1SGreg Roach * This program is free software: you can redistribute it and/or modify 7*3d2c98d1SGreg Roach * it under the terms of the GNU General Public License as published by 8*3d2c98d1SGreg Roach * the Free Software Foundation, either version 3 of the License, or 9*3d2c98d1SGreg Roach * (at your option) any later version. 10*3d2c98d1SGreg Roach * This program is distributed in the hope that it will be useful, 11*3d2c98d1SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 12*3d2c98d1SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13*3d2c98d1SGreg Roach * GNU General Public License for more details. 14*3d2c98d1SGreg Roach * You should have received a copy of the GNU General Public License 15*3d2c98d1SGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>. 16*3d2c98d1SGreg Roach */ 17*3d2c98d1SGreg Roach 18*3d2c98d1SGreg Roachdeclare(strict_types=1); 19*3d2c98d1SGreg Roach 20*3d2c98d1SGreg Roachnamespace Fisharebest\Webtrees\Elements; 21*3d2c98d1SGreg Roach 22*3d2c98d1SGreg Roachuse Fisharebest\Webtrees\I18N; 23*3d2c98d1SGreg Roachuse Fisharebest\Webtrees\Tree; 24*3d2c98d1SGreg Roach 25*3d2c98d1SGreg Roach/** 26*3d2c98d1SGreg Roach * <TYPE_OF_TODO>:= Status, by values [ open | completed | auto ] 27*3d2c98d1SGreg Roach * ("auto" = created by the program) 28*3d2c98d1SGreg Roach */ 29*3d2c98d1SGreg Roachclass ResearchTaskStatus extends AbstractElement 30*3d2c98d1SGreg Roach{ 31*3d2c98d1SGreg Roach /** 32*3d2c98d1SGreg Roach * Create a default value for this element. 33*3d2c98d1SGreg Roach * 34*3d2c98d1SGreg Roach * @param Tree $tree 35*3d2c98d1SGreg Roach * 36*3d2c98d1SGreg Roach * @return string 37*3d2c98d1SGreg Roach */ 38*3d2c98d1SGreg Roach public function default(Tree $tree): string 39*3d2c98d1SGreg Roach { 40*3d2c98d1SGreg Roach return '1'; 41*3d2c98d1SGreg Roach } 42*3d2c98d1SGreg Roach /** 43*3d2c98d1SGreg Roach * A list of controlled values for this element 44*3d2c98d1SGreg Roach * 45*3d2c98d1SGreg Roach * @return array<int|string,string> 46*3d2c98d1SGreg Roach */ 47*3d2c98d1SGreg Roach public function values(): array 48*3d2c98d1SGreg Roach { 49*3d2c98d1SGreg Roach return [ 50*3d2c98d1SGreg Roach '' => '', 51*3d2c98d1SGreg Roach 'open' => I18N::translate('Research'), 52*3d2c98d1SGreg Roach 'completed' => I18N::translate('Correspondence'), 53*3d2c98d1SGreg Roach 'auto' => I18N::translate('Other'), 54*3d2c98d1SGreg Roach ]; 55*3d2c98d1SGreg Roach } 56*3d2c98d1SGreg Roach} 57