TYPO3
7.6
|
Static Public Member Functions | |
static | getActionMethodParameters ($objectManager) |
Protected Member Functions | |
initializeActionMethodArguments () | |
resolveActionMethodName () | |
emitBeforeCallActionMethodSignal (array $preparedArguments) | |
setViewConfiguration (ViewInterface $view) | |
getViewProperty ($extbaseFrameworkConfiguration, $setting) | |
resolveViewObjectName () | |
initializeView (ViewInterface $view) | |
initializeAction () | |
errorAction () | |
clearCacheOnError () | |
addErrorFlashMessage () | |
getErrorFlashMessage () | |
forwardToReferringRequest () | |
getFlattenedValidationErrorMessage () | |
Protected Member Functions inherited from AbstractController | |
redirect ($actionName, $controllerName=null, $extensionName=null, array $arguments=null, $pageUid=null, $delay=0, $statusCode=303) | |
redirectToUri ($uri, $delay=0, $statusCode=303) | |
addBaseUriIfNecessary ($uri) | |
Protected Attributes | |
$reflectionService | |
$cacheService | |
$view = null | |
$namespacesViewObjectNamePattern = '@vendor\@extension\View\@controller\@action@format' | |
$viewFormatToObjectNameMap = array() | |
$defaultViewObjectName = \TYPO3\CMS\Fluid\View\TemplateView::class | |
$actionMethodName = 'indexAction' | |
$errorMethodName = 'errorAction' | |
$mvcPropertyMappingConfigurationService | |
$request | |
$response | |
Protected Attributes inherited from AbstractController | |
$signalSlotDispatcher | |
$objectManager | |
$uriBuilder | |
$extensionName | |
$settings | |
$request | |
$response | |
$validatorResolver | |
$arguments | |
$supportedRequestTypes = array(\TYPO3\CMS\Extbase\Mvc\Request::class) | |
$controllerContext | |
$configurationManager | |
A multi action controller. This is by far the most common base class for Controllers.
Definition at line 30 of file extbase/Classes/Mvc/Controller/ActionController.php.
|
protected |
If an error occurred during this request, this adds a flash message describing the error to the flash message container.
Definition at line 556 of file extbase/Classes/Mvc/Controller/ActionController.php.
References AbstractController\addFlashMessage(), AbstractMessage\ERROR, and ActionController\getErrorFlashMessage().
Referenced by ActionController\errorAction().
|
protected |
Clear cache of current page on error. Needed because we want a re-evaluation of the data. Better would be just do delete the cache for the error action, but that is not possible right now.
Definition at line 539 of file extbase/Classes/Mvc/Controller/ActionController.php.
References $GLOBALS, and ConfigurationManagerInterface\CONFIGURATION_TYPE_FRAMEWORK.
Referenced by ActionController\errorAction().
|
protected |
Emits a signal before the current action is called
array | $preparedArguments |
Definition at line 327 of file extbase/Classes/Mvc/Controller/ActionController.php.
|
protected |
A special action which is called if the originally intended action could not be called, for example if the arguments were not valid.
The default implementation sets a flash message, request errors and forwards back to the originating action. This is suitable for most actions dealing with form input.
We clear the page cache by default on an error as well, as we need to make sure the data is re-evaluated when the user changes something.
Definition at line 524 of file extbase/Classes/Mvc/Controller/ActionController.php.
References ActionController\addErrorFlashMessage(), ActionController\clearCacheOnError(), ActionController\forwardToReferringRequest(), and ActionController\getFlattenedValidationErrorMessage().
|
protected |
If information on the request before the current request was sent, this method forwards back to the originating request. This effectively ends processing of the current request, so do not call this method before you have finished the necessary business logic!
StopActionException |
Definition at line 585 of file extbase/Classes/Mvc/Controller/ActionController.php.
References ActionController\$request, and AbstractController\forward().
Referenced by ActionController\errorAction().
|
static |
Returns a map of action method names and their parameters.
\TYPO3\CMS\Extbase\Object\ObjectManagerInterface | $objectManager |
Definition at line 621 of file extbase/Classes/Mvc/Controller/ActionController.php.
References AbstractController\$objectManager, and ActionController\$reflectionService.
|
protected |
A template method for displaying custom error flash messages, or to display no flash message at all on errors. Override this to customize the flash message in your action controller.
Definition at line 572 of file extbase/Classes/Mvc/Controller/ActionController.php.
Referenced by ActionController\addErrorFlashMessage().
|
protected |
Returns a string with a basic error message about validation failure. We may add all validation error messages to a log file in the future, but for security reasons (
Definition at line 608 of file extbase/Classes/Mvc/Controller/ActionController.php.
Referenced by ActionController\errorAction().
|
protected |
Handles the path resolving for *rootPath(s)
numerical arrays get ordered by key ascending
array | $extbaseFrameworkConfiguration | |
string | $setting | parameter name from TypoScript |
Definition at line 430 of file extbase/Classes/Mvc/Controller/ActionController.php.
References ArrayUtility\sortArrayWithIntegerKeys().
Referenced by ActionController\setViewConfiguration().
|
protected |
Initializes the controller before invoking an action method.
Override this method to solve tasks which all actions have in common.
Definition at line 507 of file extbase/Classes/Mvc/Controller/ActionController.php.
Referenced by ActionController\processRequest().
|
protected |
Implementation of the arguments initilization in the action controller: Automatically registers arguments of the current action
Don't override this method - use initializeAction() instead.
\TYPO3\CMS\Extbase\Mvc\Exception\InvalidArgumentTypeException |
Definition at line 189 of file extbase/Classes/Mvc/Controller/ActionController.php.
References elseif.
Referenced by ActionController\processRequest().
|
protected |
Initializes the view before invoking an action method.
Override this method to solve assign variables common for all actions or prepare the view in another way before the action is called.
ViewInterface | $view | The view to be initialized |
Definition at line 494 of file extbase/Classes/Mvc/Controller/ActionController.php.
Referenced by ActionController\processRequest().
injectCacheService | ( | \TYPO3\CMS\Extbase\Service\CacheService | $cacheService | ) |
\TYPO3\CMS\Extbase\Service\CacheService | $cacheService |
Definition at line 125 of file extbase/Classes/Mvc/Controller/ActionController.php.
References ActionController\$cacheService.
injectMvcPropertyMappingConfigurationService | ( | \TYPO3\CMS\Extbase\Mvc\Controller\MvcPropertyMappingConfigurationService | $mvcPropertyMappingConfigurationService | ) |
\TYPO3\CMS\Extbase\Mvc\Controller\MvcPropertyMappingConfigurationService | $mvcPropertyMappingConfigurationService |
Definition at line 133 of file extbase/Classes/Mvc/Controller/ActionController.php.
References ActionController\$mvcPropertyMappingConfigurationService.
injectReflectionService | ( | \TYPO3\CMS\Extbase\Reflection\ReflectionService | $reflectionService | ) |
\TYPO3\CMS\Extbase\Reflection\ReflectionService | $reflectionService |
Definition at line 117 of file extbase/Classes/Mvc/Controller/ActionController.php.
References ActionController\$reflectionService.
processRequest | ( | \TYPO3\CMS\Extbase\Mvc\RequestInterface | $request, |
\TYPO3\CMS\Extbase\Mvc\ResponseInterface | $response | ||
) |
Handles a request. The result output is returned by altering the given response.
\TYPO3\CMS\Extbase\Mvc\RequestInterface | $request | The request object |
\TYPO3\CMS\Extbase\Mvc\ResponseInterface | $response | The response, modified by this handler |
\TYPO3\CMS\Extbase\Mvc\Exception\UnsupportedRequestTypeException |
Implements ControllerInterface.
Definition at line 147 of file extbase/Classes/Mvc/Controller/ActionController.php.
References ActionController\$request, ActionController\$response, AbstractController\canProcessRequest(), ActionController\initializeAction(), ActionController\initializeActionMethodArguments(), ActionController\initializeView(), and ActionController\resolveActionMethodName().
|
protected |
Resolves and checks the current action method name
\TYPO3\CMS\Extbase\Mvc\Exception\NoSuchActionException | if the action specified in the request object does not exist (and if there's no default action either). |
Definition at line 256 of file extbase/Classes/Mvc/Controller/ActionController.php.
References ActionController\$actionMethodName.
Referenced by ActionController\processRequest().
|
protected |
Determines the fully qualified view object name.
Definition at line 450 of file extbase/Classes/Mvc/Controller/ActionController.php.
References ActionController\$namespacesViewObjectNamePattern.
|
protected |
ViewInterface | $view |
Definition at line 379 of file extbase/Classes/Mvc/Controller/ActionController.php.
References ConfigurationManagerInterface\CONFIGURATION_TYPE_FRAMEWORK, and ActionController\getViewProperty().
|
protected |
Definition at line 82 of file extbase/Classes/Mvc/Controller/ActionController.php.
Referenced by ActionController\resolveActionMethodName().
|
protected |
Definition at line 40 of file extbase/Classes/Mvc/Controller/ActionController.php.
Referenced by ActionController\injectCacheService().
|
protected |
Definition at line 74 of file extbase/Classes/Mvc/Controller/ActionController.php.
|
protected |
Definition at line 90 of file extbase/Classes/Mvc/Controller/ActionController.php.
|
protected |
Definition at line 96 of file extbase/Classes/Mvc/Controller/ActionController.php.
Referenced by ActionController\injectMvcPropertyMappingConfigurationService().
|
protected |
Definition at line 54 of file extbase/Classes/Mvc/Controller/ActionController.php.
Referenced by ActionController\resolveViewObjectName().
|
protected |
Definition at line 35 of file extbase/Classes/Mvc/Controller/ActionController.php.
Referenced by ActionController\getActionMethodParameters(), and ActionController\injectReflectionService().
|
protected |
Definition at line 104 of file extbase/Classes/Mvc/Controller/ActionController.php.
Referenced by ActionController\forwardToReferringRequest(), ActionController\processRequest(), ReviewController\registerButtons(), and ViewModuleController\registerButtons().
|
protected |
Definition at line 112 of file extbase/Classes/Mvc/Controller/ActionController.php.
Referenced by LanguageController\activateLanguageAction(), LanguageController\deactivateLanguageAction(), ActionController\processRequest(), LanguageController\updateLanguageAction(), and LanguageController\updateTranslationAction().
|
protected |
Definition at line 48 of file extbase/Classes/Mvc/Controller/ActionController.php.
|
protected |
Definition at line 65 of file extbase/Classes/Mvc/Controller/ActionController.php.