1*3763c3f2SGreg Roach<?php 2*3763c3f2SGreg Roachnamespace Fisharebest\Webtrees; 3*3763c3f2SGreg Roach 4*3763c3f2SGreg Roach/** 5*3763c3f2SGreg Roach * webtrees: online genealogy 6*3763c3f2SGreg Roach * Copyright (C) 2015 webtrees development team 7*3763c3f2SGreg Roach * This program is free software: you can redistribute it and/or modify 8*3763c3f2SGreg Roach * it under the terms of the GNU General Public License as published by 9*3763c3f2SGreg Roach * the Free Software Foundation, either version 3 of the License, or 10*3763c3f2SGreg Roach * (at your option) any later version. 11*3763c3f2SGreg Roach * This program is distributed in the hope that it will be useful, 12*3763c3f2SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 13*3763c3f2SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14*3763c3f2SGreg Roach * GNU General Public License for more details. 15*3763c3f2SGreg Roach * You should have received a copy of the GNU General Public License 16*3763c3f2SGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>. 17*3763c3f2SGreg Roach */ 18*3763c3f2SGreg Roach 19*3763c3f2SGreg Roach/** 20*3763c3f2SGreg Roach * Class MissingFactsReportModule 21*3763c3f2SGreg Roach */ 22*3763c3f2SGreg Roachclass MissingFactsReportModule extends Module implements ModuleReportInterface { 23*3763c3f2SGreg Roach /** {@inheritdoc} */ 24*3763c3f2SGreg Roach public function getTitle() { 25*3763c3f2SGreg Roach // This text also appears in the .XML file - update both together 26*3763c3f2SGreg Roach return /* I18N: Name of a module/report */ I18N::translate('Missing data'); 27*3763c3f2SGreg Roach } 28*3763c3f2SGreg Roach 29*3763c3f2SGreg Roach /** {@inheritdoc} */ 30*3763c3f2SGreg Roach public function getDescription() { 31*3763c3f2SGreg Roach // This text also appears in the .XML file - update both together 32*3763c3f2SGreg Roach return /* I18N: Description of the “Missing data” */ I18N::translate('A report of the information that is missing for an individual and their relatives.'); 33*3763c3f2SGreg Roach } 34*3763c3f2SGreg Roach 35*3763c3f2SGreg Roach /** {@inheritdoc} */ 36*3763c3f2SGreg Roach public function defaultAccessLevel() { 37*3763c3f2SGreg Roach return Auth::PRIV_USER; 38*3763c3f2SGreg Roach } 39*3763c3f2SGreg Roach 40*3763c3f2SGreg Roach /** {@inheritdoc} */ 41*3763c3f2SGreg Roach public function getReportMenus() { 42*3763c3f2SGreg Roach global $WT_TREE; 43*3763c3f2SGreg Roach 44*3763c3f2SGreg Roach $menus = array(); 45*3763c3f2SGreg Roach $menu = new Menu( 46*3763c3f2SGreg Roach $this->getTitle(), 47*3763c3f2SGreg Roach 'reportengine.php?ged=' . $WT_TREE->getNameUrl() . '&action=setup&report=' . WT_MODULES_DIR . $this->getName() . '/report.xml', 48*3763c3f2SGreg Roach 'menu-report-' . $this->getName() 49*3763c3f2SGreg Roach ); 50*3763c3f2SGreg Roach $menus[] = $menu; 51*3763c3f2SGreg Roach 52*3763c3f2SGreg Roach return $menus; 53*3763c3f2SGreg Roach } 54*3763c3f2SGreg Roach} 55