Exemple #1
0
 public function getSignificantIndividual()
 {
     if ($this->root) {
         return $this->root;
     } else {
         return parent::getSignificantIndividual();
     }
 }
Exemple #2
0
 }
 if (!isset($input['default'])) {
     $input['default'] = '';
 }
 if (!isset($input['lookup'])) {
     $input['lookup'] = '';
 }
 if ($input['type'] == 'text') {
     echo '<input';
     switch ($input['lookup']) {
         case 'INDI':
             echo ' data-autocomplete-type="INDI"';
             if (!empty($pid)) {
                 $input['default'] = $pid;
             } else {
                 $input['default'] = $controller->getSignificantIndividual()->getXref();
             }
             break;
         case 'FAM':
             echo ' data-autocomplete-type="FAM"';
             if (!empty($famid)) {
                 $input['default'] = $famid;
             } else {
                 $input['default'] = $controller->getSignificantFamily()->getXref();
             }
             break;
         case 'SOUR':
             echo ' data-autocomplete-type="SOUR"';
             if (!empty($sid)) {
                 $input['default'] = $sid;
             }
Exemple #3
0
 public function getSignificantIndividual()
 {
     if ($this->pids) {
         return WT_Individual::getInstance($this->pids[0]);
     } else {
         return parent::getSignificantIndividual();
     }
 }
Exemple #4
0
 public function getSignificantIndividual()
 {
     if ($this->people) {
         return $this->people[0];
     } else {
         return parent::getSignificantIndividual();
     }
 }