Lines Matching refs:fact

285         $fact   = $this->facts(['RESN'])->first();
286 … $locked = $fact instanceof Fact && str_ends_with($fact->value(), RestrictionNotice::VALUE_LOCKED);
310 foreach ($this->facts([], false, $access_level) as $fact) {
311 $gedcom .= "\n" . $fact->gedcom();
538 $fact = $this->facts($facts, true)->first();
540 if ($fact === null) {
547 if ($fact->date()->isOK()) {
548 …ributes[] = view('fact-date', ['cal_link' => 'false', 'fact' => $fact, 'record' => $fact->record()…
551 if ($fact->place()->gedcomName() !== '' && $style === 2) {
552 $attributes[] = $fact->place()->shortName();
559 …return '<div><em>' . I18N::translate('%1$s: %2$s', $fact->label(), implode(' — ', $attributes)) . …
629 foreach ($this->facts as $fact) {
630 … if (($filter === [] || in_array($fact->tag(), $filter, true)) && $fact->canShow($access_level)) {
631 $facts->push($fact);
664 $facts = $facts->filter(static fn (Fact $fact): bool => !$fact->isPendingDeletion());
814 foreach ($this->facts([], false, Auth::PRIV_HIDE, true) as $fact) {
815 if ($fact->id() === $fact_id) {
820 } elseif ($update_chan && str_ends_with($fact->tag(), ':CHAN')) {
821 $new_gedcom .= "\n" . $this->updateChange($fact->gedcom());
823 $new_gedcom .= "\n" . $fact->gedcom();
954 foreach ($this->facts() as $fact) {
955 if ($fact->value() === $value) {
956 $this->deleteFact($fact->id(), $update_chan);
957 …} elseif (preg_match_all('/\n(\d) ' . Gedcom::REGEX_TAG . ' ' . $value . '/', $fact->gedcom(), $ma…
958 $gedcom = $fact->gedcom();
964 $this->updateFact($fact->id(), $gedcom, $update_chan);
1030 foreach ($facts as $fact) {
1031 …. $level . ' (' . $fact_type . ') (.+)((\n[' . $sublevel . '-9].+)*)/m', $fact->gedcom(), $matches…
1035 $this->addName('_MARNM', $match[2], $fact->gedcom());
1037 $this->addName($match[1], $match[2], $fact->gedcom());
1075 $fact = new Fact($gedcom_fact, $this, md5($gedcom_fact));
1077 $fact->setPendingDeletion();
1079 $facts[] = $fact;
1083 $fact = new Fact($pending_fact, $this, md5($pending_fact));
1084 $fact->setPendingAddition();
1085 $facts[] = $fact;