13763c3f2SGreg Roach<?php 23763c3f2SGreg Roach/** 33763c3f2SGreg Roach * webtrees: online genealogy 4369c0ce6SGreg Roach * Copyright (C) 2016 webtrees development team 53763c3f2SGreg Roach * This program is free software: you can redistribute it and/or modify 63763c3f2SGreg Roach * it under the terms of the GNU General Public License as published by 73763c3f2SGreg Roach * the Free Software Foundation, either version 3 of the License, or 83763c3f2SGreg Roach * (at your option) any later version. 93763c3f2SGreg Roach * This program is distributed in the hope that it will be useful, 103763c3f2SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 113763c3f2SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 123763c3f2SGreg Roach * GNU General Public License for more details. 133763c3f2SGreg Roach * You should have received a copy of the GNU General Public License 143763c3f2SGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>. 153763c3f2SGreg Roach */ 1676692c8bSGreg Roachnamespace Fisharebest\Webtrees\Module; 1776692c8bSGreg Roach 180e62c4b8SGreg Roachuse Fisharebest\Webtrees\Auth; 190e62c4b8SGreg Roachuse Fisharebest\Webtrees\I18N; 200e62c4b8SGreg Roachuse Fisharebest\Webtrees\Menu; 213763c3f2SGreg Roach 223763c3f2SGreg Roach/** 233763c3f2SGreg Roach * Class MissingFactsReportModule 243763c3f2SGreg Roach */ 25e2a378d3SGreg Roachclass MissingFactsReportModule extends AbstractModule implements ModuleReportInterface { 263763c3f2SGreg Roach /** {@inheritdoc} */ 273763c3f2SGreg Roach public function getTitle() { 283763c3f2SGreg Roach // This text also appears in the .XML file - update both together 293763c3f2SGreg Roach return /* I18N: Name of a module/report */ I18N::translate('Missing data'); 303763c3f2SGreg Roach } 313763c3f2SGreg Roach 323763c3f2SGreg Roach /** {@inheritdoc} */ 333763c3f2SGreg Roach public function getDescription() { 343763c3f2SGreg Roach // This text also appears in the .XML file - update both together 353763c3f2SGreg Roach return /* I18N: Description of the “Missing data” */ I18N::translate('A report of the information that is missing for an individual and their relatives.'); 363763c3f2SGreg Roach } 373763c3f2SGreg Roach 380ee13198SGreg Roach /** 390ee13198SGreg Roach * What is the default access level for this module? 400ee13198SGreg Roach * 410ee13198SGreg Roach * Some modules are aimed at admins or managers, and are not generally shown to users. 420ee13198SGreg Roach * 430ee13198SGreg Roach * @return int 440ee13198SGreg Roach */ 453763c3f2SGreg Roach public function defaultAccessLevel() { 463763c3f2SGreg Roach return Auth::PRIV_USER; 473763c3f2SGreg Roach } 483763c3f2SGreg Roach 490ee13198SGreg Roach /** 500ee13198SGreg Roach * Return a menu item for this report. 510ee13198SGreg Roach * 520ee13198SGreg Roach * @return Menu 530ee13198SGreg Roach */ 540ee13198SGreg Roach public function getReportMenu() { 553763c3f2SGreg Roach global $WT_TREE; 563763c3f2SGreg Roach 570ee13198SGreg Roach return new Menu( 583763c3f2SGreg Roach $this->getTitle(), 593763c3f2SGreg Roach 'reportengine.php?ged=' . $WT_TREE->getNameUrl() . '&action=setup&report=' . WT_MODULES_DIR . $this->getName() . '/report.xml', 600ee13198SGreg Roach 'menu-report-' . $this->getName(), 61*13abd6f3SGreg Roach ['rel' => 'nofollow'] 623763c3f2SGreg Roach ); 633763c3f2SGreg Roach } 643763c3f2SGreg Roach} 65