Home
last modified time | relevance | path

Searched refs:age (Results 1 – 25 of 99) sorted by relevance

1234

/webtrees/tests/app/
H A DAgeTest.php33 $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 DFamilyRepository.php340 * @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 Dfact-date.phtml82 $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 Dfact-parent-age.phtml19 … <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 Dfact-association-structure.phtml61 $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 Dindividual-page-title.phtml23 <?= $age ?>
H A Dindividual-page.phtml33 … <?= view('individual-page-title', ['age' => $age, 'record' => $record, 'users' => $users]) ?>
/webtrees/resources/views/lists/
H A Dfamilies-table.phtml195 <?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 Dindividuals-table.phtml274 … <?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 DIndividualPage.php151 $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 DStatisticsChartModule.php533 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 Dchart.phtml353 $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 DCensusColumnAge.php41 $age = new Age($individual->getEstimatedBirthDate(), $this->date());
43 return I18N::number($age->ageYears());
H A DCensusColumnAgeNextBirthDay.php41 $age = new Age($individual->getEstimatedBirthDate(), $this->date());
42 return I18N::number($age->ageYears() + 1);
H A DCensusColumnAgeFemale.php45 $age = new Age($individual->getEstimatedBirthDate(), $this->date());
47 return I18N::number($age->ageYears());
H A DCensusColumnAgeMale.php45 $age = new Age($individual->getEstimatedBirthDate(), $this->date());
47 return I18N::number($age->ageYears());
H A DCensusColumnAgeMale5Years.php45 $age = new Age($individual->getEstimatedBirthDate(), $this->date());
46 $years = $age->ageYears();
H A DCensusColumnAgeFemale5Years.php45 $age = new Age($individual->getEstimatedBirthDate(), $this->date());
46 $years = $age->ageYears();
H A DCensusColumnAgeMarried.php45 $age = new Age($individual->getBirthDate(), $fact->date());
47 return I18N::number($age->ageYears());
H A DCensusColumnYearsMarried.php56 $age = new Age($marriage_date, $this->date());
58 return I18N::number($age->ageYears());
H A DAbstractCensusColumnCondition.php106 $age = new Age($individual->getEstimatedBirthDate(), $this->date());
108 return $age->ageYears() < static::AGE_ADULT;
/webtrees/app/Statistics/Google/
H A DChartAge.php87 'age' => (float) $row->age,
102 $out[$record->century][$record->sex] = $record->age;
H A DChartMarriageAge.php109 'age' => (float) $row->age,
125 $out[$record->century][$record->sex] = $record->age;
/webtrees/app/Http/Middleware/
H A DSecurityHeaders.php61 $response = $response->withHeader('Strict-Transport-Security', 'max-age=31536000');
/webtrees/resources/lang/tt/
H A Dmessages.po471 #. 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 …]

1234