Example #1
0
 public function __construct()
 {
     global $Dbwidth, $bwidth, $pbwidth, $pbheight, $bheight;
     $bwidth = $Dbwidth;
     $pbwidth = $bwidth + 12;
     $pbheight = $bheight + 14;
     $xref = WT_Filter::get('famid', WT_REGEX_XREF);
     $this->record = WT_Family::getInstance($xref);
     parent::__construct();
 }
Example #2
0
 function __construct()
 {
     global $USE_RIN;
     $xref = WT_Filter::get('pid', WT_REGEX_XREF);
     $this->record = WT_Individual::getInstance($xref);
     if (!$this->record && $USE_RIN) {
         $rin = find_rin_id($xref);
         $this->record = WT_Individual::getInstance($rin);
     }
     parent::__construct();
     $this->tabs = WT_Module::getActiveTabs();
     // If we can display the details, add them to the page header
     if ($this->record && $this->record->canShow()) {
         $this->setPageTitle($this->record->getFullName() . ' ' . $this->record->getLifespan());
     }
 }
Example #3
0
 public function __construct()
 {
     $xref = WT_Filter::get('rid', WT_REGEX_XREF);
     $this->record = WT_Repository::getInstance($xref);
     parent::__construct();
 }