xref: /webtrees/app/Header.php (revision e873f434551745f888937263ff89e80db3b0f785)
11635452cSGreg Roach<?php
21635452cSGreg Roach
31635452cSGreg Roach/**
41635452cSGreg Roach * webtrees: online genealogy
5d11be702SGreg 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\HeaderPage;
231635452cSGreg Roach
241635452cSGreg Roach/**
251635452cSGreg Roach * A GEDCOM header (HEAD) object.
261635452cSGreg Roach */
271635452cSGreg Roachclass Header extends GedcomRecord
281635452cSGreg Roach{
29*e873f434SGreg Roach    public const string RECORD_TYPE = 'HEAD';
301635452cSGreg Roach
31*e873f434SGreg Roach    protected const string ROUTE_NAME = HeaderPage::class;
321635452cSGreg Roach
331635452cSGreg Roach    /**
341635452cSGreg Roach     * Extract names from the GEDCOM record.
351635452cSGreg Roach     *
361635452cSGreg Roach     * @return void
371635452cSGreg Roach     */
381635452cSGreg Roach    public function extractNames(): void
391635452cSGreg Roach    {
401635452cSGreg Roach        $this->getAllNames[] = [
4102467d32SGreg Roach            'type'   => static::RECORD_TYPE,
421635452cSGreg Roach            'sort'   => I18N::translate('Header'),
431635452cSGreg Roach            'full'   => I18N::translate('Header'),
441635452cSGreg Roach            'fullNN' => I18N::translate('Header'),
451635452cSGreg Roach        ];
461635452cSGreg Roach    }
471635452cSGreg Roach}
48