diff options
| author | fisharebest <fisharebest@gmail.com> | 2011-11-03 11:58:38 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2011-11-03 11:58:38 +0000 |
| commit | 719cc264e5437a149f18d53d24638a767943dff2 (patch) | |
| tree | 002b67d3b25324365de1070afc2150b5806dc2dd /library/WT/Controller/Pedigree.php | |
| parent | 7b7fb9e0638cf5ec29ad73ea6fe193f052e2706d (diff) | |
| download | webtrees-719cc264e5437a149f18d53d24638a767943dff2.tar.gz webtrees-719cc264e5437a149f18d53d24638a767943dff2.tar.bz2 webtrees-719cc264e5437a149f18d53d24638a767943dff2.zip | |
Refactoring - move towards a MVC (model/view/controller) architecture
Diffstat (limited to 'library/WT/Controller/Pedigree.php')
| -rw-r--r-- | library/WT/Controller/Pedigree.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/library/WT/Controller/Pedigree.php b/library/WT/Controller/Pedigree.php index 5c92f87b10..9a47c3e2b0 100644 --- a/library/WT/Controller/Pedigree.php +++ b/library/WT/Controller/Pedigree.php @@ -1,4 +1,6 @@ <?php +// Controller for the pedigree chart +// // webtrees: Web based Family History software // Copyright (C) 2011 webtrees development team. // @@ -19,7 +21,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// @version $Id$ +// $Id$ if (!defined('WT_WEBTREES')) { header('HTTP/1.0 403 Forbidden'); @@ -28,7 +30,7 @@ if (!defined('WT_WEBTREES')) { require_once WT_ROOT.'includes/functions/functions_charts.php'; -class WT_Controller_Pedigree extends WT_Controller_Base { +class WT_Controller_Pedigree extends WT_Controller_Chart { var $log2; var $rootid; var $name; @@ -48,10 +50,7 @@ class WT_Controller_Pedigree extends WT_Controller_Base { var $offsetarray; var $minyoffset; - /** - * Initialization function - */ - function init() { + public function __construct() { global $PEDIGREE_FULL_DETAILS, $PEDIGREE_LAYOUT, $MAX_PEDIGREE_GENERATIONS; global $DEFAULT_PEDIGREE_GENERATIONS, $SHOW_EMPTY_BOXES; global $bwidth, $bheight, $baseyoffset, $basexoffset, $byspacing, $bxspacing; @@ -246,6 +245,11 @@ class WT_Controller_Pedigree extends WT_Controller_Base { $this->adjust_subtree(0, $ydiff); } + // What should this page show in the browser's title bar? + public function getPageTitle() { + return /* I18N: %s is a person's name */ WT_I18N::translate('Pedigree tree of %s', $this->name); + } + function getPersonName() { if (is_null($this->rootPerson)) { return WT_I18N::translate('unknown'); |
