xref: /webtrees/app/Module/IndividualListModule.php (revision 00ef1d3af59aba99c1ae5c92c7e655525c97797b)
167992b6aSRichard Cissee<?php
23976b470SGreg Roach
367992b6aSRichard Cissee/**
467992b6aSRichard Cissee * webtrees: online genealogy
5d11be702SGreg Roach * Copyright (C) 2023 webtrees development team
667992b6aSRichard Cissee * This program is free software: you can redistribute it and/or modify
767992b6aSRichard Cissee * it under the terms of the GNU General Public License as published by
867992b6aSRichard Cissee * the Free Software Foundation, either version 3 of the License, or
967992b6aSRichard Cissee * (at your option) any later version.
1067992b6aSRichard Cissee * This program is distributed in the hope that it will be useful,
1167992b6aSRichard Cissee * but WITHOUT ANY WARRANTY; without even the implied warranty of
1267992b6aSRichard Cissee * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1367992b6aSRichard Cissee * GNU General Public License for more details.
1467992b6aSRichard Cissee * 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/>.
1667992b6aSRichard Cissee */
17fcfa147eSGreg Roach
1867992b6aSRichard Cisseedeclare(strict_types=1);
1967992b6aSRichard Cissee
2067992b6aSRichard Cisseenamespace Fisharebest\Webtrees\Module;
2167992b6aSRichard Cissee
2206a438b4SGreg Roachuse Fisharebest\Webtrees\I18N;
23f3874e19SGreg Roach
24*00ef1d3aSGreg Roachclass IndividualListModule extends AbstractIndividualListModule
2567992b6aSRichard Cissee{
2667992b6aSRichard Cissee    public function title(): string
2767992b6aSRichard Cissee    {
2867992b6aSRichard Cissee        /* I18N: Name of a module/list */
2967992b6aSRichard Cissee        return I18N::translate('Individuals');
3067992b6aSRichard Cissee    }
3167992b6aSRichard Cissee
3267992b6aSRichard Cissee    public function description(): string
3367992b6aSRichard Cissee    {
34b5e8e56bSGreg Roach        /* I18N: Description of the “Individuals” module */
3567992b6aSRichard Cissee        return I18N::translate('A list of individuals.');
3667992b6aSRichard Cissee    }
3767992b6aSRichard Cissee
3867992b6aSRichard Cissee    public function listMenuClass(): string
3967992b6aSRichard Cissee    {
4067992b6aSRichard Cissee        return 'menu-list-indi';
4167992b6aSRichard Cissee    }
4267992b6aSRichard Cissee
43*00ef1d3aSGreg Roach    protected function showFamilies(): bool
4467992b6aSRichard Cissee    {
45*00ef1d3aSGreg Roach        return false;
4606a438b4SGreg Roach    }
4767992b6aSRichard Cissee
48*00ef1d3aSGreg Roach    protected function routeUrl(): string
4967992b6aSRichard Cissee    {
50*00ef1d3aSGreg Roach        return '/tree/{tree}/individual-list';
5106a438b4SGreg Roach    }
5267992b6aSRichard Cissee}
53