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. $module = app(ModuleService::class) ->findByComponent(ModuleChartInterface::class, $tree, Auth::user()) ->first(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 >= 0 && $age_at_death <= $max_age) : ?> sex()]; ?> xref()] = true ?>
getAllNames() as $num => $name) : ?> getPrimaryName()) : ?> getSexImage() ?>
getPrimaryParentsNames('parents details1', 'none') ?>
getAllBirthDates(); ?> $birth_date) : ?> 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) ?>
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()]) ?>