Lines Matching refs:this
126 $this->id = $id;
127 $this->name = $name;
128 $this->title = $title;
129 $this->fact_privacy = [];
130 $this->individual_privacy = [];
131 $this->individual_fact_privacy = [];
135 ->where('gedcom_id', '=', $this->id)
144 $this->individual_fact_privacy[$row->xref][$row->tag_type] = $row->resn;
146 $this->individual_privacy[$row->xref] = $row->resn;
149 $this->fact_privacy[$row->tag_type] = $row->resn;
174 if ($setting_value !== $this->getPreference($setting_name)) {
176 'gedcom_id' => $this->id,
182 $this->preferences[$setting_name] = $setting_value;
184 …ConfigurationLog('Tree preference "' . $setting_name . '" set to "' . $setting_value . '"', $this);
187 return $this;
200 if ($this->preferences === []) {
201 $this->preferences = DB::table('gedcom_setting')
202 ->where('gedcom_id', '=', $this->id)
207 …return $this->preferences[$setting_name] ?? $default ?? self::DEFAULT_PREFERENCES[$setting_name] ?…
217 return $this->name;
227 return $this->title;
237 return $this->fact_privacy;
247 return $this->individual_privacy;
257 return $this->individual_fact_privacy;
271 if ($this->getUserPreference($user, $setting_name) !== $setting_value) {
274 'gedcom_id' => $this->id(),
282 $this->user_preferences[$user->id()][$setting_name] = $setting_value;
284 …. $setting_name . '" set to "' . $setting_value . '" for user "' . $user->userName() . '"', $this);
287 return $this;
303 if (!array_key_exists($user->id(), $this->user_preferences)) {
304 $this->user_preferences[$user->id()] = DB::table('user_gedcom_setting')
306 ->where('gedcom_id', '=', $this->id)
311 return $this->user_preferences[$user->id()][$setting_name] ?? $default;
321 return $this->id;
333 return Auth::isModerator($this, $user);
344 ->where('gedcom_id', '=', $this->id)
373 'gedcom_id' => $this->id,
383 $record = Registry::gedcomRecordFactory()->new($xref, $gedcom, null, $this);
391 return Registry::gedcomRecordFactory()->new($xref, '', $gedcom, $this);
418 'gedcom_id' => $this->id,
428 $record = Registry::familyFactory()->new($xref, $gedcom, null, $this);
436 return Registry::familyFactory()->new($xref, '', $gedcom, $this);
463 'gedcom_id' => $this->id,
473 $record = Registry::individualFactory()->new($xref, $gedcom, null, $this);
481 return Registry::individualFactory()->new($xref, '', $gedcom, $this);
508 'gedcom_id' => $this->id,
518 $record = Registry::mediaFactory()->new($xref, $gedcom, null, $this);
526 return Registry::mediaFactory()->new($xref, '', $gedcom, $this);
542 $individual = Registry::individualFactory()->make($xref, $this);
545 $family = Registry::familyFactory()->make($xref, $this);
553 …if ($individual === null && $this->getUserPreference($user, UserInterface::PREF_TREE_DEFAULT_XREF)…
554 … Registry::individualFactory()->make($this->getUserPreference($user, UserInterface::PREF_TREE_DEFA…
557 …if ($individual === null && $this->getUserPreference($user, UserInterface::PREF_TREE_ACCOUNT_XREF)…
558 … Registry::individualFactory()->make($this->getUserPreference($user, UserInterface::PREF_TREE_ACCO…
561 if ($individual === null && $this->getPreference('PEDIGREE_ROOT_ID') !== '') {
562 …$individual = Registry::individualFactory()->make($this->getPreference('PEDIGREE_ROOT_ID'), $this);
566 ->where('i_file', '=', $this->id())
570 $individual = Registry::individualFactory()->make($xref, $this);
575 $individual = Registry::individualFactory()->new('I', '0 @I@ INDI', null, $this);
588 return Registry::filesystem()->data($this->getPreference('MEDIA_DIRECTORY'));