Home
last modified time | relevance | path

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

/webtrees/app/
H A DRelationship.php106 public function match(array $nodes, array $patterns): array|null argument
111 if (!$matcher($nodes, $patterns, $captures)) {
128 $this->matchers[] = static fn (array $nodes): bool => count($nodes) > 2 && $nodes[2]
130 …->contains(fn (Fact $fact): bool => $fact->value() === '@' . $nodes[1]->xref() . '@' && $fact->att…
140 $this->matchers[] = static fn (array $nodes): bool => $nodes[0]
142 …->contains(fn (Fact $fact): bool => $fact->value() === '@' . $nodes[1]->xref() . '@' && $fact->att…
164 … $this->matchers[] = static function (array &$nodes, array &$patterns) use ($relationships): bool {
166 $nodes = array_slice($nodes, 2);
205 …$this->matchers[] = static function (array &$nodes, array &$patterns, array &$captures) use ($rela…
206 $limit = min(intdiv(count($nodes), 2), count($patterns));
[all …]
/webtrees/app/Services/
H A DRelationshipService.php201 public function nameFromPath(array $nodes, ModuleLanguageInterface $language): string argument
204 if (count($nodes) === 1) {
205 return $this->reflexivePronoun($nodes[0]);
214 $pattern = $this->components($nodes);
218 … return $this->legacyNameAlgorithm(implode('', $pattern), $nodes[0], $nodes[count($nodes) - 1]);
222 $relationships = $this->matchRelationships($nodes, $pattern, $relationships);
257 private function components(array $nodes): array argument
261 $count = count($nodes);
264 $prev = $nodes[$i - 1];
265 $family = $nodes[$i];
[all …]
/webtrees/tests/feature/
H A DRelationshipNamesTest.php382 …private static function assertRelationship(string $expected, array $nodes, ModuleLanguageInterface… argument
385 $actual = $service->nameFromPath($nodes, $language);
386 … = implode('-', array_map(static fn (GedcomRecord $record): string => $record->xref(), $nodes));
387 $english = $service->nameFromPath($nodes, new LanguageEnglishUnitedStates());
398 …private static function assertRelationships(string $fwd, string $rev, array $nodes, ModuleLanguage… argument
400 self::assertRelationship($fwd, $nodes, $language);
401 self::assertRelationship($rev, array_reverse($nodes), $language);
/webtrees/app/Module/
H A DRelationshipsChartModule.php317 $nodes = Collection::make($path)
326 … $relationship = $this->relationship_service->nameFromPath($nodes->all(), I18N::language());
/webtrees/public/ckeditor-4.15.1-custom/
H A DCHANGES.md646 …e.html#method-extractContents) method returns an incorrect result when multiple nodes are selected.