Skip to content
Extraits de code Groupes Projets
Valider 680721dd rédigé par Matthieu Napoli's avatar Matthieu Napoli
Parcourir les fichiers

Remove deprecated MenuAdmin::addEntry() and MenuAdmin::removeEntry()

parent b72a957a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -7,6 +7,7 @@ This is a changelog for Piwik platform developers. All changes for our HTTP API' ...@@ -7,6 +7,7 @@ This is a changelog for Piwik platform developers. All changes for our HTTP API'
### Breaking Changes ### Breaking Changes
* The deprecated method `Period::factory()` has been removed. Use `Period\Factory` instead. * The deprecated method `Period::factory()` has been removed. Use `Period\Factory` instead.
* The deprecated method `Config::getConfigSuperUserForBackwardCompatibility()` has been removed. * The deprecated method `Config::getConfigSuperUserForBackwardCompatibility()` has been removed.
* The deprecated methods `MenuAdmin::addEntry()` and `MenuAdmin::removeEntry()` have been removed. Use `Piwik\Plugin\Menu` instead.
## Piwik 2.11.0 ## Piwik 2.11.0
......
...@@ -32,24 +32,6 @@ use Piwik\Piwik; ...@@ -32,24 +32,6 @@ use Piwik\Piwik;
*/ */
class MenuAdmin extends MenuAbstract 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. * See {@link add()}. Adds a new menu item to the development section of the admin menu.
* @param string $menuName * @param string $menuName
...@@ -142,12 +124,4 @@ class MenuAdmin extends MenuAbstract ...@@ -142,12 +124,4 @@ class MenuAdmin extends MenuAbstract
return parent::getMenu(); 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);
}
} }
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter