Lines Matching refs:individual

124      * @param Individual $individual
128 public function chartBoxMenu(Individual $individual): Menu|null argument
130 return $this->chartMenu($individual);
136 * @param Individual $individual
140 public function chartTitle(Individual $individual): string argument
143 return I18N::translate('Pedigree tree of %s', $individual->fullName());
149 * @param Individual $individual
154 public function chartUrl(Individual $individual, array $parameters = []): string argument
157 'xref' => $individual->xref(),
158 'tree' => $individual->tree()->name(),
188 $individual = Registry::individualFactory()->make($xref, $tree);
189 $individual = Auth::checkIndividualAccess($individual, false, true);
194 $ancestors = $this->chart_service->sosaStradonitzAncestors($individual, $generations);
198 …$links = $ancestors->map(function (Individual|null $individual, $sosa) use ($ancestors, $style, $g…
199 …if ($individual instanceof Individual && $sosa >= 2 ** $generations / 2 && $individual->childFamil…
213 $links->put(1, $this->previousLink($individual, $style, $generations));
225 $ajax_url = $this->chartUrl($individual, [
235 'individual' => $individual,
241 'title' => $this->chartTitle($individual),
259 * @param Individual $individual
265 public function nextLink(Individual $individual, string $style, int $generations): string argument
268 $title = $this->chartTitle($individual);
269 $url = $this->chartUrl($individual, [
280 * @param Individual $individual
286 public function previousLink(Individual $individual, string $style, int $generations): string argument
294 foreach ($individual->childFamilies() as $family) {
296 if ($child !== $individual) {
302 foreach ($individual->spouseFamilies() as $family) {
304 if ($spouse !== $individual) {
316 'individual' => $individual,
327 * @param Individual $individual
333 … protected function individualLink(Individual $individual, string $style, int $generations): string argument
335 $text = $individual->fullName();
336 $title = $this->chartTitle($individual);
337 $url = $this->chartUrl($individual, [