/webtrees/tests/app/ |
H A D | AgeTest.php | 33 $age = new Age($x, $y); 35 self::assertSame(0, $age->ageDays()); 36 self::assertSame(0, $age->ageYears()); 37 self::assertSame('0', $age->ageYearsString()); 38 self::assertSame('0 days', (string) $age); 45 $age = new Age($x, $y); 47 self::assertSame(0, $age->ageDays()); 48 self::assertSame(0, $age->ageYears()); 49 self::assertSame('0', $age->ageYearsString()); 50 self::assertSame('0', (string) $age); [all …]
|
/webtrees/app/Statistics/Repository/ |
H A D | FamilyRepository.php | 340 * @param int $age The age from the database record 344 private function calculateAge(int $age): string argument 346 if ($age < 31) { 347 return I18N::plural('%s day', '%s days', $age, I18N::number($age)); 350 if ($age < 365) { 351 $months = (int) ($age / 30.5); 356 $years = (int) ($age / 365.25); 384 'age' => $this->calculateAge((int) $fam->age), 412 $age = $this->calculateAge((int) $fam->age); 420 'age' => $age, [all …]
|
/webtrees/resources/views/ |
H A D | fact-date.phtml | 82 $age = (string) new Age($birth_date, $date); variable 85 if ($age !== '') { 87 $fact_age !== '' && !str_starts_with($fact_age, $age) || 89 … $husb_age !== '' && !str_starts_with($husb_age, $age) && $record->sex() === 'M' || 90 … $wife_age !== '' && !str_starts_with($wife_age, $age) && $record->sex() === 'F' 95 $ageText = I18N::translateContext('Male', '(aged %s)', $age); 99 $ageText = I18N::translateContext('Female', '(aged %s)', $age); 103 $ageText = I18N::translate('(aged %s)', $age); 120 $age = (string) new Age($death_date, $date); variable 122 if ($age !== '') { [all …]
|
H A D | fact-parent-age.phtml | 19 … <small><?= view('icons/sex', ['sex' => $sex]) ?></small><?= I18N::number($age->ageYears()) ?> 23 … <small><?= view('icons/sex', ['sex' => $sex]) ?></small><?= I18N::number($age->ageYears()) ?> 29 … <small><?= view('icons/sex', ['sex' => $sex]) ?></small><?= I18N::number($age->ageYears()) ?> 33 … <small><?= view('icons/sex', ['sex' => $sex]) ?></small><?= I18N::number($age->ageYears()) ?> 39 … <small><?= view('icons/sex', ['sex' => $sex]) ?></small><?= I18N::number($age->ageYears()) ?> 43 … <small><?= view('icons/sex', ['sex' => $sex]) ?></small><?= I18N::number($age->ageYears()) ?>
|
H A D | fact-association-structure.phtml | 61 $age = new Age($person->getBirthDate(), $fact->date()); variable 64 $age_text = ' ' . I18N::translateContext('Male', '(aged %s)', (string) $age); 67 $age_text = ' ' . I18N::translateContext('Female', '(aged %s)', (string) $age); 70 $age_text = ' ' . I18N::translate('(aged %s)', (string) $age);
|
H A D | individual-page-title.phtml | 23 <?= $age ?>
|
H A D | individual-page.phtml | 33 … <?= view('individual-page-title', ['age' => $age, 'record' => $record, 'users' => $users]) ?>
|
/webtrees/resources/views/lists/ |
H A D | families-table.phtml | 195 <?php $age = new Age($husb->getBirthDate(), $family->getMarriageDate()) ?> variable 196 <td class="text-center" data-sort="<?= $age->ageDays() ?>"> 197 <?= $age->ageYearsString() ?> 220 <?php $age = new Age($wife->getBirthDate(), $family->getMarriageDate()) ?> variable 221 <td class="text-center" data-sort="<?= $age->ageDays() ?>"> 222 <?= $age->ageYearsString() ?> 239 <?php $age = new Age($family->getMarriageDate(), $today) ?> variable 240 <td class="text-center" data-sort="<?= $age->ageDays() ?>"> 241 <?= $age->ageYearsString() ?>
|
H A D | individuals-table.phtml | 274 … <?php $age = new Age($birth_dates[0] ?? new Date(''), $death_dates[0] ?? new Date('')) ?> variable 275 <td class="text-center" data-sort="<?= $age->ageDays() ?>"> 276 <?= $age->ageYearsString() ?>
|
/webtrees/app/Http/RequestHandlers/ |
H A D | IndividualPage.php | 151 $age = (string) new Age($individual->getBirthDate(), $individual->getDeathDate()); 153 if ($age === '') { 160 return I18N::translateContext('Male', '(aged %s)', $age); 163 return I18N::translateContext('Female', '(aged %s)', $age); 166 return I18N::translate('(aged %s)', $age); 172 $age = (string) new Age($individual->getBirthDate(), $today); 174 if ($age === '') { 179 return I18N::translate('(age %s)', $age);
|
/webtrees/app/Module/ |
H A D | StatisticsChartModule.php | 533 foreach ($row as $age) { 534 $years = (int) ($age / self::DAYS_IN_YEAR); 544 foreach ($row as $age) { 545 $years = (int) ($age / self::DAYS_IN_YEAR); 558 foreach ($row as $age) { 559 $years = (int) ($age / self::DAYS_IN_YEAR); 597 $years = (int) ($row->age / self::DAYS_IN_YEAR); 607 $years = (int) ($row->age / self::DAYS_IN_YEAR); 621 $years = (int) ($row->age / self::DAYS_IN_YEAR); 660 $years = (int) ($row->age / self::DAYS_IN_YEAR); [all …]
|
/webtrees/resources/views/modules/timeline-chart/ |
H A D | chart.phtml | 353 $age = (string) new Age($spouse->getBirthDate(), $gdate); variable 355 … echo '<span class="age"> ', I18N::translate('Wife’s age'), ' ', $age, '</span>'; 357 … echo '<span class="age"> ', I18N::translate('Husband’s age'), ' ', $age, '</span>';
|
/webtrees/app/Census/ |
H A D | CensusColumnAge.php | 41 $age = new Age($individual->getEstimatedBirthDate(), $this->date()); 43 return I18N::number($age->ageYears());
|
H A D | CensusColumnAgeNextBirthDay.php | 41 $age = new Age($individual->getEstimatedBirthDate(), $this->date()); 42 return I18N::number($age->ageYears() + 1);
|
H A D | CensusColumnAgeFemale.php | 45 $age = new Age($individual->getEstimatedBirthDate(), $this->date()); 47 return I18N::number($age->ageYears());
|
H A D | CensusColumnAgeMale.php | 45 $age = new Age($individual->getEstimatedBirthDate(), $this->date()); 47 return I18N::number($age->ageYears());
|
H A D | CensusColumnAgeMale5Years.php | 45 $age = new Age($individual->getEstimatedBirthDate(), $this->date()); 46 $years = $age->ageYears();
|
H A D | CensusColumnAgeFemale5Years.php | 45 $age = new Age($individual->getEstimatedBirthDate(), $this->date()); 46 $years = $age->ageYears();
|
H A D | CensusColumnAgeMarried.php | 45 $age = new Age($individual->getBirthDate(), $fact->date()); 47 return I18N::number($age->ageYears());
|
H A D | CensusColumnYearsMarried.php | 56 $age = new Age($marriage_date, $this->date()); 58 return I18N::number($age->ageYears());
|
H A D | AbstractCensusColumnCondition.php | 106 $age = new Age($individual->getEstimatedBirthDate(), $this->date()); 108 return $age->ageYears() < static::AGE_ADULT;
|
/webtrees/app/Statistics/Google/ |
H A D | ChartAge.php | 87 'age' => (float) $row->age, 102 $out[$record->century][$record->sex] = $record->age;
|
H A D | ChartMarriageAge.php | 109 'age' => (float) $row->age, 125 $out[$record->century][$record->sex] = $record->age;
|
/webtrees/app/Http/Middleware/ |
H A D | SecurityHeaders.php | 61 $response = $response->withHeader('Strict-Transport-Security', 'max-age=31536000');
|
/webtrees/resources/lang/tt/ |
H A D | messages.po | 471 #. I18N: The current age of a living individual 474 msgid "(age %s)" 477 #. I18N: The age of an individual at a given date 485 #. I18N: The age of an individual at a given date 494 #. I18N: The age of an individual at a given date 1657 #: resources/views/modules/statistics-chart/birth-age.phtml:10 1665 #: resources/views/modules/statistics-chart/age-difference.phtml:37 1669 #: resources/views/modules/statistics-chart/age-difference.phtml:17 1673 #: resources/views/modules/statistics-chart/age-difference.phtml:46 1677 #: resources/views/modules/statistics-chart/age-difference.phtml:10 [all …]
|