TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
FrontendController Class Reference
Inheritance diagram for FrontendController:
ActionController AbstractController ControllerInterface

Public Member Functions

 injectSessionUtility (\TYPO3\CMS\Form\Utility\SessionUtility $sessionUtility)
 
 showAction (ValidationElement $incomingData=null)
 
 confirmationAction (ValidationElement $model)
 
 dispatchConfirmationButtonClickAction (ValidationElement $model)
 
 afterProcessAction ($postProcessorContent)
 
- Public Member Functions inherited from ActionController
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 injectCacheService (\TYPO3\CMS\Extbase\Service\CacheService $cacheService)
 
 injectMvcPropertyMappingConfigurationService (\TYPO3\CMS\Extbase\Mvc\Controller\MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService)
 
 processRequest (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request,\TYPO3\CMS\Extbase\Mvc\ResponseInterface $response)
 
- Public Member Functions inherited from AbstractController
 injectSignalSlotDispatcher (\TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher)
 
 injectValidatorResolver (\TYPO3\CMS\Extbase\Validation\ValidatorResolver $validatorResolver)
 
 getControllerContext ()
 
 __construct ()
 
 injectConfigurationManager (ConfigurationManagerInterface $configurationManager)
 
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 addFlashMessage ($messageBody, $messageTitle= '', $severity=\TYPO3\CMS\Core\Messaging\AbstractMessage::OK, $storeInSession=true)
 
 canProcessRequest (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request)
 
 processRequest (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request,\TYPO3\CMS\Extbase\Mvc\ResponseInterface $response)
 
 forward ($actionName, $controllerName=null, $extensionName=null, array $arguments=null)
 
 throwStatus ($statusCode, $statusMessage=null, $content=null)
 

Protected Member Functions

 initializeAction ()
 
 initializeShowAction ()
 
 initializeConfirmationAction ()
 
 initializeProcessAction ()
 
 buildControllerContext ()
 
 skipForeignFormProcessing ()
 
 prepareValidations ()
 
- Protected Member Functions inherited from ActionController
 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

 $formBuilder
 
 $validationBuilder
 
 $sessionUtility
 
 $formUtility
 
 $typoscript = array()
 
 $skipValidation = false
 
 $controllerContext
 
 $configuration
 
- Protected Attributes inherited from ActionController
 $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
 

Additional Inherited Members

- Static Public Member Functions inherited from ActionController
static getActionMethodParameters ($objectManager)
 

Detailed Description

The form wizard controller

Definition at line 29 of file FrontendController.php.

Member Function Documentation

afterProcessAction (   $postProcessorContent)

action after process

Parameters
string$postProcessorContent
Returns
void

Definition at line 270 of file FrontendController.php.

buildControllerContext ( )
protected

Builds the controller context by extending the Extbase context with custom additions.

Returns
ControllerContext

Definition at line 161 of file FrontendController.php.

References FrontendController\$controllerContext, and ControllerContext\extend().

confirmationAction ( ValidationElement  $model)

Handles confirmation action, presenting the user submitted data again for final confirmation.

Parameters
\TYPO3\CMS\Form\Domain\Model\ValidationElement$model
Returns
void

Definition at line 192 of file FrontendController.php.

References AbstractController\forward(), ValidationElement\getIncomingFields(), FrontendController\skipForeignFormProcessing(), and LocalizationUtility\translate().

dispatchConfirmationButtonClickAction ( ValidationElement  $model)

action dispatchConfirmationButtonClick

Parameters
\TYPO3\CMS\Form\Domain\Model\ValidationElement$model
Returns
void

Definition at line 220 of file FrontendController.php.

References AbstractController\forward(), and FrontendController\skipForeignFormProcessing().

initializeAction ( )
protected

initialize action

Returns
void

Definition at line 89 of file FrontendController.php.

References Configuration\create().

initializeConfirmationAction ( )
protected

initialize the confirmation action

Returns
void

Definition at line 140 of file FrontendController.php.

References FrontendController\prepareValidations().

initializeProcessAction ( )
protected

initialize the process action

Returns
void

Definition at line 150 of file FrontendController.php.

References FrontendController\prepareValidations().

initializeShowAction ( )
protected

initialize show action

Returns
void

Definition at line 121 of file FrontendController.php.

injectSessionUtility ( \TYPO3\CMS\Form\Utility\SessionUtility  $sessionUtility)
Parameters
\TYPO3\CMS\Form\Utility\SessionUtility$sessionUtility
Returns
void

Definition at line 79 of file FrontendController.php.

References FrontendController\$sessionUtility.

prepareValidations ( )
protected

If the current form should be validated then set the dynamic validation

Returns
void

Definition at line 302 of file FrontendController.php.

Referenced by FrontendController\initializeConfirmationAction(), and FrontendController\initializeProcessAction().

showAction ( ValidationElement  $incomingData = null)

Handles show action, presenting the actual form.

Parameters
\TYPO3\CMS\Form\Domain\Model\ValidationElement$incomingData$incomingData
Returns
void

Definition at line 176 of file FrontendController.php.

skipForeignFormProcessing ( )
protected

Skip the processing of foreign forms. If there is more than one form on a page we have to be sure that only the submitted form will be processed. On data submission, the extbase action "confirmation" or "process" is called. The detection which form is submitted is done by the form prefix. All forms which do not have any submitted data are skipped and forwarded to the show action.

Returns
void

Definition at line 286 of file FrontendController.php.

References AbstractController\forward().

Referenced by FrontendController\confirmationAction(), and FrontendController\dispatchConfirmationButtonClickAction().

Member Data Documentation

$configuration
protected

Definition at line 73 of file FrontendController.php.

$controllerContext
protected

Definition at line 68 of file FrontendController.php.

Referenced by FrontendController\buildControllerContext().

$formBuilder
protected

Definition at line 34 of file FrontendController.php.

$formUtility
protected

Definition at line 49 of file FrontendController.php.

$sessionUtility
protected

Definition at line 44 of file FrontendController.php.

Referenced by FrontendController\injectSessionUtility().

$skipValidation = false
protected

Definition at line 63 of file FrontendController.php.

$typoscript = array()
protected

Definition at line 56 of file FrontendController.php.

$validationBuilder
protected

Definition at line 39 of file FrontendController.php.