/**
  * Get significant information from this page, to allow other pages such as
  * charts and reports to initialise with the same records
  *
  * @return Individual
  */
 public function getSignificantIndividual()
 {
     if ($this->record) {
         return $this->record;
     }
     return parent::getSignificantIndividual();
 }
Esempio n. 2
0
 /**
  * Get significant information from this page, to allow other pages such as
  * charts and reports to initialise with the same records
  *
  * @return Individual
  */
 public function getSignificantIndividual()
 {
     if ($this->record) {
         foreach ($this->record->getSpouses() as $individual) {
             return $individual;
         }
         foreach ($this->record->getChildren() as $individual) {
             return $individual;
         }
     }
     return parent::getSignificantIndividual();
 }