From e63e15e471a19941b9eae586ac0e04fca9ec3628 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 7 Sep 2015 09:06:40 +0200 Subject: [PATCH] Add class DashboardPane refs #5600 --- .../Icinga/Web/Navigation/DashboardPane.php | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 library/Icinga/Web/Navigation/DashboardPane.php diff --git a/library/Icinga/Web/Navigation/DashboardPane.php b/library/Icinga/Web/Navigation/DashboardPane.php new file mode 100644 index 000000000..d1bfe2696 --- /dev/null +++ b/library/Icinga/Web/Navigation/DashboardPane.php @@ -0,0 +1,50 @@ +dashlets = $dashlets; + return $this; + } + + /** + * Return this pane's dashlets + * + * @return array + */ + public function getDashlets() + { + return $this->dashlets ?: array(); + } + + /** + * {@inheritdoc} + */ + public function init() + { + $this->setUrl(Url::fromPath('dashboard', array('pane' => $this->getName()))); + } +}