xref: /webtrees/app/Location.php (revision e8ded2caa98494ae591747f70ca35e192c898752)
10d15532eSGreg Roach<?php
20d15532eSGreg Roach
30d15532eSGreg Roach/**
40d15532eSGreg Roach * webtrees: online genealogy
589f7189bSGreg Roach * Copyright (C) 2021 webtrees development team
60d15532eSGreg Roach * This program is free software: you can redistribute it and/or modify
70d15532eSGreg Roach * it under the terms of the GNU General Public License as published by
80d15532eSGreg Roach * the Free Software Foundation, either version 3 of the License, or
90d15532eSGreg Roach * (at your option) any later version.
100d15532eSGreg Roach * This program is distributed in the hope that it will be useful,
110d15532eSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
120d15532eSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
130d15532eSGreg Roach * GNU General Public License for more details.
140d15532eSGreg 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/>.
160d15532eSGreg Roach */
170d15532eSGreg Roach
180d15532eSGreg Roachdeclare(strict_types=1);
190d15532eSGreg Roach
200d15532eSGreg Roachnamespace Fisharebest\Webtrees;
210d15532eSGreg Roach
22*e8ded2caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LocationPage;
23*e8ded2caSGreg Roach
240d15532eSGreg Roach/**
250d15532eSGreg Roach * A GEDCOM location (_LOC) object.
260d15532eSGreg Roach */
270d15532eSGreg Roachclass Location extends GedcomRecord
280d15532eSGreg Roach{
290d15532eSGreg Roach    public const RECORD_TYPE = '_LOC';
300d15532eSGreg Roach
31*e8ded2caSGreg Roach    protected const ROUTE_NAME = LocationPage::class;
32*e8ded2caSGreg Roach
330d15532eSGreg Roach    /**
340d15532eSGreg Roach     * Extract names from the GEDCOM record.
350d15532eSGreg Roach     *
360d15532eSGreg Roach     * @return void
370d15532eSGreg Roach     */
380d15532eSGreg Roach    public function extractNames(): void
390d15532eSGreg Roach    {
400d15532eSGreg Roach        $this->extractNamesFromFacts(1, 'NAME', $this->facts(['NAME']));
410d15532eSGreg Roach    }
420d15532eSGreg Roach}
43