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
path: root/core/Menu
diff options
context:
space:
mode:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-03-10 06:18:40 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-03-10 06:18:40 +0300
commit8e37ebbc15711796990bcf6c9a30da17386ba93b (patch)
tree8dc4fe53a0f3add1b17235860add87497edb5f77 /core/Menu
parentbc191c1992192e2901b17b855d55ceb2492958e6 (diff)
Remove deprecated MenuTop::addEntry() and MenuTop::removeEntry()
Diffstat (limited to 'core/Menu')
-rw-r--r--core/Menu/MenuTop.php31
1 files changed, 0 insertions, 31 deletions
diff --git a/core/Menu/MenuTop.php b/core/Menu/MenuTop.php
index 55c09c57af..87ccb3c5f8 100644
--- a/core/Menu/MenuTop.php
+++ b/core/Menu/MenuTop.php
@@ -32,37 +32,6 @@ use Piwik\Piwik;
class MenuTop extends MenuAbstract
{
/**
- * Adds a new entry to the TopMenu.
- *
- * @param string $topMenuName The menu item name. Can be a translation token.
- * @param string|array $url The URL the admin menu entry should link to, or an array of query parameters
- * that can be used to build the URL. If `$isHTML` is true, this can be a string with
- * HTML that is simply embedded.
- * @param boolean $displayedForCurrentUser Whether this menu entry should be displayed for the
- * current user. If false, the entry will not be added.
- * @param int $order The order hint.
- * @param bool $isHTML Whether `$url` is an HTML string or a URL that will be rendered as a link.
- * @param bool|string $tooltip Optional tooltip to display.
- * @deprecated since version 2.4.0. See {@link Piwik\Plugin\Menu} for new implementation.
- */
- public static function addEntry($topMenuName, $url, $displayedForCurrentUser = true, $order = 10, $isHTML = false, $tooltip = false)
- {
- if ($isHTML) {
- MenuTop::getInstance()->addHtml($topMenuName, $url, $displayedForCurrentUser, $order, $tooltip);
- } else {
- MenuTop::getInstance()->add($topMenuName, null, $url, $displayedForCurrentUser, $order, $tooltip);
- }
- }
-
- /**
- * @deprecated since version 2.4.0. See {@link Piwik\Plugin\Menu} for new implementation.
- */
- public static function removeEntry($menuName, $subMenuName = false)
- {
- MenuTop::getInstance()->remove($menuName, $subMenuName);
- }
-
- /**
* Directly adds a menu entry containing html.
*
* @param string $menuName