diff options
Diffstat (limited to 'app/Controller/HourglassController.php')
| -rw-r--r-- | app/Controller/HourglassController.php | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/app/Controller/HourglassController.php b/app/Controller/HourglassController.php index abcf723008..b843e27f04 100644 --- a/app/Controller/HourglassController.php +++ b/app/Controller/HourglassController.php @@ -1,6 +1,4 @@ <?php -namespace Fisharebest\Webtrees\Controller; - /** * webtrees: online genealogy * Copyright (C) 2015 webtrees development team @@ -15,6 +13,7 @@ namespace Fisharebest\Webtrees\Controller; * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +namespace Fisharebest\Webtrees\Controller; use Fisharebest\Webtrees\Filter; use Fisharebest\Webtrees\Functions\FunctionsPrint; @@ -23,32 +22,36 @@ use Fisharebest\Webtrees\Individual; use Fisharebest\Webtrees\Theme; /** - * Class HourglassController - Controller for the hourglass chart + * Controller for the hourglass chart */ class HourglassController extends ChartController { - /** @var int Whether to show spouse details */ + /** @var int Whether to show spouse details. */ public $show_spouse; - /** @var int Number of ascendancy generations to show */ + /** @var int Number of ascendancy generations to show. */ public $generations; - /** @var int Number of descendancy generations that exist */ + /** @var int Number of descendancy generations that exist. */ private $dgenerations; - /** @var int Half height of personbox */ + /** @var int Half height of personbox. */ public $bhalfheight; - // Left and right get reversed on RTL pages + /** @var string An arrow that points to the start of the line */ private $left_arrow; + + /** @var string An arrow that points to the end of the line. */ private $right_arrow; - /** @var bool Can the Javascript be loaded by the controller */ + /** @var bool Can the Javascript be loaded by the controller. */ private $canLoadJS; const LINK = "<a class='%s' href='%s' data-parms='%s-%s-%s'></a>"; const SWITCH_LINK = "<a href='hourglass.php?rootid=%s&show_spouse=%s&show_full=%s&generations=%s' class='name1'>%s</a>"; /** + * Create the hourglass controller. + * * @param string $rootid * @param int $show_full * @param bool $loadJS |
