xref: /webtrees/app/Module/MissingFactsReportModule.php (revision 7413816e6dd2d50e569034fb804f3dce7471bb94)
13763c3f2SGreg Roach<?php
23976b470SGreg Roach
33763c3f2SGreg Roach/**
43763c3f2SGreg Roach * webtrees: online genealogy
5*d11be702SGreg Roach * Copyright (C) 2023 webtrees development team
63763c3f2SGreg Roach * This program is free software: you can redistribute it and/or modify
73763c3f2SGreg Roach * it under the terms of the GNU General Public License as published by
83763c3f2SGreg Roach * the Free Software Foundation, either version 3 of the License, or
93763c3f2SGreg Roach * (at your option) any later version.
103763c3f2SGreg Roach * This program is distributed in the hope that it will be useful,
113763c3f2SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
123763c3f2SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
133763c3f2SGreg Roach * GNU General Public License for more details.
143763c3f2SGreg 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/>.
163763c3f2SGreg Roach */
17fcfa147eSGreg Roach
18e7f56f2aSGreg Roachdeclare(strict_types=1);
19e7f56f2aSGreg Roach
2076692c8bSGreg Roachnamespace Fisharebest\Webtrees\Module;
2176692c8bSGreg Roach
220e62c4b8SGreg Roachuse Fisharebest\Webtrees\Auth;
230e62c4b8SGreg Roachuse Fisharebest\Webtrees\I18N;
243763c3f2SGreg Roach
253763c3f2SGreg Roach/**
263763c3f2SGreg Roach * Class MissingFactsReportModule
273763c3f2SGreg Roach */
2837eb8894SGreg Roachclass MissingFactsReportModule extends AbstractModule implements ModuleReportInterface
29c1010edaSGreg Roach{
3049a243cbSGreg Roach    use ModuleReportTrait;
3149a243cbSGreg Roach
3249a243cbSGreg Roach    /** @var int The default access level for this module.  It can be changed in the control panel. */
3333c746f1SGreg Roach    protected int $access_level = Auth::PRIV_USER;
3449a243cbSGreg Roach
35961ec755SGreg Roach    /**
360cfd6963SGreg Roach     * How should this module be identified in the control panel, etc.?
37961ec755SGreg Roach     *
38961ec755SGreg Roach     * @return string
39961ec755SGreg Roach     */
4049a243cbSGreg Roach    public function title(): string
41c1010edaSGreg Roach    {
423763c3f2SGreg Roach        // This text also appears in the .XML file - update both together
43bbb76c12SGreg Roach        /* I18N: Name of a module/report */
44bbb76c12SGreg Roach        return I18N::translate('Missing data');
453763c3f2SGreg Roach    }
463763c3f2SGreg Roach
4749a243cbSGreg Roach    public function description(): string
48c1010edaSGreg Roach    {
493763c3f2SGreg Roach        // This text also appears in the .XML file - update both together
50bbb76c12SGreg Roach        /* I18N: Description of the “Missing data” */
51bbb76c12SGreg Roach        return I18N::translate('A report of the information that is missing for an individual and their relatives.');
523763c3f2SGreg Roach    }
533763c3f2SGreg Roach}
54