Lines Matching refs:tree
149 $tree = $this->all()->first(static fn (Tree $tree): bool => $tree->id() === $id);
151 if ($tree instanceof Tree) {
152 return $tree;
165 return $this->all()->map(static fn (Tree $tree): string => $tree->title())->all();
182 $tree = new Tree($tree_id, $name, $title);
184 $tree->setPreference('imported', '1');
185 $tree->setPreference('title', $title);
209 $tree->setPreference('REQUIRE_AUTHENTICATION', '');
210 $tree->setPreference('CONTACT_USER_ID', (string) Auth::id());
211 $tree->setPreference('WEBMASTER_USER_ID', (string) Auth::id());
212 … $tree->setPreference('LANGUAGE', I18N::languageTag()); // Default to the current admin’s language
213 …$tree->setPreference('SURNAME_TRADITION', self::DEFAULT_SURNAME_TRADITIONS[I18N::languageTag()] ??…
217 $this->gedcom_import_service->importRecord($head, $tree, true);
223 $this->gedcom_import_service->importRecord($indi, $tree, true);
225 return $tree;
231 * @param Tree $tree
238 …public function importGedcomFile(Tree $tree, StreamInterface $stream, string $filename, string $en… argument
247 $tree->setPreference('gedcom_filename', $filename);
248 $tree->setPreference('imported', '0');
250 DB::table('gedcom_chunk')->where('gedcom_id', '=', $tree->id())->delete();
263 'gedcom_id' => $tree->id(),
272 'gedcom_id' => $tree->id(),
280 * @param Tree $tree
282 public function delete(Tree $tree): void argument
285 if (Site::getPreference('DEFAULT_GEDCOM') === $tree->name()) {
289 DB::table('gedcom_chunk')->where('gedcom_id', '=', $tree->id())->delete();
290 DB::table('individuals')->where('i_file', '=', $tree->id())->delete();
291 DB::table('families')->where('f_file', '=', $tree->id())->delete();
292 DB::table('sources')->where('s_file', '=', $tree->id())->delete();
293 DB::table('other')->where('o_file', '=', $tree->id())->delete();
294 DB::table('places')->where('p_file', '=', $tree->id())->delete();
295 DB::table('placelinks')->where('pl_file', '=', $tree->id())->delete();
296 DB::table('name')->where('n_file', '=', $tree->id())->delete();
297 DB::table('dates')->where('d_file', '=', $tree->id())->delete();
298 DB::table('change')->where('gedcom_id', '=', $tree->id())->delete();
299 DB::table('link')->where('l_file', '=', $tree->id())->delete();
300 DB::table('media_file')->where('m_file', '=', $tree->id())->delete();
301 DB::table('media')->where('m_file', '=', $tree->id())->delete();
304 ->where('gedcom_id', '=', $tree->id())
306 DB::table('block')->where('gedcom_id', '=', $tree->id())->delete();
307 DB::table('user_gedcom_setting')->where('gedcom_id', '=', $tree->id())->delete();
308 DB::table('gedcom_setting')->where('gedcom_id', '=', $tree->id())->delete();
309 DB::table('module_privacy')->where('gedcom_id', '=', $tree->id())->delete();
310 DB::table('hit_counter')->where('gedcom_id', '=', $tree->id())->delete();
311 DB::table('default_resn')->where('gedcom_id', '=', $tree->id())->delete();
312 DB::table('gedcom_chunk')->where('gedcom_id', '=', $tree->id())->delete();
313 DB::table('log')->where('gedcom_id', '=', $tree->id())->delete();
314 DB::table('gedcom')->where('gedcom_id', '=', $tree->id())->delete();