Home
last modified time | relevance | path

Searched refs:family (Results 1 – 25 of 226) sorted by relevance

12345678910

/webtrees/tests/app/Census/
H A DCensusColumnConditionCanadaWidowedTest.php66 $family = $this->createMock(Family::class);
67 $family->method('getMarriageDate')->willReturn(new Date(''));
68 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
71 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
85 $family = $this->createMock(Family::class);
86 $family->method('getMarriageDate')->willReturn(new Date(''));
87 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
90 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
109 $family = $this->createMock(Family::class);
110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date(''));
[all …]
H A DCensusColumnConditionCanadaTest.php66 $family = $this->createMock(Family::class);
67 $family->method('getMarriageDate')->willReturn(new Date(''));
68 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
71 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
85 $family = $this->createMock(Family::class);
86 $family->method('getMarriageDate')->willReturn(new Date(''));
87 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
90 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
109 $family = $this->createMock(Family::class);
110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date(''));
[all …]
H A DCensusColumnConditionUsTest.php66 $family = $this->createMock(Family::class);
67 $family->method('getMarriageDate')->willReturn(new Date(''));
68 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
71 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
85 $family = $this->createMock(Family::class);
86 $family->method('getMarriageDate')->willReturn(new Date(''));
87 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
90 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
109 $family = $this->createMock(Family::class);
110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date(''));
[all …]
H A DCensusColumnConditionCanadaMarriedWidowedTest.php66 $family = $this->createMock(Family::class);
67 $family->method('getMarriageDate')->willReturn(new Date(''));
68 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
71 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
85 $family = $this->createMock(Family::class);
86 $family->method('getMarriageDate')->willReturn(new Date(''));
87 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
90 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
109 $family = $this->createMock(Family::class);
110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date(''));
[all …]
H A DCensusColumnConditionCanadaWidowedMaleTest.php66 $family = $this->createMock(Family::class);
67 $family->method('getMarriageDate')->willReturn(new Date(''));
68 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
71 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
85 $family = $this->createMock(Family::class);
86 $family->method('getMarriageDate')->willReturn(new Date(''));
87 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
90 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
109 $family = $this->createMock(Family::class);
110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date(''));
[all …]
H A DCensusColumnConditionCanadaMarriedSingleTest.php66 $family = $this->createMock(Family::class);
67 $family->method('getMarriageDate')->willReturn(new Date(''));
68 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
71 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
85 $family = $this->createMock(Family::class);
86 $family->method('getMarriageDate')->willReturn(new Date(''));
87 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
90 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
109 $family = $this->createMock(Family::class);
110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date(''));
[all …]
H A DCensusColumnConditionCanadaWidowedFemaleTest.php66 $family = $this->createMock(Family::class);
67 $family->method('getMarriageDate')->willReturn(new Date(''));
68 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
71 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
85 $family = $this->createMock(Family::class);
86 $family->method('getMarriageDate')->willReturn(new Date(''));
87 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
90 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
109 $family = $this->createMock(Family::class);
110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date(''));
[all …]
H A DCensusColumnConditionFrenchVeuveTest.php66 $family = $this->createMock(Family::class);
67 $family->method('getMarriageDate')->willReturn(new Date(''));
68 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
71 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
85 $family = $this->createMock(Family::class);
86 $family->method('getMarriageDate')->willReturn(new Date(''));
87 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
90 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
109 $family = $this->createMock(Family::class);
110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date(''));
[all …]
H A DCensusColumnConditionFrenchGarconTest.php66 $family = $this->createMock(Family::class);
67 $family->method('getMarriageDate')->willReturn(new Date(''));
68 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
71 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
85 $family = $this->createMock(Family::class);
86 $family->method('getMarriageDate')->willReturn(new Date(''));
87 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
90 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
109 $family = $this->createMock(Family::class);
110 $family
[all …]
H A DCensusColumnConditionFrenchVeufTest.php66 $family = $this->createMock(Family::class);
67 $family->method('getMarriageDate')->willReturn(new Date(''));
68 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
71 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
85 $family = $this->createMock(Family::class);
86 $family->method('getMarriageDate')->willReturn(new Date(''));
87 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
90 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
109 $family = $this->createMock(Family::class);
110 $family
[all …]
H A DCensusColumnConditionFrenchHommeTest.php66 $family = $this->createMock(Family::class);
67 $family->method('getMarriageDate')->willReturn(new Date(''));
68 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
71 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
85 $family = $this->createMock(Family::class);
86 $family->method('getMarriageDate')->willReturn(new Date(''));
87 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
90 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
109 $family = $this->createMock(Family::class);
110 $family
[all …]
H A DCensusColumnConditionFrenchFilleTest.php66 $family = $this->createMock(Family::class);
67 $family->method('getMarriageDate')->willReturn(new Date(''));
68 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
71 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
85 $family = $this->createMock(Family::class);
86 $family->method('getMarriageDate')->willReturn(new Date(''));
87 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
90 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
109 $family = $this->createMock(Family::class);
110 $family
[all …]
H A DCensusColumnConditionEnglishTest.php66 $family = $this->createMock(Family::class);
67 $family->method('getMarriageDate')->willReturn(new Date(''));
68 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
71 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
85 $family = $this->createMock(Family::class);
86 $family->method('getMarriageDate')->willReturn(new Date(''));
87 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
90 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
109 $family = $this->createMock(Family::class);
110 $family
[all …]
H A DCensusColumnConditionDanishTest.php66 $family = $this->createMock(Family::class);
67 $family->method('getMarriageDate')->willReturn(new Date(''));
68 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
71 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
85 $family = $this->createMock(Family::class);
86 $family->method('getMarriageDate')->willReturn(new Date(''));
87 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
90 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
109 $family = $this->createMock(Family::class);
110 $family
[all …]
H A DCensusColumnConditionFrenchFemmeTest.php66 $family = $this->createMock(Family::class);
67 $family->method('getMarriageDate')->willReturn(new Date(''));
68 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
71 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
85 $family = $this->createMock(Family::class);
86 $family->method('getMarriageDate')->willReturn(new Date(''));
87 $family->method('facts')->with(['MARR'])->willReturn(new Collection());
90 $individual->method('spouseFamilies')->willReturn(new Collection([$family]));
109 $family = $this->createMock(Family::class);
110 $family
[all …]
/webtrees/app/Statistics/Repository/
H A DFamilyRepository.php92 $family = Registry::familyFactory()->mapper($this->tree)($row);
94 if (!$family->canShow()) {
101 return $family->formatList();
107 return '<a href="' . e($family->url()) . '">' . $family->fullName() . '</a>';
175 ->map(static function (Family $family): array {
177 foreach ($family->children() as $child) {
184 'family' => $family,
260 foreach ($families as $family) {
262 … $top10[] = '<li><a href="' . e($family->url()) . '">' . $family->fullName() . '</a></li>';
264 $top10[] = '<a href="' . e($family->url()) . '">' . $family->fullName() . '</a>';
[all …]
/webtrees/app/
H A DIndividual.php158 $family = $fact->target();
159 if ($family instanceof Family) {
160 $cache[1][] = $family;
184 foreach ($cache[$n - 1] as $family) {
185 … foreach ($family->facts(['HUSB', 'WIFE', 'CHIL'], false, Auth::PRIV_HIDE) as $fact) {
200 $family = $fact->target();
202 … if ($family instanceof Family && !in_array($family, $cache[$n - 2], true)) {
203 $cache[$n][] = $family;
248 foreach ($this->childFamilies(Auth::PRIV_HIDE) as $family) {
249 foreach ($family->spouses(Auth::PRIV_HIDE) as $parent) {
[all …]
/webtrees/app/Http/RequestHandlers/
H A DFamilyPage.php72 $family = Registry::familyFactory()->make($xref, $tree);
73 $family = Auth::checkFamilyAccess($family, false);
76 if ($family->xref() !== $xref || Registry::slugFactory()->make($family) !== $slug) {
77 return redirect($family->url(), StatusCodeInterface::STATUS_MOVED_PERMANENTLY);
80 $clipboard_facts = $this->clipboard_service->pastableFacts($family);
82 $facts = $family->facts([], true)
89 'meta_description' => $this->metaDescription($family),
91 'record' => $family,
92 'significant' => $this->significant($family),
93 'title' => $family->fullName(),
[all …]
H A DChangeFamilyMembersAction.php47 $family = Registry::familyFactory()->make($xref, $tree);
48 $family = Auth::checkFamilyAccess($family, true);
55 $old_father = $family->husband();
56 $old_mother = $family->wife();
57 $old_children = $family->children();
71 if ($fact->target() === $family) {
76 foreach ($family->facts(['HUSB', 'WIFE']) as $fact) {
78 $family->deleteFact($fact->id(), true);
84 $new_father->createFact('1 FAMS @' . $family->xref() . '@', true);
86 $family->createFact('1 HUSB @' . $new_father->xref() . '@', true);
[all …]
/webtrees/resources/views/lists/
H A Dfamilies-table.phtml170 <?php foreach ($families as $family) : ?>
171 …<?php $husb = $family->husband() ?? Registry::individualFactory()->new('H', '0 @H@ INDI', null, $f…
172 …<?php $wife = $family->wife() ?? Registry::individualFactory()->new('W', '0 @W@ INDI', null, $fami…
174 …<tr class="<?= $family->isPendingAddition() ? 'wt-new' : '' ?> <?= $family->isPendingDeletion() ? …
180 …'] === '_MARNM' ? I18N::translate('Married name') : '' ?>" href="<?= e($family->url()) ?>" class=…
195 <?php $age = new Age($husb->getBirthDate(), $family->getMarriageDate()) ?>
205 …'] === '_MARNM' ? I18N::translate('Married name') : '' ?>" href="<?= e($family->url()) ?>" class=…
220 <?php $age = new Age($wife->getBirthDate(), $family->getMarriageDate()) ?>
226 <td data-sort="<?= $family->getMarriageDate()->julianDay() ?>">
227 <?php if ($marriage_dates = $family->getAllMarriageDates()) : ?>
[all …]
/webtrees/resources/views/modules/relatives/
H A Dfamily.phtml29 <a href="<?= e($family->url()) ?>"><?= $label ?></a>
35 foreach ($family->facts(['HUSB'], false, $fam_access_level) as $fact) {
58 if (!$found && $family->canEdit()) {
63 …="<?= e(route(AddSpouseToFamilyPage::class, ['tree' => $family->tree()->name(), 'xref' => $family-…
72 foreach ($family->facts(['WIFE'], false, $fam_access_level) as $fact) {
96 if (!$found && $family->canEdit()) { ?>
100 …="<?= e(route(AddSpouseToFamilyPage::class, ['tree' => $family->tree()->name(), 'xref' => $family-…
112 …foreach ($family->facts(array_merge(Gedcom::MARRIAGE_EVENTS, Gedcom::DIVORCE_EVENTS), true) as $fa…
141 if (!$found && $family->canShow() && $family->canEdit()) {
149 …<a href="<?= e(route(AddNewFact::class, ['tree' => $family->tree()->name(), 'xref' => $family->xre…
[all …]
/webtrees/resources/views/
H A Dfamily-page-parents.phtml23 <?php if ($family->husband() instanceof Individual) : ?>
24 <?= view('chart-box', ['individual' => $family->husband()]) ?>
27 <?php if ($family->canEdit()) : ?>
28 …="<?= e(route(AddSpouseToFamilyPage::class, ['tree' => $family->tree()->name(), 'xref' => $family-…
36 …randparents', ['family' => $family, 'parent_family' => $family->husband()?->childFamilies()->first…
45 <?php if ($family->wife() instanceof Individual) : ?>
46 <?= view('chart-box', ['individual' => $family->wife()]) ?>
49 <?php if ($family->canEdit()) : ?>
50 …="<?= e(route(AddSpouseToFamilyPage::class, ['tree' => $family->tree()->name(), 'xref' => $family-…
58 …grandparents', ['family' => $family, 'parent_family' => $family->wife()?->childFamilies()->first()…
H A Dfamily-page-children.phtml18 <?php if ($family->children()->count() === 0) : ?>
21 …<?= I18N::plural('%s child', '%s children', $family->children()->count(), I18N::number($family->ch…
24 <?php foreach ($family->children() as $n => $child) : ?>
28 <?php if ($family->children()->count() === 1) : ?>
32 <?php elseif ($n + 1 === $family->children()->count()) : ?>
40 <?php if ($family->canEdit()) : ?>
42 …f="<?= e(route(AddChildToFamilyPage::class, ['tree' => $family->tree()->name(), 'xref' => $family-…
46 …f="<?= e(route(AddChildToFamilyPage::class, ['tree' => $family->tree()->name(), 'xref' => $family-…
50 <?php if ($family->numberOfChildren() > 1) : ?>
51 …ef="<?= e(route(ReorderChildrenPage::class, ['tree' => $family->tree()->name(), 'xref' => $family-…
[all …]
/webtrees/app/Module/
H A DClippingsCartModule.php371 $family = Registry::familyFactory()->make($xref, $tree);
372 $family = Auth::checkFamilyAccess($family);
373 $name = $family->fullName();
387 'record' => $family,
399 $family = Registry::familyFactory()->make($xref, $tree);
400 $family = Auth::checkFamilyAccess($family);
404 $this->addFamilyToCart($family);
408 $this->addFamilyAndChildrenToCart($family);
412 $this->addFamilyAndDescendantsToCart($family);
416 return redirect($family->url());
[all …]
/webtrees/resources/views/modules/family_nav/
H A Dsidebar.phtml14 <?php foreach ($individual->childFamilies() as $family) : ?>
15 …y', ['individual' => $individual, 'family' => $family, 'title' => $individual->getChildFamilyLabel…
19 <?php foreach ($individual->childStepFamilies() as $family) : ?>
20 …y', ['individual' => $individual, 'family' => $family, 'title' => $individual->getStepFamilyLabel(…
24 <?php foreach ($individual->spouseFamilies() as $family) : ?>
25 …', ['individual' => $individual, 'family' => $family, 'title' => $individual->getSpouseFamilyLabel…
29 <?php foreach ($individual->spouseStepFamilies() as $family) : ?>
30 …av/sidebar-family', ['individual' => $individual, 'family' => $family, 'title' => $family->fullNam…

12345678910