You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
460 B

5 years ago
5 years ago
5 years ago
  1. <?php
  2. namespace Wms\Menu\Helpers;
  3. abstract class Menu
  4. {
  5. public static $minimizedCurrentMainMenu = false;
  6. public static function setMainActive($sideMenuItemCode = null)
  7. {
  8. \BackendMenu::setContext('Wms.Menu', 'main', $sideMenuItemCode);
  9. }
  10. public static function setSubnavActive($mainMenuItemCode, $sideMenuItemCode = null)
  11. {
  12. \BackendMenu::setContext('Wms.Menu', 'main', "$mainMenuItemCode|$sideMenuItemCode");
  13. }
  14. }