maniaControl = $maniaControl; $this->addAdminMenuItem(); // Register for page answer $this->maniaControl->manialinkManager->registerManialinkPageAnswerListener(self::ACTION_CONFIG, $this, 'handlePageAnswer'); } /** * Handle PageAnswer callback * * @param array $callback * @param Player $player */ public function handlePageAnswer(array $callback, Player $player) { } /** * Add menu item to the admin menu */ private function addAdminMenuItem() { $itemQuad = new Quad(); $itemQuad->setStyles('Icons128x32_1', 'Settings'); $itemQuad->setAction(self::ACTION_CONFIG); $this->maniaControl->adminMenu->addMenuItem($itemQuad, 5); } } ?>