Lines Matching refs:sex
90 * @param string $sex
98 …private function commonGivenQuery(string $sex, string $type, bool $show_tot, int $threshold, int $… argument
111 switch ($sex) {
115 $query->where('i_sex', '=', $sex);
794 * @param string $sex
800 …public function statsAgeQuery(string $related = 'BIRT', string $sex = 'BOTH', int $year1 = -1, int… argument
802 $query = $this->birthAndDeathQuery($sex);
837 * @param string $sex
841 private function longlifeQuery(string $type, string $sex): string argument
843 $row = $this->birthAndDeathQuery($sex)
987 * @param string $sex
992 private function topTenOldestQuery(string $sex, int $total): array argument
994 $rows = $this->birthAndDeathQuery($sex)
1115 * @param string $sex "M", "F" or "BOTH"
1120 private function topTenOldestAliveQuery(string $sex, int $total): array argument
1135 if ($sex === 'F' || $sex === 'M') {
1136 $query->where('i_sex', '=', $sex);
1277 * @param string $sex "M", "F" or "BOTH"
1282 private function averageLifespanQuery(string $sex, bool $show_years): string argument
1284 $days = (int) $this->birthAndDeathQuery($sex)
1398 * @param string $sex The sex to query
1402 private function getTotalSexQuery(string $sex): int argument
1406 ->where('i_sex', '=', $sex)
1930 * @param string $sex
1934 private function birthAndDeathQuery(string $sex): Builder argument
1953 if ($sex === 'M' || $sex === 'F') {
1954 $query->where('i_sex', '=', $sex);