xref: /webtrees/app/Submission.php (revision d11be7027e34e3121be11cc025421873364403f9)
11635452cSGreg Roach<?php
21635452cSGreg Roach
31635452cSGreg Roach/**
41635452cSGreg Roach * webtrees: online genealogy
5*d11be702SGreg Roach * Copyright (C) 2023 webtrees development team
61635452cSGreg Roach * This program is free software: you can redistribute it and/or modify
71635452cSGreg Roach * it under the terms of the GNU General Public License as published by
81635452cSGreg Roach * the Free Software Foundation, either version 3 of the License, or
91635452cSGreg Roach * (at your option) any later version.
101635452cSGreg Roach * This program is distributed in the hope that it will be useful,
111635452cSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
121635452cSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
131635452cSGreg Roach * GNU General Public License for more details.
141635452cSGreg 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/>.
161635452cSGreg Roach */
171635452cSGreg Roach
181635452cSGreg Roachdeclare(strict_types=1);
191635452cSGreg Roach
201635452cSGreg Roachnamespace Fisharebest\Webtrees;
211635452cSGreg Roach
221635452cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SubmissionPage;
231635452cSGreg Roach
241635452cSGreg Roach/**
251635452cSGreg Roach * A GEDCOM submission (SUBN) object.
261635452cSGreg Roach * These records are only used when transferring data between two obsolete systems.
271635452cSGreg Roach * There is no need to create them - but we may encounter them in imported GEDCOM files.
281635452cSGreg Roach */
291635452cSGreg Roachclass Submission extends GedcomRecord
301635452cSGreg Roach{
311635452cSGreg Roach    public const RECORD_TYPE = 'SUBN';
321635452cSGreg Roach
331635452cSGreg Roach    protected const ROUTE_NAME = SubmissionPage::class;
341635452cSGreg Roach
351635452cSGreg Roach    /**
361635452cSGreg Roach     * Extract names from the GEDCOM record.
371635452cSGreg Roach     *
381635452cSGreg Roach     * @return void
391635452cSGreg Roach     */
401635452cSGreg Roach    public function extractNames(): void
411635452cSGreg Roach    {
421635452cSGreg Roach        $this->getAllNames[] = [
4302467d32SGreg Roach            'type'   => static::RECORD_TYPE,
441635452cSGreg Roach            'sort'   => I18N::translate('Submission'),
451635452cSGreg Roach            'full'   => I18N::translate('Submission'),
461635452cSGreg Roach            'fullNN' => I18N::translate('Submission'),
471635452cSGreg Roach        ];
481635452cSGreg Roach    }
491635452cSGreg Roach}
50