@@ -27,21 +27,18 @@ public static function convert(\Gedcom\Record\Indi &$indi)
2727
2828 // id
2929 $ id = $ indi ->getId ();
30- $ output = $ level .' @ ' .$ id ."@ INDI \n" ;
30+
31+ // gid
32+ $ gid = $ indi ->getGid ();
33+ $ output = $ level .' @ ' .$ gid ."@ INDI \n" ;
3134
3235 // increase level after start indi
3336 $ level ++;
3437
35- // name
36- // $name = $indi->getName();
37- // if(!empty($name)){
38- // $output.=$level." NAME ".$name."\n";
39- // }
40-
41- // chan
42- $ chan = $ indi ->getChan ();
43- if (!empty ($ chan )) {
44- $ output .= $ level .' CHAN ' .$ chan ."\n" ;
38+ // uid
39+ $ uid = $ indi ->getUid ();
40+ if (!empty ($ uid )) {
41+ $ output .= $ level .' _UID ' .$ uid ."\n" ;
4542 }
4643
4744 // $attr
@@ -118,6 +115,27 @@ public static function convert(\Gedcom\Record\Indi &$indi)
118115 $ output .= $ level .' SEX ' .$ sex ."\n" ;
119116 }
120117
118+ // $birthday
119+ $ birthday = $ indi ->getBirthday ();
120+ if (!empty ($ birthday )) {
121+ $ output .= $ level .' BIRT ' ."\n" ;
122+ $ output .= ($ level +1 ).' DATE ' .$ birthday ."\n" ;
123+ }
124+
125+ // $deathday
126+ $ deathday = $ indi ->getDeathday ();
127+ if (!empty ($ deathday )) {
128+ $ output .= $ level .' DEAT ' ."\n" ;
129+ $ output .= ($ level +1 ).' DATE ' .$ deathday ."\n" ;
130+ }
131+
132+ // $burialday
133+ $ burialday = $ indi ->getBurialday ();
134+ if (!empty ($ burialday )) {
135+ $ output .= $ level .' BURI ' ."\n" ;
136+ $ output .= ($ level +1 ).' DATE ' .$ burialday ."\n" ;
137+ }
138+
121139 // $rin
122140 $ rin = $ indi ->getRin ();
123141 if (!empty ($ rin )) {
@@ -207,6 +225,14 @@ public static function convert(\Gedcom\Record\Indi &$indi)
207225 }
208226 }
209227
228+ // chan
229+ $ chan = $ indi ->getChan ();
230+ if (!empty ($ chan )) {
231+ $ output .= $ level .' CHAN ' ."\n" ;
232+ $ output .= ($ level +1 ).' DATE ' .$ chan [0 ]."\n" ;
233+ $ output .= ($ level +1 ).' TIME ' .$ chan [1 ]."\n" ;
234+ }
235+
210236 // Bapl
211237 // Currently Bapl is empty
212238 // $bapl = $indi->getBapl();
0 commit comments