xref: /webtrees/app/Submitter.php (revision d11be7027e34e3121be11cc025421873364403f9)
1ffc0a61fSGreg Roach<?php
2ffc0a61fSGreg Roach
3ffc0a61fSGreg Roach/**
4ffc0a61fSGreg Roach * webtrees: online genealogy
5*d11be702SGreg Roach * Copyright (C) 2023 webtrees development team
6ffc0a61fSGreg Roach * This program is free software: you can redistribute it and/or modify
7ffc0a61fSGreg Roach * it under the terms of the GNU General Public License as published by
8ffc0a61fSGreg Roach * the Free Software Foundation, either version 3 of the License, or
9ffc0a61fSGreg Roach * (at your option) any later version.
10ffc0a61fSGreg Roach * This program is distributed in the hope that it will be useful,
11ffc0a61fSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
12ffc0a61fSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13ffc0a61fSGreg Roach * GNU General Public License for more details.
14ffc0a61fSGreg Roach * You should have received a copy of the GNU General Public License
1589f7189bSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>.
16ffc0a61fSGreg Roach */
17ffc0a61fSGreg Roach
18ffc0a61fSGreg Roachdeclare(strict_types=1);
19ffc0a61fSGreg Roach
20ffc0a61fSGreg Roachnamespace Fisharebest\Webtrees;
21ffc0a61fSGreg Roach
22ffc0a61fSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SubmitterPage;
23ffc0a61fSGreg Roach
24ffc0a61fSGreg Roach/**
25ffc0a61fSGreg Roach * A GEDCOM submitter (SUBM) object.
26ffc0a61fSGreg Roach */
27ffc0a61fSGreg Roachclass Submitter extends GedcomRecord
28ffc0a61fSGreg Roach{
29ffc0a61fSGreg Roach    public const RECORD_TYPE = 'SUBM';
30ffc0a61fSGreg Roach
31ffc0a61fSGreg Roach    protected const ROUTE_NAME = SubmitterPage::class;
32ffc0a61fSGreg Roach
33ffc0a61fSGreg Roach    /**
34ffc0a61fSGreg Roach     * Extract names from the GEDCOM record.
35ffc0a61fSGreg Roach     *
36ffc0a61fSGreg Roach     * @return void
37ffc0a61fSGreg Roach     */
38ffc0a61fSGreg Roach    public function extractNames(): void
39ffc0a61fSGreg Roach    {
40ffc0a61fSGreg Roach        $this->extractNamesFromFacts(1, 'NAME', $this->facts(['NAME']));
41ffc0a61fSGreg Roach    }
42ffc0a61fSGreg Roach}
43