/webtrees/app/Module/ |
H A D | PedigreeChartModule.php | 173 …$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 D | DescendancyModule.php | 154 * @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 D | FanChartModule.php | 202 …$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 D | DescendancyChartModule.php | 159 …$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 D | AncestorsChartModule.php | 163 …$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 D | FamilyBookChartModule.php | 147 …$generations = Validator::attributes($request)->isBetween(self::MINIMUM_GENERATIONS, self::MAXIMUM… 172 'generations' => $generations, 181 'generations' => $generations, 188 'generations' => $generations,
|
H A D | HourglassChartModule.php | 149 …$generations = Validator::attributes($request)->isBetween(self::MINIMUM_GENERATIONS, self::MAXIMUM… 172 'generations' => $generations, 180 'generations' => $generations, 186 'generations' => $generations,
|
H A D | PedigreeMapModule.php | 178 …$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 D | ChartService.php | 35 * @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 D | chart-right.phtml | 19 …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 D | chart-left.phtml | 19 <?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 D | chart-down.phtml | 19 …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 D | chart-up.phtml | 19 <?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 D | Relationship.php | 208 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 D | parents.phtml | 24 <?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 D | children.phtml | 21 <?php if ($generations > 1 && $grandchildren->isNotEmpty()) : ?> 22 …/family-book-chart/children', ['children' => $grandchildren, 'generations' => $generations - 1]) ?>
|
H A D | chart.phtml | 41 <?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 D | parents.phtml | 30 <?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 D | chart.phtml | 23 …hourglass-chart/children', ['children' => $children, 'generations' => $generations - 1, 'spouses' … 33 …<?= view('modules/hourglass-chart/parents', ['generations' => $generations - 1, 'family' => $indiv…
|
H A D | children.phtml | 23 <?php if ($generations > 1) : ?> 24 …lass-chart/children', ['children' => $grandchildren, 'generations' => $generations - 1, 'spouses' …
|
/webtrees/resources/views/modules/ancestors-chart/ |
H A D | tree.phtml | 25 <?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 D | tree.phtml | 24 <?php if ($generations > 1) : ?> 58 …es/descendancy_chart/tree', ['individual' => $child, 'generations' => $generations - 1, 'daboville…
|
/webtrees/app/Module/InteractiveTree/ |
H A D | TreeView.php | 57 * @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 D | RedirectHourGlassPhp.php | 60 …$generations = Validator::queryParams($request)->string('generations', HourglassChartModule::DEFAU… 65 'generations' => $generations,
|
H A D | RedirectPedigreePhp.php | 67 …$generations = Validator::queryParams($request)->string('generations', PedigreeChartModule::DEFAUL… 72 'generations' => $generations,
|