summaryrefslogtreecommitdiff
path: root/app/Module/ClippingsCartModule.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Module/ClippingsCartModule.php')
-rw-r--r--app/Module/ClippingsCartModule.php19
1 files changed, 15 insertions, 4 deletions
diff --git a/app/Module/ClippingsCartModule.php b/app/Module/ClippingsCartModule.php
index d9d91784aa..f561a85b83 100644
--- a/app/Module/ClippingsCartModule.php
+++ b/app/Module/ClippingsCartModule.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\Family;
@@ -46,7 +46,12 @@ class ClippingsCartModule extends AbstractModule implements ModuleMenuInterface,
return Auth::PRIV_USER;
}
- /** {@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 'ajax':
@@ -503,7 +508,11 @@ class ClippingsCartModule extends AbstractModule implements ModuleMenuInterface,
}
}
- /** {@inheritdoc} */
+ /**
+ * Load this sidebar synchronously.
+ *
+ * @return string
+ */
public function getSidebarContent() {
global $controller;
@@ -645,6 +654,8 @@ class ClippingsCartModule extends AbstractModule implements ModuleMenuInterface,
}
/**
+ * A form to choose the download options.
+ *
* @param ClippingsCartController $clip_ctrl
*
* @return string