$individuals * @var bool $sosa * @var Tree $tree */ // lists requires a unique ID in case there are multiple lists per page $table_id = 'table-indi-' . Uuid::uuid4()->toString(); $today_jd = Registry::timestampFactory()->now()->julianDay(); $hundred_years_ago = Registry::timestampFactory()->now()->subtractYears(100)->julianDay(); $unique_indis = []; // Don't double-count indis with multiple names. $show_estimated_dates = (bool) $tree->getPreference('SHOW_EST_LIST_DATES'); $today = new Date(strtoupper(date('d M Y'))); $module = app(ModuleService::class) ->findByComponent(ModuleChartInterface::class, $tree, Auth::user()) ->first(static function (ModuleInterface $module) { return $module instanceof RelationshipsChartModule; }); ?> getPreference('MAX_ALIVE_AGE'); // Initialise 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'), ] ]; ?>
= 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') ?> | = view('icons/anniversary') ?> | = I18N::translate('Place') ?> | = I18N::translate('Death') ?> | = view('icons/anniversary') ?> | = I18N::translate('Age') ?> | = I18N::translate('Place') ?> | = I18N::translate('Last change') ?> | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
getAllNames() as $num => $name) : ?>
= $name['full'] ?>
getPrimaryName()) : ?>
= view('icons/sex', ['sex' => $individual->sex()]) ?>
= view('lists/individual-table-parents', ['individual' => $individual]) ?> |
= I18N::number($key) ?> = I18N::number($key) ?> | getEstimatedBirthDate(); ?>
getAllBirthDates(); ?>
$birth_date) : ?>
= $birth_date->display($tree, null, true) ?>
= $estimated_birth_date->display($tree, null, true) ?> |
gregorianYear() >= 1550 && $birth_dates[0]->gregorianYear() < 2030 && !isset($unique_indis[$individual->xref()])) : ?>
gregorianYear() / 10) * 10][$individual->sex()];
?>
= (new Age($birth_dates[0] ?? new Date(''), $today))->ageYearsString() ?> |
getAllBirthPlaces() as $n => $birth_place) : ?>
= $birth_place->shortName(true) ?>
|
= I18N::number($individual->numberOfChildren()) ?> | getAllDeathDates() ?>
$death_date) : ?>
= $death_date->display($tree, null, true) ?>
getEstimatedDeathDate()->minimumDate()->minimumJulianDay() < $today_jd) : ?> = $individual->getEstimatedDeathDate()->display($tree, null, true) ?> |
gregorianYear() >= 1550 && $death_dates[0]->gregorianYear() < 2030 && !isset($unique_indis[$individual->xref()])) : ?>
gregorianYear() / 10) * 10][$individual->sex()];
?>
= (new Age($death_dates[0] ?? new Date(''), $today))->ageYearsString() ?> | xref()]) && $age->ageYears() >= 0 && $age->ageYears() <= $max_age) : ?> ageYears()][$individual->sex()] ?>= $age->ageYearsString() ?> |
getAllDeathPlaces() as $n => $death_place) : ?>
= $death_place->shortName(true) ?>
|
= view('components/datetime', ['timestamp' => $individual->lastChangeTimestamp()]) ?> | = $individual->sex() ?> | maximumJulianDay() > $hundred_years_ago && $estimated_birth_date->maximumJulianDay() <= $today_jd) : ?> Y100 YES | getEstimatedDeathDate()->maximumJulianDay() > $hundred_years_ago && $individual->getEstimatedDeathDate()->maximumJulianDay() <= $today_jd) : ?> Y100 isDead()) : ?> YES N | childFamilies()->isEmpty()) : ?> R isDead() && $individual->numberOfChildren() < 1) : ?> L | ||
|