/webtrees/tests/app/ |
H A D | AgeTest.php | 31 $x = new Date('27 APR 2019'); 32 $y = new Date('27 APR 2019'); 43 $x = new Date('APR 2019'); 44 $y = new Date('APR 2019'); 55 $x = new Date('2019'); 56 $y = new Date('2019'); 67 $x = new Date('13 FEB 2019'); 68 $y = new Date('07 JAN 2019'); 79 $x = new Date(''); 80 $y = new Date('07 JAN 2019'); [all …]
|
/webtrees/tests/app/Census/ |
H A D | CensusColumnConditionCanadaWidowedTest.php | 22 use Fisharebest\Webtrees\Date; alias 39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 67 $family->method('getMarriageDate')->willReturn(new Date('')); 72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 86 $family->method('getMarriageDate')->willReturn(new Date('')); 91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 107 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date('')); 137 $spouse->method('getDeathDate')->willReturn(new Date('1820')); [all …]
|
H A D | CensusColumnConditionCanadaTest.php | 22 use Fisharebest\Webtrees\Date; alias 39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 67 $family->method('getMarriageDate')->willReturn(new Date('')); 72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 86 $family->method('getMarriageDate')->willReturn(new Date('')); 91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 107 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date('')); 137 $spouse->method('getDeathDate')->willReturn(new Date('1820')); [all …]
|
H A D | CensusColumnConditionUsTest.php | 22 use Fisharebest\Webtrees\Date; alias 39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 67 $family->method('getMarriageDate')->willReturn(new Date('')); 72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 86 $family->method('getMarriageDate')->willReturn(new Date('')); 91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 107 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date('')); 137 $spouse->method('getDeathDate')->willReturn(new Date('1820')); [all …]
|
H A D | CensusColumnConditionCanadaMarriedWidowedTest.php | 22 use Fisharebest\Webtrees\Date; alias 39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 67 $family->method('getMarriageDate')->willReturn(new Date('')); 72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 86 $family->method('getMarriageDate')->willReturn(new Date('')); 91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 107 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date('')); 137 $spouse->method('getDeathDate')->willReturn(new Date('1820')); [all …]
|
H A D | CensusColumnConditionCanadaWidowedMaleTest.php | 22 use Fisharebest\Webtrees\Date; alias 39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 67 $family->method('getMarriageDate')->willReturn(new Date('')); 72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 86 $family->method('getMarriageDate')->willReturn(new Date('')); 91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 107 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date('')); 137 $spouse->method('getDeathDate')->willReturn(new Date('1820')); [all …]
|
H A D | CensusColumnConditionCanadaMarriedSingleTest.php | 22 use Fisharebest\Webtrees\Date; alias 39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 67 $family->method('getMarriageDate')->willReturn(new Date('')); 72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 86 $family->method('getMarriageDate')->willReturn(new Date('')); 91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 107 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date('')); 137 $spouse->method('getDeathDate')->willReturn(new Date('1820')); [all …]
|
H A D | CensusColumnConditionCanadaWidowedFemaleTest.php | 22 use Fisharebest\Webtrees\Date; alias 39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 67 $family->method('getMarriageDate')->willReturn(new Date('')); 72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 86 $family->method('getMarriageDate')->willReturn(new Date('')); 91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 107 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date('')); 137 $spouse->method('getDeathDate')->willReturn(new Date('1820')); [all …]
|
H A D | CensusColumnConditionFrenchVeuveTest.php | 22 use Fisharebest\Webtrees\Date; alias 39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 67 $family->method('getMarriageDate')->willReturn(new Date('')); 72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 86 $family->method('getMarriageDate')->willReturn(new Date('')); 91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 107 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date('')); 138 $spouse->method('getDeathDate')->willReturn(new Date('1820')); [all …]
|
H A D | CensusColumnConditionFrenchGarconTest.php | 22 use Fisharebest\Webtrees\Date; alias 39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 67 $family->method('getMarriageDate')->willReturn(new Date('')); 72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 86 $family->method('getMarriageDate')->willReturn(new Date('')); 91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 107 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 137 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 165 $family->method('getMarriageDate')->willReturn(new Date('')); [all …]
|
H A D | CensusColumnConditionFrenchVeufTest.php | 22 use Fisharebest\Webtrees\Date; alias 39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 67 $family->method('getMarriageDate')->willReturn(new Date('')); 72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 86 $family->method('getMarriageDate')->willReturn(new Date('')); 91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 107 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 137 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 165 $family->method('getMarriageDate')->willReturn(new Date('')); [all …]
|
H A D | CensusColumnConditionFrenchHommeTest.php | 22 use Fisharebest\Webtrees\Date; alias 39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 67 $family->method('getMarriageDate')->willReturn(new Date('')); 72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 86 $family->method('getMarriageDate')->willReturn(new Date('')); 91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 107 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 137 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 165 $family->method('getMarriageDate')->willReturn(new Date('')); [all …]
|
H A D | CensusColumnConditionFrenchFilleTest.php | 22 use Fisharebest\Webtrees\Date; alias 39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 67 $family->method('getMarriageDate')->willReturn(new Date('')); 72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 86 $family->method('getMarriageDate')->willReturn(new Date('')); 91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 107 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 137 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 165 $family->method('getMarriageDate')->willReturn(new Date('')); [all …]
|
H A D | CensusColumnConditionEnglishTest.php | 22 use Fisharebest\Webtrees\Date; alias 39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 67 $family->method('getMarriageDate')->willReturn(new Date('')); 72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 86 $family->method('getMarriageDate')->willReturn(new Date('')); 91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 107 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 137 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 165 $family->method('getMarriageDate')->willReturn(new Date('')); [all …]
|
H A D | CensusColumnConditionDanishTest.php | 22 use Fisharebest\Webtrees\Date; alias 39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 67 $family->method('getMarriageDate')->willReturn(new Date('')); 72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 86 $family->method('getMarriageDate')->willReturn(new Date('')); 91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 107 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 137 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 165 $family->method('getMarriageDate')->willReturn(new Date('')); [all …]
|
H A D | CensusColumnConditionFrenchFemmeTest.php | 22 use Fisharebest\Webtrees\Date; alias 39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 67 $family->method('getMarriageDate')->willReturn(new Date('')); 72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 86 $family->method('getMarriageDate')->willReturn(new Date('')); 91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800')); 107 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 137 $spouse->method('getDeathDate')->willReturn(new Date('1820')); 165 $family->method('getMarriageDate')->willReturn(new Date('')); [all …]
|
H A D | CensusColumnChildrenDiedTest.php | 22 use Fisharebest\Webtrees\Date; alias 50 $child1->method('getBirthDate')->willReturn(new Date('01 FEB 1904')); 51 $child1->method('getDeathDate')->willReturn(new Date('01 FEB 1904')); 55 $child2->method('getBirthDate')->willReturn(new Date('02 FEB 1904')); 56 $child2->method('getDeathDate')->willReturn(new Date('20 DEC 1912')); 60 $child3->method('getBirthDate')->willReturn(new Date('02 FEB 1904')); 61 $child3->method('getDeathDate')->willReturn(new Date('20 DEC 1910')); 65 $child4->method('getBirthDate')->willReturn(new Date('01 FEB 1904')); 66 $child4->method('getDeathDate')->willReturn(new Date(''));
|
H A D | CensusColumnChildrenLivingTest.php | 22 use Fisharebest\Webtrees\Date; alias 50 $child1->method('getBirthDate')->willReturn(new Date('01 FEB 1904')); 51 $child1->method('getDeathDate')->willReturn(new Date('01 FEB 1904')); 55 $child2->method('getBirthDate')->willReturn(new Date('02 FEB 1904')); 56 $child2->method('getDeathDate')->willReturn(new Date('20 DEC 1912')); 60 $child3->method('getBirthDate')->willReturn(new Date('02 FEB 1904')); 61 $child3->method('getDeathDate')->willReturn(new Date('20 DEC 1910')); 65 $child4->method('getBirthDate')->willReturn(new Date('01 FEB 1904')); 66 $child4->method('getDeathDate')->willReturn(new Date(''));
|
H A D | CensusColumnChildrenBornAliveTest.php | 22 use Fisharebest\Webtrees\Date; alias 50 $child1->method('getBirthDate')->willReturn(new Date('01 FEB 1904')); 51 $child1->method('getDeathDate')->willReturn(new Date('01 FEB 1904')); 55 $child2->method('getBirthDate')->willReturn(new Date('02 FEB 1904')); 56 $child2->method('getDeathDate')->willReturn(new Date('20 DEC 1912')); 60 $child3->method('getBirthDate')->willReturn(new Date('02 FEB 1904')); 61 $child3->method('getDeathDate')->willReturn(new Date('20 DEC 1910')); 65 $child4->method('getBirthDate')->willReturn(new Date('01 FEB 1904')); 66 $child4->method('getDeathDate')->willReturn(new Date(''));
|
/webtrees/app/ |
H A D | Individual.php | 50 private Date|null $estimated_birth_date = null; 52 private Date|null $estimated_death_date = null; 61 …return static fn (Individual $x, Individual $y): int => Date::compare($x->getEstimatedBirthDate(),… 71 …return static fn (Individual $x, Individual $y): int => Date::compare($x->getEstimatedDeathDate(),… 104 $date = new Date($match[1]); 115 $date = new Date($match[1]); 233 $date = new Date($date_match); 253 $date = new Date($date_match); 265 $date = new Date($date_match); 276 $date = new Date($date_match); [all …]
|
H A D | Relationship.php | 403 …'BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new Date… 404 …'BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new Date… 406 return Date::compare($date1, $date2) > 0; 502 …'BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new Date… 503 …'BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new Date… 530 …'BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new Date… 531 …'BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new Date… 533 return Date::compare($date1, $date2) < 0;
|
/webtrees/app/Services/ |
H A D | IndividualFactsService.php | 22 use Fisharebest\Webtrees\Date; alias 181 * @param Date $min_date 182 * @param Date $max_date 186 …vidual $person, Family $family, string $option, string $relation, Date $min_date, Date $max_date):… 613 * @param Date $min_date 614 * @param Date $max_date 618 …private function parentFacts(Individual $person, int $sosa, Date $min_date, Date $max_date): Colle… 750 …if ($sosa === 1 && Date::compare($fact->date(), $min_date) < 0 || $this->includeFact($fact, $min_d… 783 * @param Date $min_date 784 * @param Date $max_date [all …]
|
H A D | CalendarService.php | 23 use Fisharebest\Webtrees\Date; alias 24 use Fisharebest\Webtrees\Date\AbstractCalendarDate; 25 use Fisharebest\Webtrees\Date\FrenchDate; 26 use Fisharebest\Webtrees\Date\GregorianDate; 27 use Fisharebest\Webtrees\Date\HijriDate; 28 use Fisharebest\Webtrees\Date\JalaliDate; 29 use Fisharebest\Webtrees\Date\JewishDate; 30 use Fisharebest\Webtrees\Date\JulianDate; 66 $date = new Date($calendar . ' ' . $year); 179 …$anniv_date = new Date($row->d_type . ' ' . $row->d_day . ' ' . $row->d_month . ' ' . $row->d_year… [all …]
|
/webtrees/app/Factories/ |
H A D | CalendarDateFactory.php | 24 use Fisharebest\Webtrees\Date\AbstractCalendarDate; 25 use Fisharebest\Webtrees\Date\FrenchDate; 26 use Fisharebest\Webtrees\Date\GregorianDate; 27 use Fisharebest\Webtrees\Date\HijriDate; 28 use Fisharebest\Webtrees\Date\JalaliDate; 29 use Fisharebest\Webtrees\Date\JewishDate; 30 use Fisharebest\Webtrees\Date\JulianDate; 31 use Fisharebest\Webtrees\Date\RomanDate;
|
/webtrees/app/Http/RequestHandlers/ |
H A D | CalendarEvents.php | 22 use Fisharebest\Webtrees\Date; alias 23 use Fisharebest\Webtrees\Date\FrenchDate; 24 use Fisharebest\Webtrees\Date\GregorianDate; 25 use Fisharebest\Webtrees\Date\HijriDate; 26 use Fisharebest\Webtrees\Date\JalaliDate; 27 use Fisharebest\Webtrees\Date\JewishDate; 28 use Fisharebest\Webtrees\Date\JulianDate; 77 $ged_date = new Date($cal . ' ' . $day . ' ' . $month . ' ' . $year); 91 $ged_year = new Date($cal . ' ' . $year); 212 $tmp = new Date($cal_date->format('%@ ' . $d . ' %O %E'));
|