Home
last modified time | relevance | path

Searched refs:xref (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/webtrees/app/Factories/
H A DGedcomRecordFactory.php49 public function make(string $xref, Tree $tree, string|null $gedcom = null): GedcomRecord|null argument
55 return Registry::familyFactory()->make($xref, $tree, $gedcom);
57 return Registry::headerFactory()->make($xref, $tree, $gedcom);
59 return Registry::individualFactory()->make($xref, $tree, $gedcom);
61 return Registry::locationFactory()->make($xref, $tree, $gedcom);
63 return Registry::mediaFactory()->make($xref, $tree, $gedcom);
65 return Registry::noteFactory()->make($xref, $tree, $gedcom);
67 return Registry::repositoryFactory()->make($xref, $tree, $gedcom);
69 return Registry::sourceFactory()->make($xref, $tree, $gedcom);
71 return Registry::submitterFactory()->make($xref, $tree, $gedcom);
[all …]
H A DIndividualFactory.php41 * @param string $xref
47 public function make(string $xref, Tree $tree, string|null $gedcom = null): Individual|null argument
49 …Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xr…
50 $gedcom ??= $this->gedcom($xref, $tree);
51 $pending = $this->pendingChanges($tree)->get($xref);
56 $xref = $this->extractXref($gedcom ?? $pending, $xref); variable in Fisharebest\\Webtrees\\Factories\\IndividualFactory
58 return $this->new($xref, $gedcom ?? '', $pending, $tree);
77 * @param string $xref
85 public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Individual argument
87 return new Individual($xref, $gedcom, $pending, $tree);
[all …]
H A DFamilyFactory.php42 * @param string $xref
48 public function make(string $xref, Tree $tree, string|null $gedcom = null): Family|null argument
50 …Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xr…
51 $gedcom ??= $this->gedcom($xref, $tree);
52 $pending = $this->pendingChanges($tree)->get($xref);
58 $xref = $this->extractXref($gedcom ?? $pending, $xref); variable in Fisharebest\\Webtrees\\Factories\\FamilyFactory
68 return $this->new($xref, $gedcom ?? '', $pending, $tree);
87 * @param string $xref
95 public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Family argument
97 return new Family($xref, $gedcom, $pending, $tree);
[all …]
H A DHeaderFactory.php41 public function make(string $xref, Tree $tree, string|null $gedcom = null): Header|null argument
43 …Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xr…
44 $gedcom ??= $this->gedcom($xref, $tree);
45 $pending = $this->pendingChanges($tree)->get($xref);
51 $xref = $this->extractXref($gedcom ?? $pending, $xref); variable in Fisharebest\\Webtrees\\Factories\\HeaderFactory
53 return $this->new($xref, $gedcom ?? '', $pending, $tree);
72 * @param string $xref
80 public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Header argument
82 return new Header($xref, $gedcom, $pending, $tree);
88 * @param string $xref
[all …]
H A DNoteFactory.php41 public function make(string $xref, Tree $tree, string|null $gedcom = null): Note|null argument
43 …Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xr…
44 $gedcom ??= $this->gedcom($xref, $tree);
45 $pending = $this->pendingChanges($tree)->get($xref);
51 $xref = $this->extractXref($gedcom ?? $pending, $xref); variable in Fisharebest\\Webtrees\\Factories\\NoteFactory
53 return new Note($xref, $gedcom ?? '', $pending, $tree);
72 * @param string $xref
80 public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Note argument
82 return new Note($xref, $gedcom, $pending, $tree);
88 * @param string $xref
[all …]
H A DSubmitterFactory.php41 public function make(string $xref, Tree $tree, string|null $gedcom = null): Submitter|null argument
43 …Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xr…
44 $gedcom ??= $this->gedcom($xref, $tree);
45 $pending = $this->pendingChanges($tree)->get($xref);
51 $xref = $this->extractXref($gedcom ?? $pending, $xref); variable in Fisharebest\\Webtrees\\Factories\\SubmitterFactory
53 return $this->new($xref, $gedcom ?? '', $pending, $tree);
72 * @param string $xref
80 public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Submitter argument
82 return new Submitter($xref, $gedcom, $pending, $tree);
88 * @param string $xref
[all …]
H A DSharedNoteFactory.php41 public function make(string $xref, Tree $tree, string|null $gedcom = null): SharedNote|null argument
43 …Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xr…
44 $gedcom ??= $this->gedcom($xref, $tree);
45 $pending = $this->pendingChanges($tree)->get($xref);
51 $xref = $this->extractXref($gedcom ?? $pending, $xref); variable in Fisharebest\\Webtrees\\Factories\\SharedNoteFactory
53 return new SharedNote($xref, $gedcom ?? '', $pending, $tree);
72 * @param string $xref
80 public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): SharedNote argument
82 return new SharedNote($xref, $gedcom, $pending, $tree);
88 * @param string $xref
[all …]
H A DSubmissionFactory.php41 public function make(string $xref, Tree $tree, string|null $gedcom = null): Submission|null argument
43 …Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xr…
44 $gedcom ??= $this->gedcom($xref, $tree);
45 $pending = $this->pendingChanges($tree)->get($xref);
51 $xref = $this->extractXref($gedcom ?? $pending, $xref); variable in Fisharebest\\Webtrees\\Factories\\SubmissionFactory
53 return $this->new($xref, $gedcom ?? '', $pending, $tree);
72 * @param string $xref
80 public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Submission argument
82 return new Submission($xref, $gedcom, $pending, $tree);
88 * @param string $xref
[all …]
H A DMediaFactory.php41 public function make(string $xref, Tree $tree, string|null $gedcom = null): Media|null argument
43 …Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xr…
44 $gedcom ??= $this->gedcom($xref, $tree);
45 $pending = $this->pendingChanges($tree)->get($xref);
51 $xref = $this->extractXref($gedcom ?? $pending, $xref); variable in Fisharebest\\Webtrees\\Factories\\MediaFactory
53 return $this->new($xref, $gedcom ?? '', $pending, $tree);
72 * @param string $xref
80 public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Media argument
82 return new Media($xref, $gedcom, $pending, $tree);
88 * @param string $xref
[all …]
H A DSourceFactory.php41 public function make(string $xref, Tree $tree, string|null $gedcom = null): Source|null argument
43 …Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xr…
44 $gedcom ??= $this->gedcom($xref, $tree);
45 $pending = $this->pendingChanges($tree)->get($xref);
51 $xref = $this->extractXref($gedcom ?? $pending, $xref); variable in Fisharebest\\Webtrees\\Factories\\SourceFactory
53 return $this->new($xref, $gedcom ?? '', $pending, $tree);
72 * @param string $xref
80 public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Source argument
82 return new Source($xref, $gedcom, $pending, $tree);
88 * @param string $xref
[all …]
H A DLocationFactory.php41 public function make(string $xref, Tree $tree, string|null $gedcom = null): Location|null argument
43 …Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xr…
44 $gedcom ??= $this->gedcom($xref, $tree);
45 $pending = $this->pendingChanges($tree)->get($xref);
51 $xref = $this->extractXref($gedcom ?? $pending, $xref); variable in Fisharebest\\Webtrees\\Factories\\LocationFactory
53 return $this->new($xref, $gedcom ?? '', $pending, $tree);
72 * @param string $xref
80 public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Location argument
82 return new Location($xref, $gedcom, $pending, $tree);
88 * @param string $xref
[all …]
H A DRepositoryFactory.php42 public function make(string $xref, Tree $tree, string|null $gedcom = null): Repository|null argument
44 …Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xr…
45 $gedcom ??= $this->gedcom($xref, $tree);
46 $pending = $this->pendingChanges($tree)->get($xref);
52 $xref = $this->extractXref($gedcom ?? $pending, $xref); variable in Fisharebest\\Webtrees\\Factories\\RepositoryFactory
54 return $this->new($xref, $gedcom ?? '', $pending, $tree);
78 * @param string $xref
86 public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Repository argument
88 return new Repository($xref, $gedcom, $pending, $tree);
94 * @param string $xref
[all …]
/webtrees/app/Module/
H A DClippingsCartModule.php152 $xref = $route->attributes['xref']; variable in Fisharebest\\Webtrees\\Module\\ClippingsCartModule
153 assert(is_string($xref));
158 'xref' => $xref,
261 foreach ($xrefs as $xref) {
262 $object = Registry::gedcomRecordFactory()->make($xref, $tree);
316 $xref = Validator::queryParams($request)->isXref()->string('xref');
320 unset($cart[$tree->name()][$xref]);
356 …$records = array_map(static fn (string $xref): GedcomRecord|null => Registry::gedcomRecordFactory(…
370 $xref = Validator::queryParams($request)->isXref()->string('xref');
371 $family = Registry::familyFactory()->make($xref, $tree);
[all …]
H A DRelationshipsChartModule.php145 if ($my_xref !== '' && $my_xref !== $individual->xref()) {
151 $this->chartUrl($my_record, ['xref2' => $individual->xref()]),
198 'xref' => $individual->xref(),
211 $xref = Validator::attributes($request)->isXref()->string('xref');
229 $individual1 = Registry::individualFactory()->make($xref, $tree);
258 'xref2' => $individual2->xref(),
318 ->map(static function (string $xref, int $key) use ($tree): GedcomRecord {
320 return Registry::individualFactory()->make($xref, $tree);
323 return Registry::familyFactory()->make($xref, $tree);
342 foreach ($path as $n => $xref) {
[all …]
H A DTimelineChartModule.php124 'xrefs' => [$individual->xref()],
158 …->map(static fn (string $xref): Individual|null => Registry::individualFactory()->make($xref, $tre…
167 … ->filter(static fn (Individual $individual): bool => $individual->xref() !== $exclude->xref())
168 ->map(static fn (Individual $individual): string => $individual->xref());
170 $remove_urls[$exclude->xref()] = route(static::class, [
177 …individuals = array_map(static fn (string $xref): Individual|null => Registry::individualFactory()…
235 …individuals = array_map(static fn (string $xref): Individual|null => Registry::individualFactory()…
251 $birthyears [$individual->xref()] = $date->year;
252 $birthmonths[$individual->xref()] = max(1, $date->month);
253 $birthdays [$individual->xref()] = max(1, $date->day);
H A DStoriesModule.php118 ->where('xref', '=', $individual->xref())
231 $xref = (string) $story->xref;
233 $story->individual = Registry::individualFactory()->make($xref, $tree);
282 $xref = Validator::queryParams($request)->isXref()->string('xref', '');
286 $xref = (string) DB::table('block')
296 $individual = Registry::individualFactory()->make($xref, $tree);
319 $xref = Validator::parsedBody($request)->string('xref');
332 'xref' => $xref,
337 'xref' => $xref,
394 $xref = (string) $story->xref;
[all …]
H A DFamilyTreeFavoritesModule.php136 if ($row->xref !== null) {
137 $row->record = Registry::gedcomRecordFactory()->make($row->xref, $tree);
165 $xref = Validator::parsedBody($request)->string($type . '-xref', '');
166 $record = $this->getRecordForType($type, $xref, $tree);
239 'xref' => $record->xref(),
246 private function getRecordForType(string $type, string $xref, Tree $tree): GedcomRecord|null argument
250 return Registry::individualFactory()->make($xref, $tree);
253 return Registry::familyFactory()->make($xref, $tree);
256 return Registry::sourceFactory()->make($xref, $tree);
259 return Registry::repositoryFactory()->make($xref, $tree);
[all …]
H A DUserFavoritesModule.php138 if ($row->xref !== null) {
139 $row->record = Registry::gedcomRecordFactory()->make($row->xref, $tree);
167 $xref = Validator::parsedBody($request)->string($type . '-xref', '');
168 $record = $this->getRecordForType($type, $xref, $tree);
243 'xref' => $record->xref(),
250 private function getRecordForType(string $type, string $xref, Tree $tree): GedcomRecord|null argument
254 return Registry::individualFactory()->make($xref, $tree);
257 return Registry::familyFactory()->make($xref, $tree);
260 return Registry::sourceFactory()->make($xref, $tree);
263 return Registry::repositoryFactory()->make($xref, $tree);
[all …]
/webtrees/app/Http/RequestHandlers/
H A DCheckTree.php155 $records[$row->xref] = $row;
158 unset($records[$row->xref]);
161 $xrefs[strtoupper($row->xref)] = $row->xref;
175 if ($skip_to === $record->xref) {
180 $skip_to = $record->xref;
192 …$errors[] = $this->lineError($tree, $record->type, $record->xref, $line_number, $line, I18N::trans…
198 …$errors[] = $this->lineError($tree, $record->type, $record->xref, $line_number, $line, I18N::trans…
216 …$warnings[] = $this->lineError($tree, $record->type, $record->xref, $line_number, $line, $message,…
219 …$errors[] = $this->lineError($tree, $record->type, $record->xref, $line_number, $line, $message, $…
229 …$errors[] = $this->lineError($tree, $record->type, $record->xref, $line_number, $line, $message, $…
[all …]
H A DDeleteRecord.php66 $xref = Validator::attributes($request)->isXref()->string('xref');
67 $record = Registry::gedcomRecordFactory()->make($xref, $tree);
74 $new_gedcom = $this->removeLinks($old_gedcom, $record->xref());
89 $relict_gedcom = $this->removeLinks($relict->gedcom(), $linker->xref());
113 * @param string $xref
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);
[all …]
/webtrees/app/Services/
H A DGedcomImportService.php93 [, $level, $xref, $tag, $data] = $match;
145 $xref = '';
196 …$newrec .= ($newrec ? "\n" : '') . $level . ' ' . ($level === '0' && $xref ? $xref . ' ' : '') . $…
202 …$newrec .= ($newrec ? "\n" : '') . $level . ' ' . ($level === '0' && $xref ? $xref . ' ' : '') . $…
213 …$newrec .= ($newrec ? "\n" : '') . $level . ' ' . ($level === '0' && $xref ? $xref . ' ' : '') . $…
250 [, $xref, $type] = $match;
253 $xref = 'HEAD'; // For records without an XREF, use the type as a pseudo XREF.
257 $xref = 'TRLR'; // For records without an XREF, use the type as a pseudo XREF.
289 ->where('l_from', '=', $xref)
296 ->where('l_from', '=', $xref)
[all …]
H A DLinkedRecordService.php54 $like = addcslashes($record->xref(), '\\%_');
72 ->where('l_to', '=', $record->xref())
77 …return $xrefs->map(static fn (string $xref) => Registry::gedcomRecordFactory()->make($xref, $recor…
97 ->where('l_to', '=', $record->xref());
128 ->where('l_to', '=', $record->xref());
159 ->where('l_to', '=', $record->xref())
183 ->where('l_to', '=', $record->xref())
208 ->where('l_to', '=', $record->xref())
233 ->where('l_to', '=', $record->xref())
257 ->where('l_to', '=', $record->xref())
[all …]
/webtrees/app/
H A DTree.php142 if ($row->xref !== null) {
144 $this->individual_fact_privacy[$row->xref][$row->tag_type] = $row->resn;
146 $this->individual_privacy[$row->xref] = $row->resn;
363 $xref = Registry::xrefFactory()->make($match[1]);
364 $gedcom = substr_replace($gedcom, $xref, 3, 0);
374 'xref' => $xref,
383 $record = Registry::gedcomRecordFactory()->new($xref, $gedcom, null, $this);
391 return Registry::gedcomRecordFactory()->new($xref, '', $gedcom, $this);
408 $xref = Registry::xrefFactory()->make(Family::RECORD_TYPE);
409 $gedcom = substr_replace($gedcom, $xref, 3, 0);
[all …]
H A DFact.php192 …ception('Invalid GEDCOM data passed to Fact::_construct(' . $gedcom . ',' . $parent->xref() . ')');
224 $xref = $match[1];
229 return Registry::familyFactory()->make($xref, $this->record->tree());
235 return Registry::individualFactory()->make($xref, $this->record->tree());
238 Registry::individualFactory()->make($xref, $this->record->tree()) ??
239 Registry::submitterFactory()->make($xref, $this->record->tree());
241 return Registry::sourceFactory()->make($xref, $this->record->tree());
243 return Registry::mediaFactory()->make($xref, $this->record->tree());
245 return Registry::repositoryFactory()->make($xref, $this->record->tree());
247 return Registry::noteFactory()->make($xref, $this->record->tree());
[all …]
H A DGedcomRecord.php73 protected string $xref; variable in Fisharebest\\Webtrees\\GedcomRecord
98 * @param string $xref
104 public function __construct(string $xref, string $gedcom, string|null $pending, Tree $tree) argument
106 $this->xref = $xref;
176 public function xref(): string function in Fisharebest\\Webtrees\\GedcomRecord
178 return $this->xref;
230 'xref' => $this->xref(),
253 $cache_key = 'show-' . $this->xref . '-' . $this->tree->id() . '-' . $access_level;
326 $xref = $match[1];
327 $record = Registry::gedcomRecordFactory()->make($xref, $this->tree);
[all …]

12345678910>>...12