Home
last modified time | relevance | path

Searched refs:individual (Results 1 – 25 of 390) sorted by relevance

12345678910>>...16

/webtrees/tests/app/Census/
H A DCensusColumnBornForeignPartsTest.php45 $individual = $this->createMock(Individual::class);
46 $individual->method('getBirthPlace')->willReturn($this->getPlaceMock('London, England'));
53 self::assertSame('', $column->generate($individual, $individual));
58 $individual = $this->createMock(Individual::class);
59 $individual->method('getBirthPlace')->willReturn($this->getPlaceMock('Cardiff, Wales'));
66 self::assertSame('', $column->generate($individual, $individual));
71 $individual = $this->createMock(Individual::class);
72 … $individual->method('getBirthPlace')->willReturn($this->getPlaceMock('Edinburgh, Scotland'));
79 self::assertSame('S', $column->generate($individual, $individual));
84 $individual = $this->createMock(Individual::class);
[all …]
H A DCensusColumnConditionCanadaWidowedTest.php36 $individual = $this->createMock(Individual::class);
37 $individual->method('sex')->willReturn('M');
38 $individual->method('spouseFamilies')->willReturn(new Collection());
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
46 self::assertSame('', $column->generate($individual, $individual));
51 $individual = $this->createMock(Individual::class);
52 $individual->method('sex')->willReturn('F');
53 $individual->method('spouseFamilies')->willReturn(new Collection());
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
61 self::assertSame('', $column->generate($individual, $individual));
[all …]
H A DCensusColumnConditionCanadaTest.php36 $individual = $this->createMock(Individual::class);
37 $individual->method('sex')->willReturn('M');
38 $individual->method('spouseFamilies')->willReturn(new Collection());
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
46 self::assertSame('S', $column->generate($individual, $individual));
51 $individual = $this->createMock(Individual::class);
52 $individual->method('sex')->willReturn('F');
53 $individual->method('spouseFamilies')->willReturn(new Collection());
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
61 self::assertSame('S', $column->generate($individual, $individual));
[all …]
H A DCensusColumnConditionUsTest.php36 $individual = $this->createMock(Individual::class);
37 $individual->method('sex')->willReturn('M');
38 $individual->method('spouseFamilies')->willReturn(new Collection());
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
46 self::assertSame('S', $column->generate($individual, $individual));
51 $individual = $this->createMock(Individual::class);
52 $individual->method('sex')->willReturn('F');
53 $individual->method('spouseFamilies')->willReturn(new Collection());
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
61 self::assertSame('S', $column->generate($individual, $individual));
[all …]
H A DCensusColumnConditionCanadaMarriedWidowedTest.php36 $individual = $this->createMock(Individual::class);
37 $individual->method('sex')->willReturn('M');
38 $individual->method('spouseFamilies')->willReturn(new Collection());
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
46 self::assertSame('', $column->generate($individual, $individual));
51 $individual = $this->createMock(Individual::class);
52 $individual->method('sex')->willReturn('F');
53 $individual->method('spouseFamilies')->willReturn(new Collection());
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
61 self::assertSame('', $column->generate($individual, $individual));
[all …]
H A DCensusColumnConditionCanadaWidowedMaleTest.php36 $individual = $this->createMock(Individual::class);
37 $individual->method('sex')->willReturn('M');
38 $individual->method('spouseFamilies')->willReturn(new Collection());
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
46 self::assertSame('', $column->generate($individual, $individual));
51 $individual = $this->createMock(Individual::class);
52 $individual->method('sex')->willReturn('F');
53 $individual->method('spouseFamilies')->willReturn(new Collection());
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
61 self::assertSame('', $column->generate($individual, $individual));
[all …]
H A DCensusColumnConditionCanadaMarriedSingleTest.php36 $individual = $this->createMock(Individual::class);
37 $individual->method('sex')->willReturn('M');
38 $individual->method('spouseFamilies')->willReturn(new Collection());
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
46 self::assertSame('S', $column->generate($individual, $individual));
51 $individual = $this->createMock(Individual::class);
52 $individual->method('sex')->willReturn('F');
53 $individual->method('spouseFamilies')->willReturn(new Collection());
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
61 self::assertSame('S', $column->generate($individual, $individual));
[all …]
H A DCensusColumnConditionCanadaWidowedFemaleTest.php36 $individual = $this->createMock(Individual::class);
37 $individual->method('sex')->willReturn('M');
38 $individual->method('spouseFamilies')->willReturn(new Collection());
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
46 self::assertSame('', $column->generate($individual, $individual));
51 $individual = $this->createMock(Individual::class);
52 $individual->method('sex')->willReturn('F');
53 $individual->method('spouseFamilies')->willReturn(new Collection());
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
61 self::assertSame('', $column->generate($individual, $individual));
[all …]
H A DCensusColumnConditionFrenchGarconTest.php36 $individual = $this->createMock(Individual::class);
37 $individual->method('sex')->willReturn('M');
38 $individual->method('spouseFamilies')->willReturn(new Collection());
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
46 self::assertSame('1', $column->generate($individual, $individual));
51 $individual = $this->createMock(Individual::class);
52 $individual->method('sex')->willReturn('F');
53 $individual->method('spouseFamilies')->willReturn(new Collection());
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
61 self::assertSame('', $column->generate($individual, $individual));
[all …]
H A DCensusColumnConditionFrenchVeuveTest.php36 $individual = $this->createMock(Individual::class);
37 $individual->method('sex')->willReturn('M');
38 $individual->method('spouseFamilies')->willReturn(new Collection());
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
46 self::assertSame('', $column->generate($individual, $individual));
51 $individual = $this->createMock(Individual::class);
52 $individual->method('sex')->willReturn('F');
53 $individual->method('spouseFamilies')->willReturn(new Collection());
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
61 self::assertSame('', $column->generate($individual, $individual));
[all …]
H A DCensusColumnConditionFrenchVeufTest.php36 $individual = $this->createMock(Individual::class);
37 $individual->method('sex')->willReturn('M');
38 $individual->method('spouseFamilies')->willReturn(new Collection());
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
46 self::assertSame('', $column->generate($individual, $individual));
51 $individual = $this->createMock(Individual::class);
52 $individual->method('sex')->willReturn('F');
53 $individual->method('spouseFamilies')->willReturn(new Collection());
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
61 self::assertSame('', $column->generate($individual, $individual));
[all …]
H A DCensusColumnConditionFrenchHommeTest.php36 $individual = $this->createMock(Individual::class);
37 $individual->method('sex')->willReturn('M');
38 $individual->method('spouseFamilies')->willReturn(new Collection());
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
46 self::assertSame('', $column->generate($individual, $individual));
51 $individual = $this->createMock(Individual::class);
52 $individual->method('sex')->willReturn('F');
53 $individual->method('spouseFamilies')->willReturn(new Collection());
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
61 self::assertSame('', $column->generate($individual, $individual));
[all …]
H A DCensusColumnConditionFrenchFilleTest.php36 $individual = $this->createMock(Individual::class);
37 $individual->method('sex')->willReturn('M');
38 $individual->method('spouseFamilies')->willReturn(new Collection());
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
46 self::assertSame('', $column->generate($individual, $individual));
51 $individual = $this->createMock(Individual::class);
52 $individual->method('sex')->willReturn('F');
53 $individual->method('spouseFamilies')->willReturn(new Collection());
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
61 self::assertSame('1', $column->generate($individual, $individual));
[all …]
H A DCensusColumnConditionEnglishTest.php36 $individual = $this->createMock(Individual::class);
37 $individual->method('sex')->willReturn('M');
38 $individual->method('spouseFamilies')->willReturn(new Collection());
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
46 self::assertSame('Unm', $column->generate($individual, $individual));
51 $individual = $this->createMock(Individual::class);
52 $individual->method('sex')->willReturn('F');
53 $individual->method('spouseFamilies')->willReturn(new Collection());
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
61 self::assertSame('Unm', $column->generate($individual, $individual));
[all …]
H A DCensusColumnConditionDanishTest.php36 $individual = $this->createMock(Individual::class);
37 $individual->method('sex')->willReturn('M');
38 $individual->method('spouseFamilies')->willReturn(new Collection());
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
46 self::assertSame('Ugift', $column->generate($individual, $individual));
51 $individual = $this->createMock(Individual::class);
52 $individual->method('sex')->willReturn('F');
53 $individual->method('spouseFamilies')->willReturn(new Collection());
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
61 self::assertSame('Ugift', $column->generate($individual, $individual));
[all …]
H A DCensusColumnConditionFrenchFemmeTest.php36 $individual = $this->createMock(Individual::class);
37 $individual->method('sex')->willReturn('M');
38 $individual->method('spouseFamilies')->willReturn(new Collection());
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
46 self::assertSame('', $column->generate($individual, $individual));
51 $individual = $this->createMock(Individual::class);
52 $individual->method('sex')->willReturn('F');
53 $individual->method('spouseFamilies')->willReturn(new Collection());
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
61 self::assertSame('', $column->generate($individual, $individual));
[all …]
H A DCensusColumnAgeMale5YearsTest.php33 $individual = $this->createMock(Individual::class);
34 $individual->method('sex')->willReturn('M');
35 $individual->method('getEstimatedBirthDate')->willReturn(new Date('01 JAN 1800'));
42 self::assertSame('30', $column->generate($individual, $individual));
47 $individual = $this->createMock(Individual::class);
48 $individual->method('sex')->willReturn('F');
54 self::assertSame('', $column->generate($individual, $individual));
59 $individual = $this->createMock(Individual::class);
60 $individual->method('sex')->willReturn('U');
61 $individual->method('getEstimatedBirthDate')->willReturn(new Date('01 JAN 1800'));
[all …]
H A DCensusColumnAgeFemale5YearsTest.php33 $individual = $this->createMock(Individual::class);
34 $individual->method('sex')->willReturn('M');
40 self::assertSame('', $column->generate($individual, $individual));
45 $individual = $this->createMock(Individual::class);
46 $individual->method('sex')->willReturn('F');
47 $individual->method('getEstimatedBirthDate')->willReturn(new Date('01 JAN 1800'));
54 self::assertSame('30', $column->generate($individual, $individual));
59 $individual = $this->createMock(Individual::class);
60 $individual->method('sex')->willReturn('U');
61 $individual->method('getEstimatedBirthDate')->willReturn(new Date('01 JAN 1800'));
[all …]
/webtrees/app/Http/RequestHandlers/
H A DIndividualPage.php92 $individual = Registry::individualFactory()->make($xref, $tree);
93 $individual = Auth::checkIndividualAccess($individual);
96 if ($individual->xref() !== $xref || Registry::slugFactory()->make($individual) !== $slug) {
97 return redirect($individual->url(), StatusCodeInterface::STATUS_MOVED_PERMANENTLY);
102 foreach ($individual->facts(['OBJE']) as $fact) {
114 $users = $this->user_service->findByIndividual($individual);
121 ->map(fn (ModuleShareInterface $module) => $module->share($individual))
125 'age' => $this->ageString($individual),
127 'clipboard_facts' => $this->clipboard_service->pastableFacts($individual),
129 'meta_description' => $this->metaDescription($individual),
[all …]
/webtrees/app/Module/
H A DPedigreeChartModule.php124 * @param Individual $individual
128 public function chartBoxMenu(Individual $individual): Menu|null argument
130 return $this->chartMenu($individual);
136 * @param Individual $individual
140 public function chartTitle(Individual $individual): string argument
143 return I18N::translate('Pedigree tree of %s', $individual->fullName());
149 * @param Individual $individual
154 public function chartUrl(Individual $individual, array $parameters = []): string argument
157 'xref' => $individual->xref(),
158 'tree' => $individual->tree()->name(),
[all …]
H A DInteractiveTreeModule.php71 * @param Individual $individual
75 public function getTabContent(Individual $individual): string argument
79 [$html, $js] = $treeview->drawViewport($individual, 3);
90 * @param Individual $individual
94 public function hasTabContent(Individual $individual): bool argument
96 return $individual->facts(['FAMC', 'FAMS'])->isNotEmpty();
103 * @param Individual $individual
107 public function isGrayedOut(Individual $individual): bool argument
135 * @param Individual $individual
139 public function chartBoxMenu(Individual $individual): Menu|null argument
[all …]
/webtrees/resources/views/lists/
H A Dindividuals-table.phtml194 <?php foreach ($individuals as $key => $individual) : ?>
195 …<tr class="<?= $individual->isPendingAddition() ? 'wt-new' : '' ?> <?= $individual->isPendingDelet…
196 …idual::NOMEN_NESCIO], 'AAAA', implode(',', array_reverse(explode(',', $individual->sortName())))))…
197 <?php foreach ($individual->getAllNames() as $num => $name) : ?>
199 …translate('Married name') : '' ?>" href="<?= e($individual->url()) ?>" class="<?= $num === $indiv…
202 <?php if ($num === $individual->getPrimaryName()) : ?>
203 … <small><?= view('icons/sex', ['sex' => $individual->sex()]) ?></small>
207 <?= view('lists/individual-table-parents', ['individual' => $individual]) ?>
210 …',', Individual::PRAENOMEN_NESCIO, Individual::NOMEN_NESCIO], 'AAAA', $individual->sortName())) ?>…
215 …<a href="<?= e($module->chartUrl($individuals[1], ['xref2' => $individual->xref()])) ?>" rel="nofo…
[all …]
/webtrees/resources/views/modules/relatives/
H A Dtab.phtml47 'individual' => $individual,
50 'label' => $individual->getChildFamilyLabel($family),
58 'individual' => $individual,
61 'label' => $individual->getStepFamilyLabel($family),
69 'individual' => $individual,
72 'label' => $individual->getSpouseFamilyLabel($family),
80 'individual' => $individual,
95 …<?= e(route(ReorderFamiliesPage::class, ['tree' => $individual->tree()->name(), 'xref' => $individ…
106 …idualPage::class, ['tree' => $individual->tree()->name(), 'xref' => $individual->xref(), 'sex' => …
113 …idualPage::class, ['tree' => $individual->tree()->name(), 'xref' => $individual->xref(), 'sex' => …
[all …]
/webtrees/resources/views/
H A Dchart-box.phtml22 if ($individual === null) {
30 …eChartInterface::class, $individual->tree(), Auth::user())->map(static function (ModuleChartInterf…
31 return $module->chartBoxMenu($individual);
34 foreach ($individual->spouseFamilies() as $family) {
36 $spouse = $family->spouse($individual);
84 $all_facts = $individual->facts();
85 foreach ($individual->spouseFamilies() as $family) {
100individual->sex()) ?> <?= $individual->isPendingAddition() ? 'wt-new' : '' ?> <?= $individual->isP…
101 …<?php if ($individual->canShow() && $individual->tree()->getPreference('SHOW_HIGHLIGHT_IMAGES')) :…
103 <?= $individual->displayImage(40, 50, 'crop', ['class' => 'wt-chart-box-thumbnail']) ?>
[all …]
/webtrees/app/Module/InteractiveTree/
H A DTreeView.php56 * @param Individual $individual Draw the chart for this individual
61 public function drawViewport(Individual $individual, int $generations): array argument
66 'individual' => $this->drawPerson($individual, $generations, 0, null, '', true),
67 'tree' => $individual->tree(),
72 …->name . 'Handler = new TreeViewHandler("' . $this->name . '", "' . e($individual->tree()->name())…
125 * @param Individual $individual the individual to return the details for
129 public function getDetails(Individual $individual): string argument
131 $html = $this->getPersonDetails($individual, null);
132 foreach ($individual->spouseFamilies() as $family) {
133 $spouse = $family->spouse($individual);
[all …]

12345678910>>...16