$individuals * @var bool $sosa * @var Tree $tree */ // lists require a unique ID in case there are multiple lists per page $table_id = Registry::idFactory()->id(); $today_jd = Registry::timestampFactory()->now()->julianDay(); $hundred_years_ago = Registry::timestampFactory()->now()->subtractYears(100)->julianDay(); $show_estimated_dates = (bool) $tree->getPreference('SHOW_EST_LIST_DATES'); $today = new Date(strtoupper(date('d M Y'))); $module = Registry::container()->get(ModuleService::class) ->findByComponent(ModuleChartInterface::class, $tree, Auth::user()) ->first(static function (ModuleInterface $module) { return $module instanceof RelationshipsChartModule; }); ?>
= 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->display($tree, null, true) ?>
= $estimated_birth_date->display($tree, null, true) ?>
|
= (new Age($birth_dates[0] ?? new Date(''), $today))->ageYearsString() ?> |
getAllBirthPlaces() as $birth_place) : ?>
= $birth_place->shortName(true) ?>
|
= I18N::number($individual->numberOfChildren()) ?> | getAllDeathDates() ?>
= $death_date->display($tree, null, true) ?>
getEstimatedDeathDate()->minimumDate()->minimumJulianDay() < $today_jd) : ?>
= $individual->getEstimatedDeathDate()->display($tree, null, true) ?>
|
= (new Age($death_dates[0] ?? new Date(''), $today))->ageYearsString() ?> | = $age->ageYearsString() ?> |
getAllDeathPlaces() as $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 | ||
|