app/Controller/DescendancyController.php 1 location
|
@@ 58-65 (lines=8) @@
|
| 55 |
|
$this->chart_style = Filter::getInteger('chart_style', 0, 3, 0); |
| 56 |
|
$this->generations = Filter::getInteger('generations', 2, $this->tree()->getPreference('MAX_DESCENDANCY_GENERATIONS'), $this->tree()->getPreference('DEFAULT_PEDIGREE_GENERATIONS')); |
| 57 |
|
|
| 58 |
|
if ($this->root && $this->root->canShowName()) { |
| 59 |
|
$this->setPageTitle( |
| 60 |
|
/* I18N: %s is an individual’s name */ |
| 61 |
|
I18N::translate('Descendants of %s', $this->root->getFullName()) |
| 62 |
|
); |
| 63 |
|
} else { |
| 64 |
|
$this->setPageTitle(I18N::translate('Descendants')); |
| 65 |
|
} |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
/** |
app/Controller/FanchartController.php 1 location
|
@@ 48-55 (lines=8) @@
|
| 45 |
|
$this->fan_width = Filter::getInteger('fan_width', 50, 500, 100); |
| 46 |
|
$this->generations = Filter::getInteger('generations', 2, 9, $default_generations); |
| 47 |
|
|
| 48 |
|
if ($this->root && $this->root->canShowName()) { |
| 49 |
|
$this->setPageTitle( |
| 50 |
|
/* I18N: http://en.wikipedia.org/wiki/Family_tree#Fan_chart - %s is an individual’s name */ |
| 51 |
|
I18N::translate('Fan chart of %s', $this->root->getFullName()) |
| 52 |
|
); |
| 53 |
|
} else { |
| 54 |
|
$this->setPageTitle(I18N::translate('Fan chart')); |
| 55 |
|
} |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
/** |
app/Controller/PedigreeController.php 1 location
|
@@ 80-86 (lines=7) @@
|
| 77 |
|
$this->generations = 8; |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
if ($this->root && $this->root->canShowName()) { |
| 81 |
|
$this->setPageTitle( |
| 82 |
|
/* I18N: %s is an individual’s name */ I18N::translate('Pedigree tree of %s', $this->root->getFullName()) |
| 83 |
|
); |
| 84 |
|
} else { |
| 85 |
|
$this->setPageTitle(I18N::translate('Pedigree')); |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
$this->treesize = pow(2, $this->generations) - 1; |
| 89 |
|
|
app/Controller/FamilyBookController.php 1 location
|
@@ 55-62 (lines=8) @@
|
| 52 |
|
$this->generations = Filter::getInteger('generations', 2, $this->tree()->getPreference('MAX_DESCENDANCY_GENERATIONS'), 2); |
| 53 |
|
|
| 54 |
|
$this->bhalfheight = $this->getBoxDimensions()->height / 2; |
| 55 |
|
if ($this->root && $this->root->canShowName()) { |
| 56 |
|
$this->setPageTitle( |
| 57 |
|
/* I18N: %s is an individual’s name */ |
| 58 |
|
I18N::translate('Family book of %s', $this->root->getFullName()) |
| 59 |
|
); |
| 60 |
|
} else { |
| 61 |
|
$this->setPageTitle(I18N::translate('Family book')); |
| 62 |
|
} |
| 63 |
|
//Checks how many generations of descendency is for the person for formatting purposes |
| 64 |
|
$this->dgenerations = $this->maxDescendencyGenerations($this->root->getXref(), 0); |
| 65 |
|
|