diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-10 05:58:18 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-10 05:59:47 +0300 |
commit | 680721dd29ee874b647b5fb8cd0953b6e3fbeb59 (patch) | |
tree | cf0311c5bcd1c05d387c78925767cd162ee71077 /core | |
parent | b72a957ae6ef08c4f934d7d2b906ee2112471211 (diff) |
Remove deprecated MenuAdmin::addEntry() and MenuAdmin::removeEntry()
Diffstat (limited to 'core')
-rw-r--r-- | core/Menu/MenuAdmin.php | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/core/Menu/MenuAdmin.php b/core/Menu/MenuAdmin.php index 5335091285..9c05734e5f 100644 --- a/core/Menu/MenuAdmin.php +++ b/core/Menu/MenuAdmin.php @@ -33,24 +33,6 @@ use Piwik\Piwik; class MenuAdmin extends MenuAbstract { /** - * Adds a new AdminMenu entry under the 'Settings' category. - * - * @param string $adminMenuName The name of the admin menu entry. 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. - * @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. - * @deprecated since version 2.4.0. See {@link Piwik\Plugin\Menu} for new implementation. - */ - public static function addEntry($adminMenuName, $url, $displayedForCurrentUser = true, $order = 20) - { - if ($displayedForCurrentUser) { - self::getInstance()->addItem('General_Settings', $adminMenuName, $url, $order); - } - } - - /** * See {@link add()}. Adds a new menu item to the development section of the admin menu. * @param string $menuName * @param array $url @@ -142,12 +124,4 @@ class MenuAdmin extends MenuAbstract return parent::getMenu(); } - - /** - * @deprecated since version 2.4.0. See {@link Piwik\Plugin\Menu} for new implementation. - */ - public static function removeEntry($menuName, $subMenuName = false) - { - MenuAdmin::getInstance()->remove($menuName, $subMenuName); - } } |