toString(); $hundred_years_ago = new DateTime(); $hundred_years_ago->modify('-100 years'); $hundred_years_ago = new Date($hundred_years_ago->format('Y')); $unique_indis = []; // Don't double-count indis with multiple names. $today_jd = unixtojd(); $show_estimated_dates = (bool) $tree->getPreference('SHOW_EST_LIST_DATES'); $module = app(ModuleService::class) ->findByComponent(ModuleChartInterface::class, $tree, Auth::user()) ->first(static function (ModuleInterface $module) { return $module instanceof RelationshipsChartModule; }); ?> getPreference('MAX_ALIVE_AGE'); // Inititialise chart data $deat_by_age = []; for ($age = 0; $age <= $max_age; $age++) { $deat_by_age[$age]['M'] = 0; $deat_by_age[$age]['F'] = 0; $deat_by_age[$age]['U'] = 0; } $birt_by_decade = []; $deat_by_decade = []; for ($year = 1400; $year < 2050; $year += 10) { $birt_by_decade[$year]['M'] = 0; $birt_by_decade[$year]['F'] = 0; $birt_by_decade[$year]['U'] = 0; $deat_by_decade[$year]['M'] = 0; $deat_by_decade[$year]['F'] = 0; $deat_by_decade[$year]['U'] = 0; } $birthData = [ [ [ 'label' => I18N::translate('Century'), 'type' => 'date', ], [ 'label' => I18N::translate('Males'), 'type' => 'number', ], [ 'label' => I18N::translate('Females'), 'type' => 'number', ], ] ]; $deathData = [ [ [ 'label' => I18N::translate('Century'), 'type' => 'date', ], [ 'label' => I18N::translate('Males'), 'type' => 'number', ], [ 'label' => I18N::translate('Females'), 'type' => 'number', ], ] ]; $deathAgeData = [ [ I18N::translate('Age'), I18N::translate('Males'), I18N::translate('Females'), I18N::translate('Average age'), ] ]; ?>
> $individual) : ?> getAllDeathDates() ?> xref()]) && $age_at_death_years >= 0 && $age_at_death_years <= $max_age) : ?> sex()]; ?> xref()] = true ?>
getAllNames() as $num => $name) : ?> getPrimaryName()) : ?> getSexImage() ?>
getPrimaryParentsNames('parents details1', 'none') ?>
getAllBirthDates(); ?> $birth_date) : ?> display(true) ?>
getEstimatedBirthDate()->display(true) ?>
gregorianYear() >= 1550 && $birth_dates[0]->gregorianYear() < 2030 && !isset($unique_indis[$individual->xref()])) : ?> gregorianYear() / 10) * 10][$individual->sex()]; ?> getAllBirthPlaces() as $n => $birth_place) : ?> shortName(true) ?>
numberOfChildren()) ?> $death_date) : ?> display(true) ?>
getEstimatedDeathDate()->minimumDate()->minimumJulianDay() < $today_jd): ?> getEstimatedDeathDate()->display(true) ?>
gregorianYear() >= 1550 && $death_dates[0]->gregorianYear() < 2030 && !isset($unique_indis[$individual->xref()])) : ?> gregorianYear() / 10) * 10][$individual->sex()]; ?> getAllDeathPlaces() as $n => $death_place) : ?> shortName(true) ?>
$individual->lastChangeTimestamp()]) ?>