Example #1
0
 public function getSignificantFamily()
 {
     if ($this->record) {
         return $this->record;
     }
     return parent::getSignificantFamily();
 }
Example #2
0
 public function getSignificantFamily()
 {
     if ($this->record) {
         foreach ($this->record->getChildFamilies() as $family) {
             return $family;
         }
         foreach ($this->record->getSpouseFamilies() as $family) {
             return $family;
         }
     }
     return parent::getSignificantFamily();
 }
Example #3
0
 public function __construct()
 {
     $xref = WT_Filter::get('rid', WT_REGEX_XREF);
     $this->record = WT_Repository::getInstance($xref);
     parent::__construct();
 }