Execute the action.

@param ManialinkInterface $manialink
@param                    $login
@param                    $answerValues
8979
public function execute(ManialinkInterface $manialink, $login, $answerValues)
    {
        call_user_func_array($this->callable, [$manialink, $login, $answerValues, $this->args]);
    }
785112
public function goToLastPage(ManialinkInterface $manialink, $login = null, $entries = [])
    {
        $this->updateDataCollection($entries);
        $this->changePage($this->dataCollection->getLastPageNumber());
    }
891439
protected function redirect(
        UriInterface $uri,
        int $status = 302,
        bool $absolute = true
    ): ResponseInterface{
        throw new \LogicException("未実装");
    }
693179
public static function delete_linked_login($linkedloginid) {
        $login = new linked_login($linkedloginid);
        $userid = $login->get('userid');

        if (\core\session\manager::is_loggedinas()) {
            throw new moodle_exception('notwhileloggedinas', 'auth_oauth2');
        }

        $context = context_user::instance($userid);
        require_capability('auth/oauth2:managelinkedlogins', $context);

        $login->delete();
    }
1119367
public function loadForPlayers($mapUid, $nbLaps, $logins)
    {
        $logins = array_diff($logins, array_keys($this->recordsPerPlayer));

        if (!empty($logins)) {
            $records = $this->recordQueryBuilder->getPlayerMapRecords($mapUid, $nbLaps, $logins);

            foreach ($records as $record) {
                $this->recordsPerPlayer[$record->getPlayer()->getLogin()] = $record;
            }
        }
    }
1281132
public function onMapRatingsChanged($login, $score, $ratings)
    {
        $this->widget->setMapRatings($ratings);
        $this->widget->update($this->players);
    }
1285640
private function callAction($actionReader, $apiRequest, $action, $args)
    {
        $actionExecutor = new ActionExecutor($actionReader);

        /** @var ActionResponseModel $actionResponse */
        $actionResponse = $actionExecutor->execute($apiRequest, $action, $args);

        $ack = new AckModel();

        $class = '';
        if (is_object($actionResponse->getResponse())) {
            $class = get_class($actionResponse->getResponse());
        }

        $ack
            ->setPkgUuid($actionResponse->getPkgUuid())
            ->setSuccess(true)
            ->setServerCode(200)
            ->setLocation($apiRequest->getPath())
            ->setLocationParams($actionResponse->getParams())
            ->setRequestArgs($actionResponse->getArgs())
            ->setPayloadClass($class)
            ->setPayload($actionResponse->getResponse());

        return $ack;
    }
278533
public function handle(Login $event)
    {
        $model = snake_case(class_basename($event->user));
        $data = [
            'ip'       => request()->ip(),
            'ua'       => request()->header('User-Agent'),
            'remember' => $event->remember,
        ];
        $event->user->log("{$model}.login", $data);
    }
214691
public function execute()
    {
        $redirectUrl = $this->getUrl('adminhtml/system_config/edit', ['section' => 'connector_developer_settings']);

        $result = $this->contact->deleteContactIds();

        $this->messageManager->addSuccessMessage('Contact id\'s reseted ' . $result);

        $this->_redirect($redirectUrl);
    }
1202625
function disconnectFakePlayer($login, $multicall = false)
    {
        if (!is_string($login)) {
            throw new InvalidArgumentException('login = ' . print_r($login, true));
        }

        return $this->execute(ucfirst(__FUNCTION__), array($login), $multicall);
    }
1255091
public function callbackDescription(ManialinkInterface $manialink, $login, $params, $arguments)
    {
        $chatCommands = $this->chatCommands->getChatCommands();
        $this->windowHelpDetailsFactory->setCurrentCommand($chatCommands[$arguments['command']]);

        $this->windowHelpDetailsFactory->create($login);
    }
744509
public function execute(Arguments $args, ConsoleIo $io)
    {
        try {
            //Will trigger events provided by `LinkScannerCommandEventListener`
            $this->LinkScanner->getEventManager()->on(new LinkScannerCommandEventListener($args, $io));

            if ($args->getOption('follow-redirects')) {
                $this->LinkScanner->setConfig('followRedirects', true);
            }
            if ($args->getOption('force')) {
                $this->LinkScanner->setConfig('lockFile', false);
            }
            if ($args->hasOption('full-base-url')) {
                $this->LinkScanner->setConfig('fullBaseUrl', $args->getOption('full-base-url'));
            }
            if ($args->hasOption('max-depth')) {
                $this->LinkScanner->setConfig('maxDepth', $args->getOption('max-depth'));
            }
            if ($args->getOption('no-cache')) {
                $this->LinkScanner->setConfig('cache', false);
            }
            if ($args->getOption('no-external-links')) {
                $this->LinkScanner->setConfig('externalLinks', false);
            }
            if ($args->hasOption('timeout')) {
                $this->LinkScanner->Client->setConfig('timeout', $args->getOption('timeout'));
            }

            $this->LinkScanner->scan();

            if ($args->getOption('export-with-filename') || $args->getOption('export')) {
                $this->LinkScanner->export($args->getOption('export-with-filename'));
            }
        } catch (Exception $e) {
            $io->error($e->getMessage());
            $this->abort();
        }

        return null;
    }
172297
private void handleSelfLink(EntityBuilder builder, String resolvedUri) {
        if (StringUtils.isBlank(resolvedUri)) {
            return;
        }
        Link link = LinkBuilder.newInstance().setRelationship(Link.RELATIONSHIP_SELF).setHref(resolvedUri).build();
        builder.addLink(link);
    }
156333
protected function executeMultiCall()
    {
        try {
            $this->factory->getConnection()->executeMulticall();
        } catch (\Exception $e) {
            $this->logger->error("Couldn't deliver all manialinks : ".$e->getMessage(), ['exception' => $e]);
            $this->console->writeln('$F00ERROR - Couldn\'t deliver all manialinks : '.$e->getMessage());
        }
    }
129941
public function execute()
    {
        $logFile = $this->getRequest()->getParam('log');
        switch ($logFile) {
            case "connector":
                $header = 'Marketing Automation Log';
                break;
            case "system":
                $header = 'Magento System Log';
                break;
            case "exception":
                $header = 'Magento Exception Log';
                break;
            case "debug":
                $header = 'Magento Debug Log';
                break;
            default:
                $header = 'Marketing Automation Log';
        }
        $content = nl2br($this->escaper->escapeHtml($this->file->getLogFileContent($logFile)));
        $response = [
            'content' => $content,
            'header' => $header
        ];
        $this->getResponse()->representJson($this->jsonHelper->jsonEncode($response));
    }
4166
public function callbackItemClick(ManialinkInterface $manialink, $login, $params, $args)
    {
        $this->menuContentFactory->create($login);

        /** @var ItemInterface $item */
        $item = $args['item'];
        $item->execute($this->menuContentFactory, $manialink, $login, $params, $args);
    }
754815
protected function execute(
        \Symfony\Component\Console\Input\InputInterface $input,
        \Symfony\Component\Console\Output\OutputInterface $output
    ) {
        /* save console output locally (command context) */
        $this->out = $output;
        $this->logInfo("Command '" . $this->getName() . "' is started.");
        $this->conn->beginTransaction();
        try {
            $this->checkAreaCode();
            /* all children must implement 'process' method */
            $this->process($input);
            $this->conn->commit();
        } catch (\Throwable $e) {
            $this->logError("Command '" . $this->getName() . "' failed. Reason: " . $e->getMessage());
            $this->conn->rollBack();
        }
        $this->logInfo("Command '" . $this->getName() . "' is completed.");
    }