| 123456789101112131415161718192021222324252627282930 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Giancarlo
- * Date: 11/10/2018
- * Time: 14:57
- */
- namespace Modules\Blank;
- use OpenMind\System\PluginStrategy;
- class Blank extends PluginStrategy
- {
- private const INVENTORY_ROLE_ID = 2;
- /**
- * Registers the Inventory Monitor menu entry protected by its role ID.
- *
- * @return void
- * @side-effects Adds the role-filtered entry to the global application menu.
- */
- public function __construct()
- {
- $this->AddMenuItem('Inventory Monitor', [
- 'url' => '/inventory',
- 'permissionId' => self::INVENTORY_ROLE_ID,
- ]);
- }
- }
|