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/MenuAdmin.php')
-rw-r--r--core/Menu/MenuAdmin.php65
1 files changed, 65 insertions, 0 deletions
diff --git a/core/Menu/MenuAdmin.php b/core/Menu/MenuAdmin.php
index 106420b712..ad4c6c4108 100644
--- a/core/Menu/MenuAdmin.php
+++ b/core/Menu/MenuAdmin.php
@@ -49,6 +49,71 @@ class MenuAdmin extends MenuAbstract
}
/**
+ * See {@link add()}. Adds a new menu item to the development section.
+ * @param string $menuName
+ * @param array $url
+ * @param int $order
+ * @param bool $tooltip
+ * @api
+ */
+ public function addDevelopmentItem($menuName, $url, $order = 50, $tooltip = false)
+ {
+ $this->add('CoreAdminHome_MenuDevelopment', $menuName, $url, true, $order, $tooltip);
+ }
+
+ /**
+ * See {@link add()}. Adds a new menu item to the development section.
+ * @param string $menuName
+ * @param array $url
+ * @param int $order
+ * @param bool $tooltip
+ * @api
+ */
+ public function addDiagnosticItem($menuName, $url, $order = 50, $tooltip = false)
+ {
+ $this->add('CoreAdminHome_MenuDiagnostic', $menuName, $url, true, $order, $tooltip);
+ }
+
+ /**
+ * See {@link add()}. Adds a new menu item to the development section.
+ * @param string $menuName
+ * @param array $url
+ * @param int $order
+ * @param bool $tooltip
+ * @api
+ */
+ public function addPlatformItem($menuName, $url, $order = 50, $tooltip = false)
+ {
+ $this->add('CorePluginsAdmin_MenuPlatform', $menuName, $url, true, $order, $tooltip);
+ }
+
+ /**
+ * See {@link add()}. Adds a new menu item to the development section.
+ * @param string $menuName
+ * @param array $url
+ * @param int $order
+ * @param bool $tooltip
+ * @api
+ */
+ public function addSettingsItem($menuName, $url, $order = 50, $tooltip = false)
+ {
+ $this->add('General_Settings', $menuName, $url, true, $order, $tooltip);
+ }
+
+ /**
+ * See {@link add()}. Adds a new menu item to the development section.
+ * @param string $menuName
+ * @param array $url
+ * @param int $order
+ * @param bool $tooltip
+ * @api
+ */
+ public function addManageItem($menuName, $url, $order = 50, $tooltip = false)
+ {
+ $this->add('CoreAdminHome_MenuManage', $menuName, $url, true, $order, $tooltip);
+ }
+
+ /**
* Triggers the Menu.MenuAdmin.addItems hook and returns the admin menu.
*
* @return Array