familytree365 /
php-gedcom
| 1 | <?php |
||||
| 2 | /** |
||||
| 3 | * php-gedcom. |
||||
| 4 | * |
||||
| 5 | * php-gedcom is a library for parsing, manipulating, importing and exporting |
||||
| 6 | * GEDCOM 5.5 files in PHP 5.3+. |
||||
| 7 | * |
||||
| 8 | * @author Xiang Ming <[email protected]> |
||||
| 9 | * @copyright Copyright (c) 2010-2013, Xiang Ming |
||||
| 10 | * @license MIT |
||||
| 11 | * |
||||
| 12 | * @link http://github.com/mrkrstphr/php-gedcom |
||||
| 13 | */ |
||||
| 14 | |||||
| 15 | namespace Gedcom\Writer\Head; |
||||
| 16 | |||||
| 17 | class Plac |
||||
| 18 | { |
||||
| 19 | /** |
||||
| 20 | * @param string $format |
||||
| 21 | * @param int $level |
||||
| 22 | * |
||||
| 23 | * @return string |
||||
| 24 | */ |
||||
| 25 | public static function convert(\Gedcom\Record\Head\Plac &$plac, $level) |
||||
| 26 | { |
||||
| 27 | $output = $level." PLAC \n"; |
||||
| 28 | |||||
| 29 | // level up |
||||
| 30 | $level++; |
||||
| 31 | // FORM |
||||
| 32 | $form = $plac->getForm(); |
||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||
| 33 | if ($form) { |
||||
| 34 | $output .= $level.' FORM '.$form."\n"; |
||||
|
0 ignored issues
–
show
Are you sure
$form of type Gedcom\Record\Head\Plac|mixed can be used in concatenation?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 35 | } |
||||
| 36 | |||||
| 37 | return $output; |
||||
| 38 | } |
||||
| 39 | } |
||||
| 40 |