for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* php-gedcom.
*
* php-gedcom is a library for parsing, manipulating, importing and exporting
* GEDCOM 5.5 files in PHP 5.3+.
* @author Xiang Ming <[email protected]>
* @copyright Copyright (c) 2010-2013, Xiang Ming
* @license MIT
* @link http://github.com/mrkrstphr/php-gedcom
*/
namespace PhpGedcom\Writer;
class Refn
{
* @param \PhpGedcom\Record\Refn $note
* @param int $level
* @return string
public static function convert(\PhpGedcom\Record\Refn &$refn, $level)
$output = '';
$_refn = $refn->getRefn();
if (empty($_refn)) {
return $output;
} else {
$output .= $level.' REFN '.$_refn."\n";
}
// level up
$level++;
// DATE
$type = $refn->getType();
if (!empty($type)) {
$output .= $level.' TYPE '.$type."\n";