toString(); $hundred_years_ago = new Date(date('Y') - 100); $unique_indis = []; // Don't double-count indis with multiple names. $module = app(ModuleService::class)->findByComponent('chart', $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] = ''; } $birt_by_decade = []; $deat_by_decade = []; for ($year = 1550; $year < 2030; $year += 10) { $birt_by_decade[$year] = ''; $deat_by_decade[$year] = ''; } ?>
= I18N::translate('Given names') ?> | = I18N::translate('Surname') ?> | = /* I18N: Abbreviation for “Sosa-Stradonitz number”. This is an individual’s surname, so may need transliterating into non-latin alphabets. */ I18N::translate('Sosa') ?> | = I18N::translate('Birth') ?> | = I18N::translate('Place') ?> | = I18N::translate('Death') ?> | = I18N::translate('Age') ?> | = I18N::translate('Place') ?> | = I18N::translate('Last change') ?> | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
getAllNames() as $num => $name) : ?>
= $name['full'] ?>
getPrimaryName()) : ?>
= $individual->getSexImage() ?>
= $individual->getPrimaryParentsNames('parents details1', 'none') ?> |
= I18N::number($key) ?> = I18N::number($key) ?> |
getAllBirthDates(); ?>
$birth_date) : ?>
= $birth_date->display(true) ?>
|
gregorianYear() >= 1550 && $birth_dates[0]->gregorianYear() < 2030 && !isset($unique_indis[$individual->xref()])) : ?> gregorianYear() / 10) * 10] .= $individual->getSex() ?> = Date::getAge($birth_dates[0], null) ?> |
getAllBirthPlaces() as $n => $birth_place) : ?>
= $birth_place->shortName(true) ?>
|
= I18N::number($individual->getNumberOfChildren()) ?> | getAllDeathDates() ?>
$death_date) : ?>
= $death_date->display(true) ?>
|
gregorianYear() >= 1550 && $death_dates[0]->gregorianYear() < 2030 && !isset($unique_indis[$individual->xref()])) : ?> gregorianYear() / 10) * 10] .= $individual->getSex() ?> = Date::getAge($death_dates[0], null) ?> | xref()]) && $age_at_death >= 0 && $age_at_death <= $max_age) : ?> getSex(); ?>= e($age_at_death) ?> |
getAllDeathPlaces() as $n => $death_place) : ?>
= $death_place->shortName(true) ?>
|
= $individual->lastChangeTimestamp() ?> | = $individual->getSex() ?> | canShow() || Date::compare($individual->getEstimatedBirthDate(), $hundred_years_ago) > 0) : ?> Y100 YES | 0) : ?> Y100 isDead()) : ?> YES N | getChildFamilies()) : ?> R isDead() && $individual->getNumberOfChildren() < 1) : ?> L |