Lines Matching refs:record
48 * @param GedcomRecord $record
52 public function allLinkedRecords(GedcomRecord $record): Collection argument
54 $like = addcslashes($record->xref(), '\\%_');
57 ->where('gedcom_id', '=', $record->tree()->id())
60 ->whereIn('change_id', function (Builder $query) use ($record): void {
64 ->where('gedcom_id', '=', $record->tree()->id())
71 ->where('l_file', '=', $record->tree()->id())
72 ->where('l_to', '=', $record->xref())
77 …fs->map(static fn (string $xref) => Registry::gedcomRecordFactory()->make($xref, $record->tree()));
83 * @param GedcomRecord $record
88 public function linkedFamilies(GedcomRecord $record, string|null $link_type = null): Collection argument
96 ->where('f_file', '=', $record->tree()->id())
97 ->where('l_to', '=', $record->xref());
107 ->map(Registry::familyFactory()->mapper($record->tree()))
114 * @param GedcomRecord $record
119 … public function linkedIndividuals(GedcomRecord $record, string|null $link_type = null): Collection argument
127 ->where('i_file', '=', $record->tree()->id())
128 ->where('l_to', '=', $record->xref());
138 ->map(Registry::individualFactory()->mapper($record->tree()))
145 * @param GedcomRecord $record
149 public function linkedLocations(GedcomRecord $record): Collection argument
157 ->where('o_file', '=', $record->tree()->id())
159 ->where('l_to', '=', $record->xref())
163 ->map(Registry::locationFactory()->mapper($record->tree()))
170 * @param GedcomRecord $record
174 public function linkedMedia(GedcomRecord $record): Collection argument
182 ->where('m_file', '=', $record->tree()->id())
183 ->where('l_to', '=', $record->xref())
187 ->map(Registry::mediaFactory()->mapper($record->tree()))
194 * @param GedcomRecord $record
198 public function linkedNotes(GedcomRecord $record): Collection argument
206 ->where('o_file', '=', $record->tree()->id())
208 ->where('l_to', '=', $record->xref())
212 ->map(Registry::noteFactory()->mapper($record->tree()))
219 * @param GedcomRecord $record
223 public function linkedRepositories(GedcomRecord $record): Collection argument
231 ->where('o_file', '=', $record->tree()->id())
233 ->where('l_to', '=', $record->xref())
237 ->map(Registry::repositoryFactory()->mapper($record->tree()))
244 * @param GedcomRecord $record
248 public function linkedSources(GedcomRecord $record): Collection argument
256 ->where('s_file', '=', $record->tree()->id())
257 ->where('l_to', '=', $record->xref())
261 ->map(Registry::sourceFactory()->mapper($record->tree()))
268 * @param GedcomRecord $record
272 public function linkedSubmitters(GedcomRecord $record): Collection argument
280 ->where('o_file', '=', $record->tree()->id())
282 ->where('l_to', '=', $record->xref())
287 ->map(Registry::repositoryFactory()->mapper($record->tree()))