| 1 | <?php |
||
| 19 | class Menu implements StatusAwarePluginInterface, MatchDataListenerInterface |
||
| 20 | { |
||
| 21 | |||
| 22 | /** @var AdminGroups */ |
||
| 23 | protected $adminGroups; |
||
| 24 | |||
| 25 | /** @var MenuFactory */ |
||
| 26 | protected $menuGuiFactory; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Menu constructor. |
||
| 30 | * |
||
| 31 | * @param AdminGroups $adminGroups |
||
| 32 | * @param MenuFactory $menuGuiFactory |
||
| 33 | */ |
||
| 34 | public function __construct(AdminGroups $adminGroups, MenuFactory $menuGuiFactory) |
||
| 39 | |||
| 40 | |||
| 41 | /** |
||
| 42 | * Set the status of the plugin |
||
| 43 | * |
||
| 44 | * @param boolean $status |
||
| 45 | * |
||
| 46 | * @return $this |
||
| 47 | */ |
||
| 48 | public function setStatus($status) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Display a menu for each user group |
||
| 59 | */ |
||
| 60 | protected function displayMenu() |
||
| 67 | |||
| 68 | |||
| 69 | /** |
||
| 70 | * @inheritdoc |
||
| 71 | */ |
||
| 72 | public function onBeginMap(Map $map) |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @inheritdoc |
||
| 78 | */ |
||
| 79 | public function onEndMap(Map $map) |
||
| 82 | } |