summaryrefslogtreecommitdiff
path: root/app/Module/TimelineChartModule.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Module/TimelineChartModule.php')
-rw-r--r--app/Module/TimelineChartModule.php115
1 files changed, 63 insertions, 52 deletions
diff --git a/app/Module/TimelineChartModule.php b/app/Module/TimelineChartModule.php
index 7464eaa3ee..fc6835c1d5 100644
--- a/app/Module/TimelineChartModule.php
+++ b/app/Module/TimelineChartModule.php
@@ -23,60 +23,71 @@ use Fisharebest\Webtrees\Menu;
/**
* Class TimelineChartModule
*/
-class TimelineChartModule extends AbstractModule implements ModuleChartInterface {
- /**
- * How should this module be labelled on tabs, menus, etc.?
- *
- * @return string
- */
- public function getTitle() {
- return /* I18N: Name of a module/chart */ I18N::translate('Timeline');
- }
+class TimelineChartModule extends AbstractModule implements ModuleChartInterface
+{
+ /**
+ * How should this module be labelled on tabs, menus, etc.?
+ *
+ * @return string
+ */
+ public function getTitle()
+ {
+ return /* I18N: Name of a module/chart */
+ I18N::translate('Timeline');
+ }
- /**
- * A sentence describing what this module does.
- *
- * @return string
- */
- public function getDescription() {
- return /* I18N: Description of the “TimelineChart” module */ I18N::translate('A timeline displaying individual events.');
- }
+ /**
+ * A sentence describing what this module does.
+ *
+ * @return string
+ */
+ public function getDescription()
+ {
+ return /* I18N: Description of the “TimelineChart” module */
+ I18N::translate('A timeline displaying individual events.');
+ }
- /**
- * What is the default access level for this module?
- *
- * Some modules are aimed at admins or managers, and are not generally shown to users.
- *
- * @return int
- */
- public function defaultAccessLevel() {
- return Auth::PRIV_PRIVATE;
- }
+ /**
+ * What is the default access level for this module?
+ *
+ * Some modules are aimed at admins or managers, and are not generally shown to users.
+ *
+ * @return int
+ */
+ public function defaultAccessLevel()
+ {
+ return Auth::PRIV_PRIVATE;
+ }
- /**
- * Return a menu item for this chart.
- *
- * @param Individual $individual
- *
- * @return Menu|null
- */
- public function getChartMenu(Individual $individual) {
- return new Menu(
- $this->getTitle(),
- route('timeline', ['xrefs[]' => $individual->getXref(), 'ged' => $individual->getTree()->getName()]),
- 'menu-chart-timeline',
- ['rel' => 'nofollow']
- );
- }
+ /**
+ * Return a menu item for this chart.
+ *
+ * @param Individual $individual
+ *
+ * @return Menu|null
+ */
+ public function getChartMenu(Individual $individual)
+ {
+ return new Menu(
+ $this->getTitle(),
+ route('timeline', [
+ 'xrefs[]' => $individual->getXref(),
+ 'ged' => $individual->getTree()->getName(),
+ ]),
+ 'menu-chart-timeline',
+ ['rel' => 'nofollow']
+ );
+ }
- /**
- * Return a menu item for this chart - for use in individual boxes.
- *
- * @param Individual $individual
- *
- * @return Menu|null
- */
- public function getBoxChartMenu(Individual $individual) {
- return null;
- }
+ /**
+ * Return a menu item for this chart - for use in individual boxes.
+ *
+ * @param Individual $individual
+ *
+ * @return Menu|null
+ */
+ public function getBoxChartMenu(Individual $individual)
+ {
+ return null;
+ }
}