xref: /webtrees/app/Module/MissingFactsReportModule.php (revision e2a378d30d9bd3fff591da7a11c7cb5ead502323)
13763c3f2SGreg Roach<?php
23763c3f2SGreg Roachnamespace Fisharebest\Webtrees;
33763c3f2SGreg Roach
43763c3f2SGreg Roach/**
53763c3f2SGreg Roach * webtrees: online genealogy
63763c3f2SGreg Roach * Copyright (C) 2015 webtrees development team
73763c3f2SGreg Roach * This program is free software: you can redistribute it and/or modify
83763c3f2SGreg Roach * it under the terms of the GNU General Public License as published by
93763c3f2SGreg Roach * the Free Software Foundation, either version 3 of the License, or
103763c3f2SGreg Roach * (at your option) any later version.
113763c3f2SGreg Roach * This program is distributed in the hope that it will be useful,
123763c3f2SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
133763c3f2SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
143763c3f2SGreg Roach * GNU General Public License for more details.
153763c3f2SGreg Roach * You should have received a copy of the GNU General Public License
163763c3f2SGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>.
173763c3f2SGreg Roach */
183763c3f2SGreg Roach
193763c3f2SGreg Roach/**
203763c3f2SGreg Roach * Class MissingFactsReportModule
213763c3f2SGreg Roach */
22*e2a378d3SGreg Roachclass MissingFactsReportModule extends AbstractModule implements ModuleReportInterface {
233763c3f2SGreg Roach	/** {@inheritdoc} */
243763c3f2SGreg Roach	public function getTitle() {
253763c3f2SGreg Roach		// This text also appears in the .XML file - update both together
263763c3f2SGreg Roach		return /* I18N: Name of a module/report */ I18N::translate('Missing data');
273763c3f2SGreg Roach	}
283763c3f2SGreg Roach
293763c3f2SGreg Roach	/** {@inheritdoc} */
303763c3f2SGreg Roach	public function getDescription() {
313763c3f2SGreg Roach		// This text also appears in the .XML file - update both together
323763c3f2SGreg Roach		return /* I18N: Description of the “Missing data” */ I18N::translate('A report of the information that is missing for an individual and their relatives.');
333763c3f2SGreg Roach	}
343763c3f2SGreg Roach
353763c3f2SGreg Roach	/** {@inheritdoc} */
363763c3f2SGreg Roach	public function defaultAccessLevel() {
373763c3f2SGreg Roach		return Auth::PRIV_USER;
383763c3f2SGreg Roach	}
393763c3f2SGreg Roach
403763c3f2SGreg Roach	/** {@inheritdoc} */
413763c3f2SGreg Roach	public function getReportMenus() {
423763c3f2SGreg Roach		global $WT_TREE;
433763c3f2SGreg Roach
443763c3f2SGreg Roach		$menus = array();
453763c3f2SGreg Roach		$menu = new Menu(
463763c3f2SGreg Roach			$this->getTitle(),
473763c3f2SGreg Roach			'reportengine.php?ged=' . $WT_TREE->getNameUrl() . '&amp;action=setup&amp;report=' . WT_MODULES_DIR . $this->getName() . '/report.xml',
483763c3f2SGreg Roach			'menu-report-' . $this->getName()
493763c3f2SGreg Roach		);
503763c3f2SGreg Roach		$menus[] = $menu;
513763c3f2SGreg Roach
523763c3f2SGreg Roach		return $menus;
533763c3f2SGreg Roach	}
543763c3f2SGreg Roach}
55