Lines Matching refs:age
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,
430 'age' => $age,
450 return $this->calculateAge((int) $fam->age);
861 $age = $row->age;
864 $result = $this->calculateAge((int) $row->age);
866 $result = (string) floor($age / 365.25);
1079 $rows[$family->family] = $family->age;
1084 $rows[$family->family] = $family->age;
1090 $rows[$family->family] = $family->age;
1091 } elseif ($rows[$family->family] > $family->age) {
1092 $rows[$family->family] = $family->age;
1104 foreach ($rows as $xref => $age) {
1110 $age = $this->calculateAge((int) $age);
1113 return $age;
1127 …'<li><a href="' . e($family->url()) . '">' . $family->fullName() . '</a> (' . $age . ')' . '</li>';
1129 … $top10[] = '<a href="' . e($family->url()) . '">' . $family->fullName() . '</a> (' . $age . ')';
1419 $row->age = (int) $row->age;
1509 $age = $row->age;
1512 $result = $this->calculateAge((int) $row->age);
1514 $result = I18N::number((int) ($age / 365.25));