Lines Matching refs:fact
67 ->filter(fn (Fact $fact): bool => !$exclude_facts->contains($fact->tag()));
83 ->filter(fn (Fact $fact): bool => !$exclude_facts->contains($fact->tag()));
105 foreach ($associate->facts() as $fact) {
106 if (preg_match('/\n\d _?ASSO @' . $individual->xref() . '@/', $fact->gedcom())) {
108 $factrec = explode("\n", $fact->gedcom(), 2)[0];
109 if (preg_match('/\n2 DATE .*/', $fact->gedcom(), $match)) {
112 if (preg_match('/\n2 PLAC .*/', $fact->gedcom(), $match)) {
481 … foreach ($this->childFacts($person, $cfamily, '_GCHI', 'son', $min_date, $max_date) as $fact) {
482 $facts[] = $fact;
486 … foreach ($this->childFacts($person, $cfamily, '_GCHI', 'dau', $min_date, $max_date) as $fact) {
487 $facts[] = $fact;
491 … foreach ($this->childFacts($person, $cfamily, '_GCHI', 'chi', $min_date, $max_date) as $fact) {
492 $facts[] = $fact;
508 foreach ($child->facts(['BIRT', 'CHR', 'BAPM', 'ADOP']) as $fact) {
510 if ($option === '_CHIL' || $this->includeFact($fact, $min_date, $max_date)) {
515 …$facts[] = $this->convertEvent($fact, $birth_of_a_grandchild1[$fact->tag()], $fact->record()->sex(…
518 …$facts[] = $this->convertEvent($fact, $birth_of_a_grandchild2[$fact->tag()], $fact->record()->sex(…
521 …$facts[] = $this->convertEvent($fact, $birth_of_a_grandchild[$fact->tag()], $fact->record()->sex()…
526 … $facts[] = $this->convertEvent($fact, $birth_of_a_sibling[$fact->tag()], $fact->record()->sex());
529 …$facts[] = $this->convertEvent($fact, $birth_of_a_half_sibling[$fact->tag()], $fact->record()->sex…
532 … $facts[] = $this->convertEvent($fact, $birth_of_a_child[$fact->tag()], $fact->record()->sex());
540 foreach ($child->facts(['DEAT', 'BURI', 'CREM']) as $fact) {
541 if ($this->includeFact($fact, $min_date, $max_date)) {
546 …$facts[] = $this->convertEvent($fact, $death_of_a_grandchild1[$fact->tag()], $fact->record()->sex(…
549 …$facts[] = $this->convertEvent($fact, $death_of_a_grandchild2[$fact->tag()], $fact->record()->sex(…
552 …$facts[] = $this->convertEvent($fact, $death_of_a_grandchild[$fact->tag()], $fact->record()->sex()…
557 … $facts[] = $this->convertEvent($fact, $death_of_a_sibling[$fact->tag()], $fact->record()->sex());
560 …$facts[] = $this->convertEvent($fact, $death_of_a_half_sibling[$fact->tag()], $fact->record()->sex…
563 … $facts[] = $this->convertEvent($fact, $death_of_a_child[$fact->tag()], $fact->record()->sex());
573 foreach ($sfamily->facts(['MARR']) as $fact) {
574 if ($this->includeFact($fact, $min_date, $max_date)) {
579 … $facts[] = $this->convertEvent($fact, $marriage_of_a_grandchild1, $child->sex());
582 … $facts[] = $this->convertEvent($fact, $marriage_of_a_grandchild2, $child->sex());
585 … $facts[] = $this->convertEvent($fact, $marriage_of_a_grandchild, $child->sex());
590 … $facts[] = $this->convertEvent($fact, $marriage_of_a_sibling, $child->sex());
593 … $facts[] = $this->convertEvent($fact, $marriage_of_a_half_sibling, $child->sex());
596 … $facts[] = $this->convertEvent($fact, $marriage_of_a_child, $child->sex());
705 … foreach ($this->childFacts($person, $family, '_SIBL', '', $min_date, $max_date) as $fact) {
706 $facts[] = $fact;
712 … foreach ($this->childFacts($person, $sfamily, '_HSIB', '', $min_date, $max_date) as $fact) {
713 $facts[] = $fact;
718 …each ($this->parentFacts($spouse, $spouse->sex() === 'F' ? 3 : 2, $min_date, $max_date) as $fact) {
719 $facts[] = $fact;
727 foreach ($sfamily->facts(['MARR']) as $fact) {
728 if ($this->includeFact($fact, $min_date, $max_date)) {
730 … $facts[] = $this->convertEvent($fact, ['U' => I18N::translate('Marriage of parents')], 'U');
735 foreach ($sfamily->facts(['MARR']) as $fact) {
736 if ($this->includeFact($fact, $min_date, $max_date)) {
738 $facts[] = $this->convertEvent($fact, $marriage_of_a_parent, 'U');
748 foreach ($parent->facts(['DEAT', 'BURI', 'CREM']) as $fact) {
750 …if ($sosa === 1 && Date::compare($fact->date(), $min_date) < 0 || $this->includeFact($fact, $min_d…
753 … $facts[] = $this->convertEvent($fact, $death_of_a_parent[$fact->tag()], $fact->record()->sex());
759 …$facts[] = $this->convertEvent($fact, $death_of_a_paternal_grandparent[$fact->tag()], $fact->recor…
762 …$facts[] = $this->convertEvent($fact, $death_of_a_maternal_grandparent[$fact->tag()], $fact->recor…
765 …$facts[] = $this->convertEvent($fact, $death_of_a_grandparent[$fact->tag()], $fact->record()->sex(…
813 foreach ($spouse->facts(['DEAT', 'BURI', 'CREM']) as $fact) {
814 if ($this->includeFact($fact, $min_date, $max_date)) {
815 … $facts[] = $this->convertEvent($fact, $death_of_a_spouse[$fact->tag()], $fact->record()->sex());
826 * @param Fact $fact
832 private function includeFact(Fact $fact, Date $min_date, Date $max_date): bool argument
834 $fact_date = $fact->date();
842 * @param Fact $fact
848 private function convertEvent(Fact $fact, array $types, string $sex): Fact argument
852 $gedcom = $fact->gedcom();
856 $converted = new Fact($gedcom, $fact->record(), $fact->id());
858 if ($fact->isPendingAddition()) {
862 if ($fact->isPendingDeletion()) {