Home
last modified time | relevance | path

Searched refs:generations (Results 1 – 25 of 113) sorted by relevance

12345

/webtrees/app/Module/
H A DPedigreeChartModule.php173 …$generations = Validator::attributes($request)->isBetween(self::MINIMUM_GENERATIONS, self::MAXIMUM…
194 $ancestors = $this->chart_service->sosaStradonitzAncestors($individual, $generations);
198 …>map(function (Individual|null $individual, $sosa) use ($ancestors, $style, $generations): string {
199 …if ($individual instanceof Individual && $sosa >= 2 ** $generations / 2 && $individual->childFamil…
201 if ($sosa >= 2 ** $generations * 3 / 4) {
202 return $this->nextLink($ancestors->get(3), $style, $generations);
205 return $this->nextLink($ancestors->get(2), $style, $generations);
213 $links->put(1, $this->previousLink($individual, $style, $generations));
217 'generations' => $generations,
227 'generations' => $generations,
[all …]
H A DDescendancyModule.php154 * @param int $generations
158 public function getPersonLi(Individual $person, int $generations = 0): string argument
160 $icon = $generations > 0 ? 'icon-minus' : 'icon-plus';
162 $spouses = $generations > 0 ? $this->loadSpouses($person, 0) : '';
185 * @param int $generations
189 public function getFamilyLi(Family $family, Individual $person, int $generations = 0): string argument
213 '<div>' . $this->loadChildren($family, $generations) . '</div>' .
221 * @param int $generations
225 public function loadSpouses(Individual $individual, int $generations): string argument
230 $out .= $this->getFamilyLi($family, $individual, $generations - 1);
[all …]
H A DFanChartModule.php202 …$generations = Validator::attributes($request)->isBetween(self::MINIMUM_GENERATIONS, self::MAXIMUM…
223 return $this->chart($individual, $style, $width, $generations);
228 'generations' => $generations,
235 'generations' => $generations,
256 * @param int $generations
260 …protected function chart(Individual $individual, int $style, int $width, int $generations): Respon… argument
262 $ancestors = $this->chart_service->sosaStradonitzAncestors($individual, $generations);
305 $arc_width = $width / $generations / 2.0;
313 for ($generation = $generations; $generation >= 1; $generation--) {
319 $arc_diameter = intdiv($width * $generation, $generations);
H A DDescendancyChartModule.php159 …$generations = Validator::attributes($request)->isBetween(self::MINIMUM_GENERATIONS, self::MAXIMUM…
184 'generations' => $generations,
189 $individuals = $this->chart_service->descendants($individual, $generations - 1);
198 … $families = $this->chart_service->descendantFamilies($individual, $generations - 1);
208 'generations' => $generations,
218 'generations' => $generations,
H A DAncestorsChartModule.php163 …$generations = Validator::attributes($request)->isBetween(self::MINIMUM_GENERATIONS, self::MAXIMUM…
184 $ancestors = $this->chart_service->sosaStradonitzAncestors($individual, $generations);
192 'generations' => $generations,
218 'generations' => $generations,
225 'generations' => $generations,
H A DFamilyBookChartModule.php147 …$generations = Validator::attributes($request)->isBetween(self::MINIMUM_GENERATIONS, self::MAXIMUM…
172 'generations' => $generations,
181 'generations' => $generations,
188 'generations' => $generations,
H A DHourglassChartModule.php149 …$generations = Validator::attributes($request)->isBetween(self::MINIMUM_GENERATIONS, self::MAXIMUM…
172 'generations' => $generations,
180 'generations' => $generations,
186 'generations' => $generations,
H A DPedigreeMapModule.php178 …$generations = Validator::attributes($request)->isBetween(self::MINIMUM_GENERATIONS, self::MAXIMUM…
206 'generations' => $generations,
297 …$generations = Validator::attributes($request)->isBetween(self::MINIMUM_GENERATIONS, self::MAXIMUM…
301 $ancestors = $chart_service->sosaStradonitzAncestors($individual, $generations);
/webtrees/app/Services/
H A DChartService.php35 * @param int $generations Fetch this number of generations
39 public function sosaStradonitzAncestors(Individual $individual, int $generations): Collection argument
45 $max = 2 ** ($generations - 1);
76 * @param int $generations Fetch this number of generations
80 public function descendants(Individual $individual, int $generations): Collection argument
84 if ($generations > 0) {
88 … $descendants = $descendants->merge($this->descendants($child, $generations - 1));
101 * @param int $generations Fetch this number of generations
105 public function descendantFamilies(Individual $individual, int $generations): Collection argument
109 if ($generations > 0) {
[all …]
/webtrees/resources/views/modules/pedigree-chart/
H A Dchart-right.phtml19 …ration wt-generation-fwd-<?= $generation ?> wt-generation-rev-<?= 1 + $generations - $generation ?…
21 <?php if ($generation < $generations) : ?>
32 <?php if ($generation === $generations) : ?>
38 <?php if ($generation < $generations) : ?>
40 …sosa' => $sosa * 2, 'generation' => $generation + 1, 'generations' => $generations, 'links' => $li…
42 …' => $sosa * 2 + 1, 'generation' => $generation + 1, 'generations' => $generations, 'links' => $li…
H A Dchart-left.phtml19 <?php if ($generation < $generations) : ?>
21 …sosa' => $sosa * 2, 'generation' => $generation + 1, 'generations' => $generations, 'links' => $li…
23 …' => $sosa * 2 + 1, 'generation' => $generation + 1, 'generations' => $generations, 'links' => $li…
27 …ration wt-generation-fwd-<?= $generation ?> wt-generation-rev-<?= 1 + $generations - $generation ?…
29 <?php if ($generation < $generations) : ?>
34 <?php if ($generation === $generations) : ?>
H A Dchart-down.phtml19 …ration wt-generation-fwd-<?= $generation ?> wt-generation-rev-<?= 1 + $generations - $generation ?…
21 <?php if ($generation < $generations) : ?>
32 <?php if ($generation === $generations) : ?>
38 <?php if ($generation < $generations) : ?>
40 …sosa' => $sosa * 2, 'generation' => $generation + 1, 'generations' => $generations, 'links' => $li…
42 …' => $sosa * 2 + 1, 'generation' => $generation + 1, 'generations' => $generations, 'links' => $li…
H A Dchart-up.phtml19 <?php if ($generation < $generations) : ?>
21 …sosa' => $sosa * 2, 'generation' => $generation + 1, 'generations' => $generations, 'links' => $li…
23 …' => $sosa * 2 + 1, 'generation' => $generation + 1, 'generations' => $generations, 'links' => $li…
27 …ration wt-generation-fwd-<?= $generation ?> wt-generation-rev-<?= 1 + $generations - $generation ?…
29 <?php if ($generation < $generations) : ?>
34 <?php if ($generation === $generations) : ?>
/webtrees/app/
H A DRelationship.php208 for ($generations = 0; $generations < $limit; ++$generations) {
209 if (!in_array($patterns[$generations], $relationships, true)) {
214 if ($generations > 0) {
215 $nodes = array_slice($nodes, 2 * $generations);
216 $patterns = array_slice($patterns, $generations);
217 $captures[] = $generations;
/webtrees/resources/views/modules/family-book-chart/
H A Dparents.phtml24 <?php if ($generations > 1) : ?>
29 …['family' => $family?->husband()?->childFamilies()->first(), 'generations' => $generations - 1]) ?>
42 <?php if ($generations > 1) : ?>
47 …', ['family' => $family?->wife()?->childFamilies()->first(), 'generations' => $generations - 1]) ?>
H A Dchildren.phtml21 <?php if ($generations > 1 && $grandchildren->isNotEmpty()) : ?>
22 …/family-book-chart/children', ['children' => $grandchildren, 'generations' => $generations - 1]) ?>
H A Dchart.phtml41 <?php if ($generations > 1) : ?>
44 …s/family-book-chart/chart', ['individual' => $child, 'generations' => $generations - 1, 'book_size…
/webtrees/resources/views/modules/hourglass-chart/
H A Dparents.phtml30 <?php if ($generations > 1) : ?>
31 …, ['family' => $family->husband()->childFamilies()->first(), 'generations' => $generations - 1]) ?>
52 <?php if ($generations > 1) : ?>
53 …ts', ['family' => $family->wife()->childFamilies()->first(), 'generations' => $generations - 1]) ?>
H A Dchart.phtml23 …hourglass-chart/children', ['children' => $children, 'generations' => $generations - 1, 'spouses' …
33 …<?= view('modules/hourglass-chart/parents', ['generations' => $generations - 1, 'family' => $indiv…
H A Dchildren.phtml23 <?php if ($generations > 1) : ?>
24 …lass-chart/children', ['children' => $grandchildren, 'generations' => $generations - 1, 'spouses' …
/webtrees/resources/views/modules/ancestors-chart/
H A Dtree.phtml25 <?php if ($generations > 1 && $parents instanceof Family) : ?>
59 …use, 'parents' => $spouse->childFamilies()->first(), 'generations' => $generations - 1, 'sosa' => …
/webtrees/resources/views/modules/descendancy_chart/
H A Dtree.phtml24 <?php if ($generations > 1) : ?>
58 …es/descendancy_chart/tree', ['individual' => $child, 'generations' => $generations - 1, 'daboville…
/webtrees/app/Module/InteractiveTree/
H A DTreeView.php57 * @param int $generations number of generations to draw
61 public function drawViewport(Individual $individual, int $generations): array argument
66 'individual' => $this->drawPerson($individual, $generations, 0, null, '', true),
/webtrees/app/Http/RequestHandlers/
H A DRedirectHourGlassPhp.php60 …$generations = Validator::queryParams($request)->string('generations', HourglassChartModule::DEFAU…
65 'generations' => $generations,
H A DRedirectPedigreePhp.php67 …$generations = Validator::queryParams($request)->string('generations', PedigreeChartModule::DEFAUL…
72 'generations' => $generations,

12345