summaryrefslogtreecommitdiff
path: root/app/Module/BatchUpdateModule.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-06-08 15:09:08 +0100
committerGreg Roach <fisharebest@gmail.com>2015-06-08 21:42:34 +0100
commit76692c8b291f16d9251d67f27078779f6737fe7e (patch)
treed92ba170d781d60d4fcff107d5a46bad5bdbce4f /app/Module/BatchUpdateModule.php
parent238d6f46440eb68ffb982a7af1ec9dd37c8e75d7 (diff)
downloadwebtrees-76692c8b291f16d9251d67f27078779f6737fe7e.tar.gz
webtrees-76692c8b291f16d9251d67f27078779f6737fe7e.tar.bz2
webtrees-76692c8b291f16d9251d67f27078779f6737fe7e.zip
PHPDoc
Diffstat (limited to 'app/Module/BatchUpdateModule.php')
-rw-r--r--app/Module/BatchUpdateModule.php30
1 files changed, 24 insertions, 6 deletions
diff --git a/app/Module/BatchUpdateModule.php b/app/Module/BatchUpdateModule.php
index 81dc4913d9..e53468cf62 100644
--- a/app/Module/BatchUpdateModule.php
+++ b/app/Module/BatchUpdateModule.php
@@ -1,6 +1,4 @@
<?php
-namespace Fisharebest\Webtrees\Module;
-
/**
* webtrees: online genealogy
* Copyright (C) 2015 webtrees development team
@@ -15,6 +13,8 @@ namespace Fisharebest\Webtrees\Module;
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+namespace Fisharebest\Webtrees\Module;
+
use Fisharebest\Webtrees\Auth;
use Fisharebest\Webtrees\Controller\PageController;
use Fisharebest\Webtrees\Database;
@@ -68,17 +68,30 @@ class BatchUpdateModule extends AbstractModule implements ModuleConfigInterface
/** @var GedcomRecord The record corresponding to $curr_xref */
private $record;
- /** {@inheritdoc} */
+ /**
+ * How should this module be labelled on tabs, menus, etc.?
+ *
+ * @return string
+ */
public function getTitle() {
return /* I18N: Name of a module */ I18N::translate('Batch update');
}
- /** {@inheritdoc} */
+ /**
+ * A sentence describing what this module does.
+ *
+ * @return string
+ */
public function getDescription() {
return /* I18N: Description of the “Batch update” module */ I18N::translate('Apply automatic corrections to your genealogy data.');
}
- /** {@inheritdoc} */
+ /**
+ * This is a general purpose hook, allowing modules to respond to routes
+ * of the form module.php?mod=FOO&mod_action=BAR
+ *
+ * @param string $mod_action
+ */
public function modAction($mod_action) {
switch ($mod_action) {
case 'admin_batch_update':
@@ -399,7 +412,12 @@ class BatchUpdateModule extends AbstractModule implements ModuleConfigInterface
}
}
- /** {@inheritdoc} */
+ /**
+ * The URL to a page where the user can modify the configuration of this module.
+ * These links are displayed in the admin page menu.
+ *
+ * @return string
+ */
public function getConfigLink() {
return 'module.php?mod=' . $this->getName() . '&amp;mod_action=admin_batch_update';
}