summaryrefslogtreecommitdiff
path: root/app/Module/CensusAssistantModule.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Module/CensusAssistantModule.php')
-rw-r--r--app/Module/CensusAssistantModule.php20
1 files changed, 11 insertions, 9 deletions
diff --git a/app/Module/CensusAssistantModule.php b/app/Module/CensusAssistantModule.php
index 33c70f62a5..6cf3f77468 100644
--- a/app/Module/CensusAssistantModule.php
+++ b/app/Module/CensusAssistantModule.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\Controller\SimpleController;
use Fisharebest\Webtrees\Family;
use Fisharebest\Webtrees\Filter;
@@ -39,7 +39,12 @@ class CensusAssistantModule extends AbstractModule {
return /* I18N: Description of the “Census assistant” module */ I18N::translate('An alternative way to enter census transcripts and link them to individuals.');
}
- /** {@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 'census_find':
@@ -57,7 +62,7 @@ class CensusAssistantModule extends AbstractModule {
}
/**
- * ...
+ * Find an individual.
*/
private static function censusFind() {
global $WT_TREE;
@@ -182,9 +187,6 @@ class CensusAssistantModule extends AbstractModule {
}
echo "<li>";
- // ==============================================================================================================================
- // NOTES = is equivalent to= function pasterow(id, nam, mnam, label, gend, cond, dom, dob, age, dod, occu, birthpl, fbirthpl, mbirthpl, chilBLD) {
- // ==============================================================================================================================
echo "<a href=\"#\" onclick=\"window.opener.insertRowToTable(";
echo "'" . $indi->getXref() . "', "; // id - Indi Id
echo "'" . addslashes(strip_tags($fulln)) . "', "; // nam - Name
@@ -222,7 +224,7 @@ class CensusAssistantModule extends AbstractModule {
}
/**
- * ...
+ * Find a media object.
*/
private static function mediaFind() {
global $WT_TREE;
@@ -321,7 +323,7 @@ class CensusAssistantModule extends AbstractModule {
}
/**
- * ...
+ * Search for a media object.
*/
private static function mediaQuery() {
global $WT_TREE;