summaryrefslogtreecommitdiff
path: root/app/Module/SiteMapModule.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Module/SiteMapModule.php')
-rw-r--r--app/Module/SiteMapModule.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/app/Module/SiteMapModule.php b/app/Module/SiteMapModule.php
index 7811d3993b..a896d2552a 100644
--- a/app/Module/SiteMapModule.php
+++ b/app/Module/SiteMapModule.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;
@@ -44,7 +44,12 @@ class SiteMapModule extends AbstractModule implements ModuleConfigInterface {
return /* I18N: Description of the “Sitemaps” module */ I18N::translate('Generate sitemap files for search engines.');
}
- /** {@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':
@@ -59,6 +64,8 @@ class SiteMapModule extends AbstractModule implements ModuleConfigInterface {
}
/**
+ * Generate an XML file.
+ *
* @param string $file
*/
private function generate($file) {