Home
last modified time | relevance | path

Searched refs:gedrec (Results 1 – 5 of 5) sorted by relevance

/webtrees/app/Services/
H A DGedcomImportService.php229 * @param string $gedrec the raw gedcom record to parse
236 public function importRecord(string $gedrec, Tree $tree, bool $update): void argument
242 $gedrec = str_replace('@@', '@', $gedrec);
246 $gedrec = $this->reformatRecord($gedrec, $tree);
249 …if (preg_match('/^0 @(' . Gedcom::REGEX_XREF . ')@ (' . Gedcom::REGEX_TAG . ')/', $gedrec, $match)…
251 } elseif (str_starts_with($gedrec, '0 HEAD')) {
254 } elseif (str_starts_with($gedrec, '0 TRLR')) {
258 } elseif (str_starts_with($gedrec, '0 _PLAC_DEFN')) {
259 $this->importLegacyPlacDefn($gedrec);
262 } elseif (str_starts_with($gedrec, '0 _PLAC ')) {
[all …]
/webtrees/app/Http/RequestHandlers/
H A DDeleteRecord.php112 * @param string $gedrec
117 private function removeLinks(string $gedrec, string $xref): string argument
119 …$gedrec = preg_replace('/\n1 ' . Gedcom::REGEX_TAG . ' @' . $xref . '@(\n[2-9].*)*/', '', $gedrec);
120 …$gedrec = preg_replace('/\n2 ' . Gedcom::REGEX_TAG . ' @' . $xref . '@(\n[3-9].*)*/', '', $gedrec);
121 …$gedrec = preg_replace('/\n3 ' . Gedcom::REGEX_TAG . ' @' . $xref . '@(\n[4-9].*)*/', '', $gedrec);
122 …$gedrec = preg_replace('/\n4 ' . Gedcom::REGEX_TAG . ' @' . $xref . '@(\n[5-9].*)*/', '', $gedrec);
123 …$gedrec = preg_replace('/\n5 ' . Gedcom::REGEX_TAG . ' @' . $xref . '@(\n[6-9].*)*/', '', $gedrec);
125 return $gedrec;
H A DEditNoteAction.php55 $gedrec = preg_replace(
61 $note->updateRecord($gedrec, true);
/webtrees/app/Report/
H A DReportParserGenerate.php140 private string $gedrec = ''; variable in Fisharebest\\Webtrees\\Report\\ReportParserGenerate
220 * @param string $gedrec the parent gedcom record to search in
228 … public static function getSubRecord(int $level, string $tag, string $gedrec, int $num = 1): string argument
230 if ($gedrec === '') {
234 $gedrec = "\n" . $gedrec . "\n";
237 …$ct = preg_match_all($searchTarget, $gedrec, $match, PREG_SET_ORDER | PREG_OFFSET_CAPTUR…
245 $pos2 = strpos($gedrec, "\n$level", $pos1 + 1);
247 $pos2 = strpos($gedrec, "\n1", $pos1 + 1);
250 $pos2 = strpos($gedrec, "\nWT_", $pos1 + 1); // WT_SPOUSE, WT_FAMILY_ID ...
253 return ltrim(substr($gedrec, $pos1));
[all …]
/webtrees/
H A Dphpstan-baseline.neon8848 …message: '#^Parameter \#1 \$gedrec of method Fisharebest\\Webtrees\\Services\\GedcomImportService\…