diff options
Diffstat (limited to 'modules_v3/GEDFact_assistant/module.php')
| -rw-r--r-- | modules_v3/GEDFact_assistant/module.php | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/modules_v3/GEDFact_assistant/module.php b/modules_v3/GEDFact_assistant/module.php new file mode 100644 index 0000000000..4612a1f1c6 --- /dev/null +++ b/modules_v3/GEDFact_assistant/module.php @@ -0,0 +1,57 @@ +<?php +// Classes and libraries for module system +// +// webtrees: Web based Family History software +// Copyright (C) 2011 webtrees development team. +// +// Derived from PhpGedView +// Copyright (C) 2010 John Finlay +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// $Id$ + +if (!defined('WT_WEBTREES')) { + header('HTTP/1.0 403 Forbidden'); + exit; +} + +class GEDFact_assistant_WT_Module extends WT_Module { + // Extend WT_Module + public function getTitle() { + return /* I18N: Name of a module */ WT_I18N::translate('Census assistant'); + } + + // Extend WT_Module + public function getDescription() { + return /* I18N: Description of the "Census assistant" module */ WT_I18N::translate('An alternative way to enter census transcripts and link them to individuals.'); + } + + // Extend WT_Module + public function modAction($mod_action) { + switch($mod_action) { + case '_CENS/census_3_find': + // TODO: this file should be a method in this class + require WT_ROOT.WT_MODULES_DIR.$this->getName().'/'.$mod_action.'.php'; + break; + case '_MEDIA/media_3_find': + // TODO: this file should be a method in this class + require WT_ROOT.WT_MODULES_DIR.$this->getName().'/'.$mod_action.'.php'; + break; + default: + header('HTTP/1.0 404 Not Found'); + } + } +} |
