summaryrefslogtreecommitdiff
path: root/app/Module/IndividualFactsTabModule.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-06-05 20:16:40 +0100
committerGreg Roach <fisharebest@gmail.com>2015-06-05 21:53:48 +0100
commit3d7a8a4ca809135634f38216b734b15acff479f7 (patch)
tree4bbe1480119d706851833f3efb4911d62aa52a45 /app/Module/IndividualFactsTabModule.php
parentfa77f9bd0ddd6a305a367135bc6178fceb44776b (diff)
downloadwebtrees-3d7a8a4ca809135634f38216b734b15acff479f7.tar.gz
webtrees-3d7a8a4ca809135634f38216b734b15acff479f7.tar.bz2
webtrees-3d7a8a4ca809135634f38216b734b15acff479f7.zip
Refactor includes/functions into classes
Diffstat (limited to 'app/Module/IndividualFactsTabModule.php')
-rw-r--r--app/Module/IndividualFactsTabModule.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/Module/IndividualFactsTabModule.php b/app/Module/IndividualFactsTabModule.php
index 3454f15042..4b83605908 100644
--- a/app/Module/IndividualFactsTabModule.php
+++ b/app/Module/IndividualFactsTabModule.php
@@ -19,6 +19,9 @@ use Fisharebest\Webtrees\Auth;
use Fisharebest\Webtrees\Date;
use Fisharebest\Webtrees\Fact;
use Fisharebest\Webtrees\Family;
+use Fisharebest\Webtrees\Functions\Functions;
+use Fisharebest\Webtrees\Functions\FunctionsPrint;
+use Fisharebest\Webtrees\Functions\FunctionsPrintFacts;
use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\Individual;
use Fisharebest\Webtrees\Module;
@@ -113,7 +116,7 @@ class IndividualFactsTabModule extends AbstractModule implements ModuleTabInterf
$indifacts[] = $fact;
}
- sort_facts($indifacts);
+ Functions::sortFacts($indifacts);
ob_start();
@@ -134,12 +137,12 @@ class IndividualFactsTabModule extends AbstractModule implements ModuleTabInterf
echo '</form></td></tr>';
foreach ($indifacts as $fact) {
- print_fact($fact, $controller->record);
+ FunctionsPrintFacts::printFact($fact, $controller->record);
}
//-- new fact link
if ($controller->record->canEdit()) {
- print_add_new_fact($controller->record->getXref(), $indifacts, 'INDI');
+ FunctionsPrint::printAddNewFact($controller->record->getXref(), $indifacts, 'INDI');
}
echo '</tbody>';
echo '</table>';