예제 #1
0
파일: Writer.php 프로젝트: hybr/jpm
 /**
  *
  * @param \PhpGedcom\Gedcom $gedcom The GEDCOM object
  * @param string $format The format to convert the GEDCOM object to
  * @return string The contents of the document in the converted format
  */
 public static function convert(\PhpGedcom\Gedcom &$gedcom, $format = self::GEDCOM55)
 {
     $head = $gedcom->getHead();
     $output = \PhpGedcom\Writer\Head::convert($head, $format);
     return $output;
 }
예제 #2
0
 /**
  *
  * @param \PhpGedcom\Gedcom $gedcom The GEDCOM object
  * @param string $format The format to convert the GEDCOM object to
  * @return string The contents of the document in the converted format
  */
 public static function convert(Gedcom $gedcom, $format = self::GEDCOM55)
 {
     $head = $gedcom->getHead();
     $output = Head::convert($head, $format);
     return $output;
 }