Lines Matching refs:this

83         $access_level ??= Auth::accessLevel($this->tree);
85 …return (int) $this->tree->getPreference('SHOW_LIVING_NAMES') >= $access_level || $this->canShow($a…
98 … if ((int) $this->tree->getPreference('SHOW_DEAD_PEOPLE') >= $access_level && $this->isDead()) {
100 $KEEP_ALIVE_YEARS_BIRTH = (int) $this->tree->getPreference('KEEP_ALIVE_YEARS_BIRTH');
102 … implode('|', Gedcom::BIRTH_EVENTS) . ').*(?:\n[2-9].*)*\n2 DATE (.+)/', $this->gedcom, $matches, …
111 $KEEP_ALIVE_YEARS_DEATH = (int) $this->tree->getPreference('KEEP_ALIVE_YEARS_DEATH');
113 … implode('|', Gedcom::DEATH_EVENTS) . ').*(?:\n[2-9].*)*\n2 DATE (.+)/', $this->gedcom, $matches, …
127 …$user_path_length = (int) $this->tree->getUserPreference(Auth::user(), UserInterface::PREF_TREE_PA…
128 …$gedcomid = $this->tree->getUserPreference(Auth::user(), UserInterface::PREF_TREE_ACCOUNT_…
131 return self::isRelated($this, $user_path_length);
222 $MAX_ALIVE_AGE = (int) $this->tree->getPreference('MAX_ALIVE_AGE');
226 …. implode('|', Gedcom::DEATH_EVENTS) . ')(?: Y|(?:\n[2-9].+)*\n2 (DATE|PLAC) )/', $this->gedcom)) {
231 if (preg_match_all('/\n2 DATE (.+)/', $this->gedcom, $date_matches)) {
240 if (preg_match('/\n1 BIRT(?:\n[2-9].+)*\n2 DATE /', $this->gedcom)) {
248 foreach ($this->childFamilies(Auth::PRIV_HIDE) as $family) {
262 foreach ($this->spouseFamilies(Auth::PRIV_HIDE) as $family) {
272 $spouse = $family->spouse($this, Auth::PRIV_HIDE);
317 $fact = $this->facts(['OBJE'])
344 $media_file = $this->findHighlightedMediaFile();
350 if ($this->tree->getPreference('USE_SILHOUETTE') === '1') {
351 …return '<i class="icon-silhouette icon-silhouette-' . strtolower($this->sex()) . ' wt-icon-flip-rt…
364 foreach ($this->getAllBirthDates() as $date) {
380 foreach ($this->getAllBirthPlaces() as $place) {
384 return new Place('', $this->tree);
394 foreach ($this->getAllDeathDates() as $date) {
410 foreach ($this->getAllDeathPlaces() as $place) {
414 return new Place('', $this->tree);
428 $birth_place = strip_tags($this->getBirthPlace()->shortName());
429 $death_place = strip_tags($this->getDeathPlace()->shortName());
433 $birth_date = "\u{2068}" . strip_tags($this->getBirthDate()->display()) . "\u{2069}";
434 $death_date = "\u{2068}" . strip_tags($this->getDeathDate()->display()) . "\u{2069}";
437 $birth_year = $this->getBirthDate()->minimumDate()->format('%Y');
438 $death_year = $this->getDeathDate()->maximumDate()->format('%Y');
444 if ($death_year === '' && $this->isDead()) {
464 $dates = $this->getAllEventDates([$event]);
482 $places = $this->getAllEventPlaces([$event]);
500 $dates = $this->getAllEventDates([$event]);
518 $places = $this->getAllEventPlaces([$event]);
535 if ($this->estimated_birth_date === null) {
536 foreach ($this->getAllBirthDates() as $date) {
538 $this->estimated_birth_date = $date;
542 if ($this->estimated_birth_date === null) {
545 $tmp = $this->getDeathDate();
547 … $min[] = $tmp->minimumJulianDay() - 365 * (int) $this->tree->getPreference('MAX_ALIVE_AGE');
550 foreach ($this->childFamilies() as $family) {
580 foreach ($this->spouseFamilies() as $family) {
586 $spouse = $family->spouse($this);
597 … $min[] = $tmp->maximumJulianDay() - 365 * ($this->sex() === 'F' ? 45 : 65);
606 $this->estimated_birth_date = new Date('EST ' . $year);
608 $this->estimated_birth_date = new Date(''); // always return a date object
613 return $this->estimated_birth_date;
623 if ($this->estimated_death_date === null) {
624 foreach ($this->getAllDeathDates() as $date) {
626 $this->estimated_death_date = $date;
630 if ($this->estimated_death_date === null) {
631 if ($this->getEstimatedBirthDate()->minimumJulianDay() !== 0) {
632 $max_alive_age = (int) $this->tree->getPreference('MAX_ALIVE_AGE');
633 … $this->estimated_death_date = $this->getEstimatedBirthDate()->addYears($max_alive_age, 'BEF');
635 $this->estimated_death_date = new Date(''); // always return a date object
640 return $this->estimated_death_date;
652 if (preg_match('/\n1 SEX ([MFX])/', $this->gedcom . $this->pending, $match)) {
668 $access_level ??= Auth::accessLevel($this->tree);
670 if ($this->tree->getPreference('SHOW_PRIVATE_RELATIONSHIPS') === '1') {
675 foreach ($this->facts(['FAMS'], false, $access_level) as $fact) {
695 $family = $this->spouseFamilies()->last();
698 return $family->spouse($this);
711 if (preg_match('/\n1 NCHI (\d+)(?:\n|$)/', $this->gedcom(), $match)) {
716 foreach ($this->spouseFamilies() as $fam) {
734 $access_level ??= Auth::accessLevel($this->tree);
736 if ($this->tree->getPreference('SHOW_PRIVATE_RELATIONSHIPS') === '1') {
742 foreach ($this->facts(['FAMC'], false, $access_level) as $fact) {
760 $families = $this->childFamilies();
782 $families = $this->spouseFamilies();
785 $spouse = $family->spouse($this);
788 foreach ($family->spouse($this)->spouseFamilies() as $step_family) {
808 …$fact = $this->facts(['FAMC'])->first(static fn (Fact $fact): bool => $fact->target() === $family);
838 foreach ($this->childFamilies() as $family) {
885 $spouse = $family->spouse($this);
1038 $this->getAllNames[] = [
1062 $access_level = $this->canShowName() ? Auth::PRIV_HIDE : Auth::accessLevel($this->tree);
1064 $this->extractNamesFromFacts(
1067 $this->facts(['NAME'], false, $access_level)
1080 $this->formatFirstMajorFact(Gedcom::BIRTH_EVENTS, 1) .
1081 $this->formatFirstMajorFact(Gedcom::DEATH_EVENTS, 1);
1090 ->where('i_file', '=', $this->tree->id())
1091 ->where('i_id', '=', $this->xref())