/webtrees/app/Services/ |
H A D | IndividualFactsService.php | 66 return $individual->facts() 81 ->map(fn (Family $family): Collection => $family->facts()) 95 $facts = []; 105 foreach ($associate->facts() as $fact) { 122 $facts[] = new Fact($factrec, $associate, 'asso'); 127 return new Collection($facts); 472 $facts = new Collection(); 482 $facts[] = $fact; 487 $facts[] = $fact; 492 $facts[] = $fact; [all …]
|
H A D | CalendarService.php | 99 * @param string $facts restrict the search to just these facts or leave blank for all 106 …public function getCalendarEvents(int $jd1, int $jd2, string $facts, Tree $tree, string $filterof … argument 124 if ($facts === '') { 127 preg_match_all('/([_A-Z]+)/', $facts, $matches); 181 foreach ($record->facts([$row->d_fact]) as $fact) { 209 $facts = new Collection(); 233 $facts->push($fact); 239 …$facts = $facts->sort(static fn (Fact $x, Fact $y): int => $x->jd <=> $y->jd ?: $x->date()->minimu… 243 …$facts = $facts->sort(static fn (Fact $x, Fact $y): int => $x->jd <=> $y->jd ?: $y->date()->minimu… 247 …$facts = $facts->sort(static fn (Fact $x, Fact $y): int => GedcomRecord::nameComparator()($x->reco… [all …]
|
H A D | GedcomEditService.php | 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)); 95 return $sex_fact->concat($name_facts)->concat(Fact::sortFacts($facts)); 238 … static fn (string $v, string $k) => !str_ends_with($v, ':1') || $record->facts([$k])->isEmpty(), …
|
/webtrees/app/ |
H A D | GedcomRecord.php | 84 protected array $facts; variable in Fisharebest\\Webtrees\\GedcomRecord 110 $this->facts = $this->parseFacts(); 285 $fact = $this->facts(['RESN'])->first(); 309 // Check each of the facts for access 310 foreach ($this->facts([], false, $access_level) as $fact) { 524 * Extract/format the first fact from a list of facts. 526 * @param array<string> $facts 531 public function formatFirstMajorFact(array $facts, int $style): string 533 $fact = $this->facts($facts, tru 536 formatFirstMajorFact(array $facts, int $style) global() argument 616 public function facts( global() function in Fisharebest\\Webtrees\\GedcomRecord 1026 extractNamesFromFacts(int $level, string $fact_type, Collection $facts) global() argument [all...] |
H A D | Relationship.php | 129 ->facts(['FAMC'], false, Auth::PRIV_HIDE) 141 ->facts(['FAMC'], false, Auth::PRIV_HIDE) 281 … $fact = $family->facts(['ENGA', 'MARR', 'DIV', 'ANUL'], true, Auth::PRIV_HIDE)->last(); 347 ->facts(['FAMC'], false, Auth::PRIV_HIDE) 359 ->facts(['FAMC'], false, Auth::PRIV_HIDE) 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 …]
|
H A D | Individual.php | 157 … foreach ($user_individual->facts(['FAMC', 'FAMS'], false, Auth::PRIV_HIDE) as $fact) { 185 … foreach ($family->facts(['HUSB', 'WIFE', 'CHIL'], false, Auth::PRIV_HIDE) as $fact) { 199 … foreach ($individual->facts(['FAMC', 'FAMS'], false, Auth::PRIV_HIDE) as $fact) { 317 $fact = $this->facts(['OBJE']) 675 foreach ($this->facts(['FAMS'], false, $access_level) as $fact) { 742 foreach ($this->facts(['FAMC'], false, $access_level) as $fact) { 808 …$fact = $this->facts(['FAMC'])->first(static fn (Fact $fact): bool => $fact->target() === $family); 1067 $this->facts(['NAME'], false, $access_level)
|
/webtrees/app/Module/ |
H A D | SourcesTabModule.php | 36 private Collection|null $facts = null; variable in Fisharebest\\Webtrees\\Module\\SourcesTabModule 126 if ($this->facts === null) { 127 $facts = $individual->facts(); 131 foreach ($family->facts() as $fact) { 132 $facts->push($fact); 137 $this->facts = new Collection(); 139 foreach ($facts as $fact) { 141 $this->facts->push($fact); 145 $this->facts = Fact::sortFacts($this->facts); 148 return $this->facts;
|
H A D | NotesTabModule.php | 38 private Collection|null $facts = null; variable in Fisharebest\\Webtrees\\Module\\NotesTabModule 128 if ($this->facts === null) { 129 $facts = $individual->facts(); 133 foreach ($family->facts() as $fact) { 134 $facts->push($fact); 141 $this->facts = $facts->filter($callback); 143 $this->facts = Fact::sortFacts($this->facts); 146 return $this->facts;
|
H A D | PlacesModule.php | 128 $facts = $this->getPersonalFacts($indi); 135 foreach ($facts as $id => $fact) { 178 $facts = $individual->facts(); 181 $facts = $facts->merge($family->facts()); 184 $childsBirth = $child->facts(['BIRT'])->first(); 186 $facts->push($childsBirth); 191 $facts = Fact::sortFacts($facts); 193 return $facts->filter(static function (Fact $item): bool {
|
H A D | ShareAnniversaryModule.php | 91 $facts = $record->facts(static::INDIVIDUAL_EVENTS, true) 92 …record->spouseFamilies()->map(fn (Family $family): Collection => $family->facts(static::FAMILY_EVE… 94 $facts = $record->facts(static::FAMILY_EVENTS, true); 100 $facts = $facts 111 if ($facts->isNotEmpty()) { 115 'facts' => $facts, 137 $fact = $record->facts()->first(fn (Fact $fact): bool => $fact->id() === $fact_id);
|
H A D | MediaTabModule.php | 128 $facts = $individual->facts(); 132 $facts = $facts->concat($family->facts()); 136 …$facts = $facts->filter(static fn (Fact $fact): bool => preg_match('/(?:^1|\n\d) OBJE @' . Gedcom:… 138 return Fact::sortFacts($facts);
|
H A D | FixPrimaryTag.php | 108 foreach ($record->facts(['_PRIM']) as $prim) { 131 …$facts = $record->facts(['_PRIM'])->filter(static fn (Fact $fact): bool => !$fact->isPendingDeleti… 133 foreach ($facts as $fact) { 151 $facts = $individual->facts([], false, null, true); 158 foreach ($facts as $fact) {
|
H A D | PedigreeMapModule.php | 219 $facts = $this->getPedigreeMapFacts($request, $this->chart_service); 228 foreach ($facts as $sosa => $fact) { 302 $facts = []; 306 $birth = $person->facts(Gedcom::BIRTH_EVENTS, true) 310 $facts[$sosa] = $birth; 315 return $facts;
|
H A D | TimelineChartModule.php | 256 $facts = $individual->facts(); 258 foreach ($family->facts() as $fact) { 259 $facts->push($fact); 263 foreach ($facts as $event) {
|
H A D | OnThisDayModule.php | 146 …$facts = $calendar_service->getEventsList($startjd, $endjd, $events_filter, $filter, $sortStyle, $… 148 if ($facts->isEmpty()) { 158 'facts' => $facts, 164 'facts' => $facts,
|
H A D | UpcomingAnniversariesModule.php | 165 …$facts = $this->calendar_service->getEventsList($startjd, $endjd, $events_filter, $filter, $sortSt… 167 if ($facts->isEmpty()) { 186 'facts' => $facts, 192 'facts' => $facts,
|
/webtrees/resources/css/ |
H A D | xenea.css | 518 * +--- wt-chart-box-facts 629 /* Table of genealogical facts */ 630 .wt-facts-table caption { 634 .wt-facts-table th { 641 .wt-facts-table > tbody > tr > th { 645 .wt-facts-table td { 650 .wt-facts-table .wt-sex-m > td { 655 .wt-facts-table .wt-sex-f > td { 660 .wt-facts-table .wt-sex-u > td { 665 .wt-facts-table .wt-sex-x > td { [all …]
|
/webtrees/app/Http/RequestHandlers/ |
H A D | FixLevel0MediaData.php | 116 $facts = $individual 117 ->facts([], true) 124 foreach ($individual->facts(['OBJE']) as $fact) { 130 $facts = new Collection(); 133 … $facts = $facts->map(static fn (Fact $fact): string => view('admin/fix-level-0-media-action', [ 144 $facts->implode(' '),
|
H A D | ChangeFamilyMembersAction.php | 70 foreach ($old_father->facts(['FAMS']) as $fact) { 76 foreach ($family->facts(['HUSB', 'WIFE']) as $fact) { 93 foreach ($old_mother->facts(['FAMS']) as $fact) { 99 foreach ($family->facts(['HUSB', 'WIFE']) as $fact) { 116 foreach ($old_child->facts(['FAMC']) as $fact) { 122 foreach ($family->facts(['CHIL']) as $fact) {
|
H A D | MergeFactsPage.php | 74 $facts = []; 80 foreach ($record1->facts() as $fact) { 86 foreach ($record2->facts() as $fact) { 95 $facts[] = $fact1; 102 'facts' => $facts,
|
H A D | FamilyPage.php | 82 $facts = $family->facts([], true) 88 'facts' => $facts, 135 foreach ($family->facts(['MARR', 'DIV'], true) as $fact) {
|
/webtrees/resources/views/lists/ |
H A D | sources-table.phtml | 120 … <?= e($source->facts(['ABBR'])->isNotEmpty() ? $source->facts(['ABBR'])->first()->value() : '') ?> 125 … <?= e($source->facts(['AUTH'])->isNotEmpty() ? $source->facts(['AUTH'])->first()->value() : '') ?> 130 …:elementFactory()->make('SOUR:PUBL')->value($source->facts(['PUBL'])->isNotEmpty() ? $source->fact…
|
/webtrees/resources/views/ |
H A D | chart-box.phtml | 84 $all_facts = $individual->facts(); 86 foreach ($family->facts() as $fact) { 164 $event = $individual->facts([$birttag])->first(); 174 $event = $individual->facts([$tag])->first(); 183 $event = $individual->facts([$deattag])->first(); 194 $event = $individual->facts([$tag])->first();
|
H A D | individual-page-menu.phtml | 48 <?php if ($record->facts(['NAME'], false, null, true)->count() > 1) : ?> 62 <?php if ($record->facts(['SEX'], false, null, true)->isEmpty()) : ?> 69 <?php foreach ($record->facts(['SEX'], false, null, true) as $fact) : ?> 101 <?php if ($record->facts(['OBJE'], false, null, true)->count() > 1) : ?>
|
/webtrees/resources/views/modules/relatives/ |
H A D | family.phtml | 35 foreach ($family->facts(['HUSB'], false, $fam_access_level) as $fact) { 72 foreach ($family->facts(['WIFE'], false, $fam_access_level) as $fact) { 112 …foreach ($family->facts(array_merge(Gedcom::MARRIAGE_EVENTS, Gedcom::DIVORCE_EVENTS), true) as $fa… 159 foreach ($family->facts(['CHIL'], false, $fam_access_level) as $fact) { 172 foreach ($person->facts(Gedcom::BIRTH_EVENTS, true) as $bfact) {
|