Blank.php 575 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Giancarlo
  5. * Date: 11/10/2018
  6. * Time: 14:57
  7. */
  8. namespace Modules\Blank;
  9. use OpenMind\System\PluginStrategy;
  10. class Blank extends PluginStrategy
  11. {
  12. private const INVENTORY_ROLE_ID = 2;
  13. /**
  14. * Registers the Inventory Monitor menu entry protected by its role ID.
  15. *
  16. * @return void
  17. * @side-effects Adds the role-filtered entry to the global application menu.
  18. */
  19. public function __construct()
  20. {
  21. $this->AddMenuItem('Inventory Monitor', [
  22. 'url' => '/inventory',
  23. 'permissionId' => self::INVENTORY_ROLE_ID,
  24. ]);
  25. }
  26. }