diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-06-05 20:16:40 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-06-05 21:53:48 +0100 |
| commit | 3d7a8a4ca809135634f38216b734b15acff479f7 (patch) | |
| tree | 4bbe1480119d706851833f3efb4911d62aa52a45 /app/Controller/HourglassController.php | |
| parent | fa77f9bd0ddd6a305a367135bc6178fceb44776b (diff) | |
| download | webtrees-3d7a8a4ca809135634f38216b734b15acff479f7.tar.gz webtrees-3d7a8a4ca809135634f38216b734b15acff479f7.tar.bz2 webtrees-3d7a8a4ca809135634f38216b734b15acff479f7.zip | |
Refactor includes/functions into classes
Diffstat (limited to 'app/Controller/HourglassController.php')
| -rw-r--r-- | app/Controller/HourglassController.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/Controller/HourglassController.php b/app/Controller/HourglassController.php index e0073a3908..abcf723008 100644 --- a/app/Controller/HourglassController.php +++ b/app/Controller/HourglassController.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; @@ -120,7 +121,7 @@ class HourglassController extends ChartController { echo '<td><img class="line4" src="' . Theme::theme()->parameter('image-hline') . '" width="7" height="3"></td>'; echo '<td>'; //-- print the father box - print_pedigree_person($family->getHusband(), $this->showFull()); + FunctionsPrint::printPedigreePerson($family->getHusband(), $this->showFull()); echo "</td>"; if ($family->getHusband()) { $ARID = $family->getHusband()->getXref(); @@ -152,7 +153,7 @@ class HourglassController extends ChartController { '<td><img class="line4" src="' . Theme::theme()->parameter('image-hline') . '" width="7" height="3" alt=""></td>', '<td>'; //-- print the mother box - print_pedigree_person($family->getWife(), $this->showFull()); + FunctionsPrint::printPedigreePerson($family->getWife(), $this->showFull()); echo '</td>'; if ($family->getWife()) { $ARID = $family->getWife()->getXref(); @@ -285,7 +286,7 @@ class HourglassController extends ChartController { } echo '<table id="table2_' . $pid . '"><tr><td>'; - print_pedigree_person($person, $this->showFull()); + FunctionsPrint::printPedigreePerson($person, $this->showFull()); echo '</td><td><img class="line2" src="' . Theme::theme()->parameter('image-hline') . '" width="7" height="3">'; //----- Print the spouse @@ -297,7 +298,7 @@ class HourglassController extends ChartController { $temph = $this->getBoxDimensions()->height; $this->getBoxDimensions()->width -= 10; $this->getBoxDimensions()->height -= 10; - print_pedigree_person($family->getSpouse($person), $this->showFull()); + FunctionsPrint::printPedigreePerson($family->getSpouse($person), $this->showFull()); $this->getBoxDimensions()->width = $tempw; $this->getBoxDimensions()->height = $temph; $numkids += 0.95; |
