Home
last modified time | relevance | path

Searched refs:Fact (Results 1 – 25 of 214) sorted by relevance

123456789

/webtrees/tests/app/SurnameTradition/
H A DLithuanianSurnameTraditionTest.php22 use Fisharebest\Webtrees\Fact; alias
57 $father_fact = $this->createMock(Fact::class);
63 $mother_fact = $this->createMock(Fact::class);
80 $father_fact = $this->createMock(Fact::class);
86 $mother_fact = $this->createMock(Fact::class);
103 $father_fact = $this->createMock(Fact::class);
109 $mother_fact = $this->createMock(Fact::class);
120 $father_fact = $this->createMock(Fact::class);
131 $father_fact = $this->createMock(Fact::class);
142 $father_fact = $this->createMock(Fact::class);
[all …]
H A DPolishSurnameTraditionTest.php22 use Fisharebest\Webtrees\Fact; alias
47 $father_fact = $this->createMock(Fact::class);
53 $mother_fact = $this->createMock(Fact::class);
70 $father_fact = $this->createMock(Fact::class);
76 $mother_fact = $this->createMock(Fact::class);
93 $father_fact = $this->createMock(Fact::class);
99 $mother_fact = $this->createMock(Fact::class);
110 $father_fact = $this->createMock(Fact::class);
116 $mother_fact = $this->createMock(Fact::class);
127 $father_fact = $this->createMock(Fact::class);
[all …]
H A DPaternalSurnameTraditionTest.php22 use Fisharebest\Webtrees\Fact; alias
46 $father_fact = $this->createMock(Fact::class);
52 $mother_fact = $this->createMock(Fact::class);
79 $father_fact = $this->createMock(Fact::class);
85 $mother_fact = $this->createMock(Fact::class);
102 $father_fact = $this->createMock(Fact::class);
108 $mother_fact = $this->createMock(Fact::class);
125 $father_fact = $this->createMock(Fact::class);
131 $mother_fact = $this->createMock(Fact::class);
148 $father_fact = $this->createMock(Fact::class);
[all …]
H A DIcelandicSurnameTraditionTest.php22 use Fisharebest\Webtrees\Fact; alias
46 $father_fact = $this->createMock(Fact::class);
52 $mother_fact = $this->createMock(Fact::class);
69 $father_fact = $this->createMock(Fact::class);
75 $mother_fact = $this->createMock(Fact::class);
92 $father_fact = $this->createMock(Fact::class);
98 $mother_fact = $this->createMock(Fact::class);
115 $fact = $this->createMock(Fact::class);
132 $fact = $this->createMock(Fact::class);
149 $fact = $this->createMock(Fact::class);
[all …]
H A DPortugueseSurnameTraditionTest.php22 use Fisharebest\Webtrees\Fact; alias
56 $father_fact = $this->createMock(Fact::class);
62 $mother_fact = $this->createMock(Fact::class);
100 $father_fact = $this->createMock(Fact::class);
106 $mother_fact = $this->createMock(Fact::class);
123 $fact = $this->createMock(Fact::class);
149 $fact = $this->createMock(Fact::class);
H A DSpanishSurnameTraditionTest.php22 use Fisharebest\Webtrees\Fact; alias
46 $father_fact = $this->createMock(Fact::class);
52 $mother_fact = $this->createMock(Fact::class);
90 $father_fact = $this->createMock(Fact::class);
96 $mother_fact = $this->createMock(Fact::class);
113 $fact = $this->createMock(Fact::class);
140 $fact = $this->createMock(Fact::class);
H A DPatrilinealSurnameTraditionTest.php22 use Fisharebest\Webtrees\Fact; alias
56 $father_fact = $this->createMock(Fact::class);
62 $mother_fact = $this->createMock(Fact::class);
89 $father_fact = $this->createMock(Fact::class);
95 $mother_fact = $this->createMock(Fact::class);
123 $fact = $this->createMock(Fact::class);
150 $fact = $this->createMock(Fact::class);
H A DMatrilinealSurnameTraditionTest.php22 use Fisharebest\Webtrees\Fact; alias
56 $father_fact = $this->createMock(Fact::class);
62 $mother_fact = $this->createMock(Fact::class);
89 $father_fact = $this->createMock(Fact::class);
95 $mother_fact = $this->createMock(Fact::class);
123 $fact = $this->createMock(Fact::class);
150 $fact = $this->createMock(Fact::class);
H A DDefaultSurnameTraditionTest.php22 use Fisharebest\Webtrees\Fact; alias
46 $father_fact = $this->createMock(Fact::class);
52 $mother_fact = $this->createMock(Fact::class);
79 $fact = $this->createMock(Fact::class);
106 $fact = $this->createMock(Fact::class);
/webtrees/app/Services/
H A DGedcomEditService.php23 use Fisharebest\Webtrees\Fact; alias
74 $facts = $tags->map(fn (string $tag): Fact => $this->createNewFact($dummy, $tag));
76 return Fact::sortFacts($facts);
91 $facts = $tags->map(fn (string $tag): Fact => $this->createNewFact($dummy, $tag));
92 $sex_fact = new Collection([new Fact('1 SEX ' . $sex, $dummy, '')]);
93 …$name_facts = Collection::make($names)->map(static fn (string $gedcom): Fact => new Fact($gedcom, …
95 return $sex_fact->concat($name_facts)->concat(Fact::sortFacts($facts));
102 * @return Fact
104 private function createNewFact(GedcomRecord $record, string $tag): Fact
110 return new Fact($gedcom, $record, '');
[all …]
H A DClipboardService.php22 use Fisharebest\Webtrees\Fact; alias
42 * @param Fact $fact
44 public function copyFact(Fact $fact): void
110 … ->map(static fn (string $clipping): Fact => new Fact($clipping, $record, md5($clipping)));
130 … ->map(static fn (string $clipping): Fact => new Fact($clipping, $record, md5($clipping)))
131 … ->filter(static fn (Fact $fact): bool => $types->contains(explode(':', $fact->tag())[1]));
H A DIndividualFactsService.php23 use Fisharebest\Webtrees\Fact; alias
67 ->filter(fn (Fact $fact): bool => !$exclude_facts->contains($fact->tag()));
83 ->filter(fn (Fact $fact): bool => !$exclude_facts->contains($fact->tag()));
122 $facts[] = new Fact($factrec, $associate, 'asso');
826 * @param Fact $fact
832 private function includeFact(Fact $fact, Date $min_date, Date $max_date): bool
842 * @param Fact $fact
846 * @return Fact
848 private function convertEvent(Fact $fact, array $types, string $sex): Fact
856 $converted = new Fact($gedcom, $fact->record(), $fact->id());
/webtrees/app/Module/
H A DModuleMapLinkTrait.php22 use Fisharebest\Webtrees\Fact; alias
48 * @param Fact $fact
52 public function mapLink(Fact $fact): string
76 * @param Fact $fact
80 protected function isMapAvailableForLocation(Fact $fact): bool
94 * @param Fact $fact
98 protected function mapUrl(Fact $fact): string
H A DShareAnniversaryModule.php24 use Fisharebest\Webtrees\Fact; alias
102 ->filter(fn (Fact $fact): bool => $fact->date()->isOK())
103 ->filter(fn (Fact $fact): bool => $fact->date()->qual1 === '')
104 ->filter(fn (Fact $fact): bool => $fact->date()->minimumDate() instanceof GregorianDate)
105 …->filter(fn (Fact $fact): bool => $fact->date()->minimumJulianDay() === $fact->date()->maximumJuli…
106 ->mapWithKeys(fn (Fact $fact): array => [
137 $fact = $record->facts()->first(fn (Fact $fact): bool => $fact->id() === $fact_id);
139 if ($fact instanceof Fact) {
H A DFixWtObjeSortTag.php22 use Fisharebest\Webtrees\Fact; alias
139 ->map(static fn (Fact $fact): string => $fact->value());
141 $callback = static function (Fact $x, Fact $y) use ($wt_obje_sort): int {
155 …->filter(static fn (Fact $fact): bool => $fact->tag() !== 'INDI:OBJE' && $fact->tag() !== 'INDI:_W…
156 ->map(static fn (Fact $fact): string => $fact->gedcom())
159 …return $gedcom . $obje->map(static fn (Fact $fact): string => "\n" . $fact->gedcom())->implode('');
H A DModuleHistoricEventsTrait.php23 use Fisharebest\Webtrees\Fact; alias
52 ->map(static fn (string $gedcom): Fact => new Fact($gedcom, $individual, 'histo'))
53 ->filter(static fn (Fact $fact): bool => Date::compare($fact->date(), $min_date) >= 0)
54 ->filter(static fn (Fact $fact): bool => Date::compare($fact->date(), $max_date) <= 0);
H A DPlacesModule.php23 use Fisharebest\Webtrees\Fact; alias
185 if ($childsBirth instanceof Fact && $childsBirth->place()->gedcomName() !== '') {
191 $facts = Fact::sortFacts($facts);
193 return $facts->filter(static function (Fact $item): bool {
200 * @param Fact $fact
204 private function summaryData(Individual $individual, Fact $fact): array
/webtrees/resources/views/
H A Dchart-box.phtml6 use Fisharebest\Webtrees\Fact; alias
83 /** @var Collection|Fact[] $all_facts */
91 $all_facts = $all_facts->filter(static function (Fact $fact) use ($exclude): bool {
95 $all_facts = Fact::sortFacts($all_facts);
165 if ($event instanceof Fact) {
175 if ($event instanceof Fact) {
184 if ($event instanceof Fact) {
195 if ($event instanceof Fact) {
/webtrees/app/
H A DRelationship.php130 …->contains(fn (Fact $fact): bool => $fact->value() === '@' . $nodes[1]->xref() . '@' && $fact->att…
142 …->contains(fn (Fact $fact): bool => $fact->value() === '@' . $nodes[1]->xref() . '@' && $fact->att…
283 if ($fact instanceof Fact) {
348 …->contains(fn (Fact $fact): bool => $fact->value() === '@' . $nodes[1]->xref() . '@' && $fact->att…
360 …->contains(fn (Fact $fact): bool => $fact->value() === '@' . $nodes[1]->xref() . '@' && $fact->att…
403 …$date1 = $nodes[0]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->d…
404 …$date2 = $nodes[2]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->d…
502 …$date1 = $nodes[0]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->d…
503 …$date2 = $nodes[2]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->d…
530 …$date1 = $nodes[0]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->d…
[all …]
/webtrees/app/Http/RequestHandlers/
H A DCalendarEvents.php29 use Fisharebest\Webtrees\Fact; alias
97 …->sort(static fn (Fact $x, Fact $y): int => $x->date()->minimumJulianDay() <=> $y->date()->minimum…
99 …$family_anniversaries = $anniversaries->filter(static fn (Fact $f): bool => $f->record() instanceo…
101 …$individual_anniversaries = $anniversaries->filter(static fn (Fact $f): bool => $f->record() insta…
104 ->map(static fn (Fact $x): string => $x->record()->xref())
109 ->map(static fn (Fact $x): string => $x->record()->xref())
/webtrees/tests/app/
H A DFactTest.php34 $fact = new Fact("1 BIRT\n2 ADDR address", $individual, '');
37 $fact = new Fact("1 BIRT\n2 ADDR line 1\n3 CONT line 2", $individual, '');
49 $fact = new Fact("1 BIRT\n2 PLACXYZ\n3 CONT place", $individual, '');
52 $fact = new Fact("1 BIRT\n2 PLACXYZ place", $individual, '');
/webtrees/tests/app/Census/
H A DCensusColumnConditionCanadaWidowedTest.php23 use Fisharebest\Webtrees\Fact; alias
104 $fact = $this->createMock(Fact::class);
134 $fact = $this->createMock(Fact::class);
241 $fact = $this->createMock(Fact::class);
268 $fact = $this->createMock(Fact::class);
295 $fact = $this->createMock(Fact::class);
322 $fact = $this->createMock(Fact::class);
H A DCensusColumnConditionCanadaTest.php23 use Fisharebest\Webtrees\Fact; alias
104 $fact = $this->createMock(Fact::class);
134 $fact = $this->createMock(Fact::class);
241 $fact = $this->createMock(Fact::class);
268 $fact = $this->createMock(Fact::class);
295 $fact = $this->createMock(Fact::class);
322 $fact = $this->createMock(Fact::class);
H A DCensusColumnConditionUsTest.php23 use Fisharebest\Webtrees\Fact; alias
104 $fact = $this->createMock(Fact::class);
134 $fact = $this->createMock(Fact::class);
241 $fact = $this->createMock(Fact::class);
268 $fact = $this->createMock(Fact::class);
295 $fact = $this->createMock(Fact::class);
322 $fact = $this->createMock(Fact::class);
H A DCensusColumnConditionCanadaMarriedWidowedTest.php23 use Fisharebest\Webtrees\Fact; alias
104 $fact = $this->createMock(Fact::class);
134 $fact = $this->createMock(Fact::class);
241 $fact = $this->createMock(Fact::class);
268 $fact = $this->createMock(Fact::class);
295 $fact = $this->createMock(Fact::class);
322 $fact = $this->createMock(Fact::class);

123456789