172ef38edSGreg Roach<?php 272ef38edSGreg Roach 372ef38edSGreg Roach/** 472ef38edSGreg Roach * webtrees: online genealogy 5*d11be702SGreg Roach * Copyright (C) 2023 webtrees development team 672ef38edSGreg Roach * This program is free software: you can redistribute it and/or modify 772ef38edSGreg Roach * it under the terms of the GNU General Public License as published by 872ef38edSGreg Roach * the Free Software Foundation, either version 3 of the License, or 972ef38edSGreg Roach * (at your option) any later version. 1072ef38edSGreg Roach * This program is distributed in the hope that it will be useful, 1172ef38edSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 1272ef38edSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1372ef38edSGreg Roach * GNU General Public License for more details. 1472ef38edSGreg Roach * You should have received a copy of the GNU General Public License 1572ef38edSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>. 1672ef38edSGreg Roach */ 1772ef38edSGreg Roach 1872ef38edSGreg Roachdeclare(strict_types=1); 1972ef38edSGreg Roach 2072ef38edSGreg Roachnamespace Fisharebest\Webtrees\Elements; 2172ef38edSGreg Roach 2272ef38edSGreg Roachuse Fisharebest\Webtrees\Tree; 2372ef38edSGreg Roach 2472ef38edSGreg Roach/** 2572ef38edSGreg Roach * Something that needs to be researched at a later date. 2672ef38edSGreg Roach */ 2772ef38edSGreg Roachclass ResearchTask extends AbstractElement 2872ef38edSGreg Roach{ 2972ef38edSGreg Roach protected const SUBTAGS = [ 3072ef38edSGreg Roach 'DATE' => '0:1', 31fa079817SGreg Roach 'NOTE' => '0:M', 3272ef38edSGreg Roach '_WT_USER' => '0:1', 3372ef38edSGreg Roach ]; 3472ef38edSGreg Roach 3572ef38edSGreg Roach /** 3672ef38edSGreg Roach * Convert a value to a canonical form. 3772ef38edSGreg Roach * 3872ef38edSGreg Roach * @param string $value 3972ef38edSGreg Roach * 4072ef38edSGreg Roach * @return string 4172ef38edSGreg Roach */ 4272ef38edSGreg Roach public function canonical(string $value): string 4372ef38edSGreg Roach { 449d477377SGreg Roach return $this->canonicalText($value); 4572ef38edSGreg Roach } 4672ef38edSGreg Roach 4772ef38edSGreg Roach /** 4872ef38edSGreg Roach * An edit control for this data. 4972ef38edSGreg Roach * 5072ef38edSGreg Roach * @param string $id 5172ef38edSGreg Roach * @param string $name 5272ef38edSGreg Roach * @param string $value 5372ef38edSGreg Roach * @param Tree $tree 5472ef38edSGreg Roach * 5572ef38edSGreg Roach * @return string 5672ef38edSGreg Roach */ 5772ef38edSGreg Roach public function edit(string $id, string $name, string $value, Tree $tree): string 5872ef38edSGreg Roach { 5972ef38edSGreg Roach return $this->editTextArea($id, $name, $value); 6072ef38edSGreg Roach } 6172ef38edSGreg Roach} 62