getMain(), $method ); } public function execute() { $user = $this->getUser(); if (!$user->isRegistered()) { $this->dieWithError('apierror-mustbeloggedin-generic', 'login-required'); } $sessionManager = SessionManager::getGlobalSession(); if ($sessionManager->exists(QuestsUtils::SESSION_KEY_QUEST_COMPLETE_NOTIFICATION)) { $notificationData = $sessionManager->get(QuestsUtils::SESSION_KEY_QUEST_COMPLETE_NOTIFICATION); $this->getResult()->addValue(['userquestsgetnotification'], 'notification', $notificationData); $sessionManager->remove(QuestsUtils::SESSION_KEY_QUEST_COMPLETE_NOTIFICATION); } else { $this->getResult()->addValue(['userquestsgetnotification'], 'notification', null); } } public function isInternal() { return true; } }