summaryrefslogtreecommitdiff
path: root/app/Controller/FamilyBookController.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/Controller/FamilyBookController.php
parentfa77f9bd0ddd6a305a367135bc6178fceb44776b (diff)
downloadwebtrees-3d7a8a4ca809135634f38216b734b15acff479f7.tar.gz
webtrees-3d7a8a4ca809135634f38216b734b15acff479f7.tar.bz2
webtrees-3d7a8a4ca809135634f38216b734b15acff479f7.zip
Refactor includes/functions into classes
Diffstat (limited to 'app/Controller/FamilyBookController.php')
-rw-r--r--app/Controller/FamilyBookController.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/Controller/FamilyBookController.php b/app/Controller/FamilyBookController.php
index ad2dd42f72..2aac9d6ef9 100644
--- a/app/Controller/FamilyBookController.php
+++ b/app/Controller/FamilyBookController.php
@@ -17,6 +17,7 @@ namespace Fisharebest\Webtrees\Controller;
*/
use Fisharebest\Webtrees\Filter;
+use Fisharebest\Webtrees\Functions\FunctionsPrint;
use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\Individual;
use Fisharebest\Webtrees\Theme;
@@ -152,7 +153,7 @@ class FamilyBookController extends ChartController {
}
echo '<table><tr><td>';
if ($person) {
- print_pedigree_person($person, $this->showFull());
+ FunctionsPrint::printPedigreePerson($person, $this->showFull());
echo '</td><td>',
'<img class="line2" src="', Theme::theme()->parameter('image-hline'), '" width="8" height="3" alt="">';
} else {
@@ -166,7 +167,7 @@ class FamilyBookController extends ChartController {
foreach ($person->getSpouseFamilies() as $family) {
$spouse = $family->getSpouse($person);
echo '</td></tr><tr><td>';
- print_pedigree_person($spouse, $this->showFull());
+ FunctionsPrint::printPedigreePerson($spouse, $this->showFull());
$numkids += 0.95;
echo '</td><td>';
}
@@ -259,7 +260,7 @@ class FamilyBookController extends ChartController {
'<td>';
$lh = $savlh; // restore original line height
//-- print the father box
- print_pedigree_person($family->getHusband(), $this->showFull());
+ FunctionsPrint::printPedigreePerson($family->getHusband(), $this->showFull());
echo '</td>';
if ($family->getHusband()) {
echo '<td>';
@@ -282,7 +283,7 @@ class FamilyBookController extends ChartController {
'<td><img class="line4" src="', Theme::theme()->parameter('image-hline'), '" height="3"></td>',
'<td>';
//-- print the mother box
- print_pedigree_person($family->getWife(), $this->showFull());
+ FunctionsPrint::printPedigreePerson($family->getWife(), $this->showFull());
echo '</td>';
if ($family->getWife()) {
echo '<td>';