/webtrees/app/Factories/ |
H A D | FamilyFactory.php | 25 use Fisharebest\Webtrees\Family; alias 37 private const string TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Family::RECORD_TYPE . '/'; 46 * @return Family|null 48 public function make(string $xref, Tree $tree, string|null $gedcom = null): Family|null 81 return fn (object $row): Family => $this->make($row->f_id, $tree, $row->f_gedcom); 93 * @return Family 95 public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Family 97 return new Family($xref, $gedcom, $pending, $tree);
|
/webtrees/tests/app/Census/ |
H A D | CensusColumnConditionCanadaWidowedTest.php | 24 use Fisharebest\Webtrees\Family; alias 66 $family = $this->createMock(Family::class); 85 $family = $this->createMock(Family::class); 109 $family = $this->createMock(Family::class); 139 $family = $this->createMock(Family::class); 165 $family = $this->createMock(Family::class); 184 $family = $this->createMock(Family::class); 203 $family = $this->createMock(Family::class); 222 $family = $this->createMock(Family::class); 243 $family = $this->createMock(Family::class); [all …]
|
H A D | CensusColumnConditionCanadaTest.php | 24 use Fisharebest\Webtrees\Family; alias 66 $family = $this->createMock(Family::class); 85 $family = $this->createMock(Family::class); 109 $family = $this->createMock(Family::class); 139 $family = $this->createMock(Family::class); 165 $family = $this->createMock(Family::class); 184 $family = $this->createMock(Family::class); 203 $family = $this->createMock(Family::class); 222 $family = $this->createMock(Family::class); 243 $family = $this->createMock(Family::class); [all …]
|
H A D | CensusColumnConditionUsTest.php | 24 use Fisharebest\Webtrees\Family; alias 66 $family = $this->createMock(Family::class); 85 $family = $this->createMock(Family::class); 109 $family = $this->createMock(Family::class); 139 $family = $this->createMock(Family::class); 165 $family = $this->createMock(Family::class); 184 $family = $this->createMock(Family::class); 203 $family = $this->createMock(Family::class); 222 $family = $this->createMock(Family::class); 243 $family = $this->createMock(Family::class); [all …]
|
H A D | CensusColumnConditionCanadaMarriedWidowedTest.php | 24 use Fisharebest\Webtrees\Family; alias 66 $family = $this->createMock(Family::class); 85 $family = $this->createMock(Family::class); 109 $family = $this->createMock(Family::class); 139 $family = $this->createMock(Family::class); 165 $family = $this->createMock(Family::class); 184 $family = $this->createMock(Family::class); 203 $family = $this->createMock(Family::class); 222 $family = $this->createMock(Family::class); 243 $family = $this->createMock(Family::class); [all …]
|
H A D | CensusColumnConditionCanadaWidowedMaleTest.php | 24 use Fisharebest\Webtrees\Family; alias 66 $family = $this->createMock(Family::class); 85 $family = $this->createMock(Family::class); 109 $family = $this->createMock(Family::class); 139 $family = $this->createMock(Family::class); 165 $family = $this->createMock(Family::class); 184 $family = $this->createMock(Family::class); 203 $family = $this->createMock(Family::class); 222 $family = $this->createMock(Family::class); 243 $family = $this->createMock(Family::class); [all …]
|
H A D | CensusColumnConditionCanadaMarriedSingleTest.php | 24 use Fisharebest\Webtrees\Family; alias 66 $family = $this->createMock(Family::class); 85 $family = $this->createMock(Family::class); 109 $family = $this->createMock(Family::class); 139 $family = $this->createMock(Family::class); 165 $family = $this->createMock(Family::class); 184 $family = $this->createMock(Family::class); 203 $family = $this->createMock(Family::class); 222 $family = $this->createMock(Family::class); 243 $family = $this->createMock(Family::class); [all …]
|
H A D | CensusColumnConditionCanadaWidowedFemaleTest.php | 24 use Fisharebest\Webtrees\Family; alias 66 $family = $this->createMock(Family::class); 85 $family = $this->createMock(Family::class); 109 $family = $this->createMock(Family::class); 139 $family = $this->createMock(Family::class); 165 $family = $this->createMock(Family::class); 184 $family = $this->createMock(Family::class); 203 $family = $this->createMock(Family::class); 222 $family = $this->createMock(Family::class); 243 $family = $this->createMock(Family::class); [all …]
|
H A D | CensusColumnConditionFrenchGarconTest.php | 24 use Fisharebest\Webtrees\Family; alias 66 $family = $this->createMock(Family::class); 85 $family = $this->createMock(Family::class); 109 $family = $this->createMock(Family::class); 139 $family = $this->createMock(Family::class); 164 $family = $this->createMock(Family::class); 183 $family = $this->createMock(Family::class); 202 $family = $this->createMock(Family::class); 221 $family = $this->createMock(Family::class); 242 $family = $this->createMock(Family::class); [all …]
|
H A D | CensusColumnConditionFrenchVeuveTest.php | 24 use Fisharebest\Webtrees\Family; alias 66 $family = $this->createMock(Family::class); 85 $family = $this->createMock(Family::class); 109 $family = $this->createMock(Family::class); 140 $family = $this->createMock(Family::class); 166 $family = $this->createMock(Family::class); 185 $family = $this->createMock(Family::class); 204 $family = $this->createMock(Family::class); 223 $family = $this->createMock(Family::class); 244 $family = $this->createMock(Family::class); [all …]
|
H A D | CensusColumnConditionFrenchVeufTest.php | 24 use Fisharebest\Webtrees\Family; alias 66 $family = $this->createMock(Family::class); 85 $family = $this->createMock(Family::class); 109 $family = $this->createMock(Family::class); 139 $family = $this->createMock(Family::class); 164 $family = $this->createMock(Family::class); 183 $family = $this->createMock(Family::class); 202 $family = $this->createMock(Family::class); 221 $family = $this->createMock(Family::class); 242 $family = $this->createMock(Family::class); [all …]
|
H A D | CensusColumnConditionFrenchHommeTest.php | 24 use Fisharebest\Webtrees\Family; alias 66 $family = $this->createMock(Family::class); 85 $family = $this->createMock(Family::class); 109 $family = $this->createMock(Family::class); 139 $family = $this->createMock(Family::class); 164 $family = $this->createMock(Family::class); 183 $family = $this->createMock(Family::class); 202 $family = $this->createMock(Family::class); 221 $family = $this->createMock(Family::class); 242 $family = $this->createMock(Family::class); [all …]
|
H A D | CensusColumnConditionFrenchFilleTest.php | 24 use Fisharebest\Webtrees\Family; alias 66 $family = $this->createMock(Family::class); 85 $family = $this->createMock(Family::class); 109 $family = $this->createMock(Family::class); 139 $family = $this->createMock(Family::class); 164 $family = $this->createMock(Family::class); 183 $family = $this->createMock(Family::class); 202 $family = $this->createMock(Family::class); 221 $family = $this->createMock(Family::class); 242 $family = $this->createMock(Family::class); [all …]
|
H A D | CensusColumnConditionEnglishTest.php | 24 use Fisharebest\Webtrees\Family; alias 66 $family = $this->createMock(Family::class); 85 $family = $this->createMock(Family::class); 109 $family = $this->createMock(Family::class); 139 $family = $this->createMock(Family::class); 164 $family = $this->createMock(Family::class); 183 $family = $this->createMock(Family::class); 202 $family = $this->createMock(Family::class); 221 $family = $this->createMock(Family::class); 242 $family = $this->createMock(Family::class); [all …]
|
H A D | CensusColumnConditionDanishTest.php | 24 use Fisharebest\Webtrees\Family; alias 66 $family = $this->createMock(Family::class); 85 $family = $this->createMock(Family::class); 109 $family = $this->createMock(Family::class); 139 $family = $this->createMock(Family::class); 164 $family = $this->createMock(Family::class); 183 $family = $this->createMock(Family::class); 202 $family = $this->createMock(Family::class); 221 $family = $this->createMock(Family::class); 242 $family = $this->createMock(Family::class); [all …]
|
H A D | CensusColumnConditionFrenchFemmeTest.php | 24 use Fisharebest\Webtrees\Family; alias 66 $family = $this->createMock(Family::class); 85 $family = $this->createMock(Family::class); 109 $family = $this->createMock(Family::class); 139 $family = $this->createMock(Family::class); 164 $family = $this->createMock(Family::class); 183 $family = $this->createMock(Family::class); 202 $family = $this->createMock(Family::class); 221 $family = $this->createMock(Family::class); 242 $family = $this->createMock(Family::class); [all …]
|
H A D | CensusColumnMonthIfMarriedWithinYearTest.php | 24 use Fisharebest\Webtrees\Family; alias 39 $family = $this->createMock(Family::class); 58 $family = $this->createMock(Family::class); 77 $family = $this->createMock(Family::class); 93 $family = $this->createMock(Family::class);
|
H A D | CensusColumnMarriedWithinYearTest.php | 24 use Fisharebest\Webtrees\Family; alias 39 $family = $this->createMock(Family::class); 58 $family = $this->createMock(Family::class); 77 $family = $this->createMock(Family::class); 93 $family = $this->createMock(Family::class);
|
H A D | CensusColumnYearsMarriedTest.php | 24 use Fisharebest\Webtrees\Family; alias 49 $family = $this->createMock(Family::class); 68 $family = $this->createMock(Family::class); 87 $family = $this->createMock(Family::class); 106 $family = $this->createMock(Family::class);
|
/webtrees/app/Module/InteractiveTree/ |
H A D | TreeView.php | 22 use Fisharebest\Webtrees\Family; alias 96 … ->map(static fn (string $xref): Family|null => Registry::familyFactory()->make($xref, $tree)) 106 if ($family instanceof Family) { 146 * @param Family|null $family 150 private function getPersonDetails(Individual $individual, Family|null $family = null): string 164 if ($family instanceof Family) { 232 * @param Family|null $pfamily 238 …private function drawPerson(Individual $person, int $gen, int $state, Family|null $pfamily, string… 244 if ($pfamily instanceof Family) { 279 if ($spouse_parents instanceof Family) { [all …]
|
/webtrees/app/Census/ |
H A D | AbstractCensusColumn.php | 23 use Fisharebest\Webtrees\Family; alias 72 if ($family instanceof Family) { 86 if ($family instanceof Family) { 96 public function spouseFamily(Individual $individual): Family|null 100 …->filter(fn (Family $family): bool => Date::compare($family->getMarriageDate(), $this->date()) <= … 101 ->sort(Family::marriageDateComparator()) 117 if ($family instanceof Family) {
|
/webtrees/tests/feature/ |
H A D | RelationshipNamesTest.php | 164 …$f1m = new Family('f1m', "0 @f1m@ FAM\n1 MARR Y\n1 HUSB @i1m@\n1 WIFE @i2f@\n1 CHIL @i3m@\n1 CHIL… 165 …$f2d = new Family('f2d', "0 @f2d@ FAM\n1 DIV Y\n1 HUSB @i6m@\n1 WIFE @i2f@\n1 CHIL @i7ma@\n1 CHIL… 166 … $f3e = new Family('f3e', "0 @f3e@ FAM\n1 ENGA Y\n1 HUSB @i3m@\n1 WIFE @i10f@", null, $tree); 167 …$f4m = new Family('f4m', "0 @f4m@ FAM\n1 MARR Y\n1 HUSB @i11m@\n1 WIFE @i12f@\n1 CHIL @i1m@", nul… 168 …$f5m = new Family('f5m', "0 @f5m@ FAM\n1 MARR Y\n1 HUSB @i13m@\n1 WIFE @i14f@\n1 CHIL @i2f@", nul… 169 $f6 = new Family('f6', "0 @f6@ FAM\n1 HUSB @i9u@\n1 WIFE @i15u@", null, $tree); 170 …$f7 = new Family('f7', "0 @f7@ FAM\n1 HUSB @i16m@\n1 WIFE @i17f@\n1 CHIL @i11m@\n1 CHIL @i38f@",… 171 …$f8 = new Family('f8', "0 @f8@ FAM\n1 HUSB @i18m@\n1 WIFE @i19f@\n1 CHIL @i17f@\n1 CHIL @i30m@\n… 172 … $f9 = new Family('f9', "0 @f9@ FAM\n1 HUSB @i20m@\n1 WIFE @i21f@\n1 CHIL @i18m@", null, $tree); 173 …$f10 = new Family('f10', "0 @f10@ FAM\n1 HUSB @i22m@\n1 WIFE @i23f@\n1 CHIL @i21f@\n1 CHIL @i24m@… [all …]
|
/webtrees/app/ |
H A D | Individual.php | 159 if ($family instanceof Family) { 202 … if ($family instanceof Family && !in_array($family, $cache[$n - 2], true)) { 677 if ($family instanceof Family && $family->canShow($access_level)) { 697 if ($family instanceof Family) { 744 if ($family instanceof Family && $family->canShow($access_level)) { 771 return $step_families->uniqueStrict(static fn (Family $family): string => $family->xref()); 802 * @param Family $family 806 public function getChildFamilyLabel(Family $family): string 832 * @param Family $step_family 836 public function getStepFamilyLabel(Family $step_family): string [all …]
|
/webtrees/app/Contracts/ |
H A D | FamilyFactoryInterface.php | 23 use Fisharebest\Webtrees\Family; alias 34 public function make(string $xref, Tree $tree, string|null $gedcom = null): Family|null; 54 * @return Family 56 public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Family;
|
/webtrees/app/Http/RequestHandlers/ |
H A D | FamilyPage.php | 25 use Fisharebest\Webtrees\Family; alias 102 * @param Family $family 106 private function significant(Family $family): object 125 * @param Family $family 129 private function metaDescription(Family $family): string
|