Lines Matching refs:tag

73             ->filter(static fn (string $tag): bool => $tag !== '');
74 $facts = $tags->map(fn (string $tag): Fact => $this->createNewFact($dummy, $tag));
90 ->filter(static fn (string $tag): bool => $tag !== '');
91 $facts = $tags->map(fn (string $tag): Fact => $this->createNewFact($dummy, $tag));
100 * @param string $tag
104 private function createNewFact(GedcomRecord $record, string $tag): Fact argument
106 $element = Registry::elementFactory()->make($record->tag() . ':' . $tag);
108 $gedcom = trim('1 ' . $tag . ' ' . $default);
200 …return $this->insertMissingLevels($fact->record()->tree(), $fact->tag(), $gedcom, $include_hidden);
216 … $gedcom = $this->insertMissingLevels($record->tree(), $record->tag(), $gedcom, $include_hidden);
236 $subtags = Registry::elementFactory()->make($record->tag())->subtags();
243 …filter($subtags, fn (string $subtag): bool => !$this->isHiddenTag($record->tag() . ':' . $subtag));
246 $fn_hidden = fn (string $t): bool => !$this->isHiddenTag($record->tag() . ':' . $t);
255 * @param string $tag
261 …protected function insertMissingLevels(Tree $tree, string $tag, string $gedcom, bool $include_hidd… argument
263 $next_level = substr_count($tag, ':') + 1;
265 $subtags = $factory->make($tag)->subtags();
272 $hidden = str_ends_with($occurrences, ':?') || $this->isHiddenTag($tag . ':' . $subtag);
293 … $return .= "\n" . $this->insertMissingLevels($tree, $tag . ':' . $subtag, $part, $include_hidden);
303 $default = $factory->make($tag . ':' . $subtag)->default($tree);
309 …$gedcom_to_add = "\n" . $this->insertMissingLevels($tree, $tag . ':' . $subtag, $gedcom, $include_…
326 * @param string $tag
330 private function isHiddenTag(string $tag): bool argument
340 if (str_contains($tag, $hidden_tag)) {