/webtrees/tests/app/Census/ |
H A D | CensusColumnBornForeignPartsTest.php | 45 $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 D | CensusColumnConditionCanadaWidowedTest.php | 36 $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 D | CensusColumnConditionCanadaTest.php | 36 $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 D | CensusColumnConditionUsTest.php | 36 $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 D | CensusColumnConditionCanadaMarriedWidowedTest.php | 36 $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 D | CensusColumnConditionCanadaWidowedMaleTest.php | 36 $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 D | CensusColumnConditionCanadaMarriedSingleTest.php | 36 $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 D | CensusColumnConditionCanadaWidowedFemaleTest.php | 36 $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 D | CensusColumnConditionFrenchGarconTest.php | 36 $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 D | CensusColumnConditionFrenchVeuveTest.php | 36 $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 D | CensusColumnConditionFrenchVeufTest.php | 36 $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 D | CensusColumnConditionFrenchHommeTest.php | 36 $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 D | CensusColumnConditionFrenchFilleTest.php | 36 $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 D | CensusColumnConditionEnglishTest.php | 36 $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 D | CensusColumnConditionDanishTest.php | 36 $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 D | CensusColumnConditionFrenchFemmeTest.php | 36 $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 D | CensusColumnAgeMale5YearsTest.php | 33 $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 D | CensusColumnAgeFemale5YearsTest.php | 33 $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 D | IndividualPage.php | 92 $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 D | PedigreeChartModule.php | 124 * @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 D | InteractiveTreeModule.php | 71 * @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 D | individuals-table.phtml | 194 <?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 D | tab.phtml | 47 '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 D | chart-box.phtml | 22 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) { 100 …individual->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 D | TreeView.php | 56 * @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 …]
|