2 namespace TYPO3\CMS\Install\Controller\Action
;
5 * This file is part of the TYPO3 CMS project.
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
14 * The TYPO3 project - inspiring people to share!
18 * General action interface
20 interface ActionInterface
25 * @return string Rendered content
27 public function handle();
30 * Set form protection token
32 * @param string $token Form protection token
35 public function setToken($token);
38 * Set controller, Either string 'step', 'tool' or 'common'
40 * @param string $controller Controller name
43 public function setController($controller);
46 * Set action name. This is usually similar to the class name,
47 * only for loginForm, the action is login
49 * @param string $action Name of target action for forms
52 public function setAction($action);
57 * @param array $postValues List of values submitted via POST
60 public function setPostValues(array $postValues);
63 * Set the last error array as returned by error_get_last()
65 * @param array $lastError
67 public function setLastError(array $lastError);
70 * Status messages from controller
72 * @param array<\TYPO3\CMS\Install\Status\StatusInterface> $messages
74 public function setMessages(array $messages = array());