Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Menu/Group.php')
-rw-r--r--core/Menu/Group.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/core/Menu/Group.php b/core/Menu/Group.php
new file mode 100644
index 0000000000..17e7c9bc5c
--- /dev/null
+++ b/core/Menu/Group.php
@@ -0,0 +1,31 @@
+<?php
+/**
+ * Piwik - free/libre analytics platform
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
+ *
+ */
+namespace Piwik\Menu;
+
+/**
+ * @ignore
+ */
+class Group
+{
+ private $items;
+
+ public function add($subTitleMenu, $url, $tooltip = false)
+ {
+ $this->items[] = array(
+ 'name' => $subTitleMenu,
+ 'url' => $url,
+ 'tooltip' => $tooltip
+ );;
+ }
+
+ public function getItems()
+ {
+ return $this->items;
+ }
+}