TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Form\Controller\FormController Class Reference
Inheritance diagram for TYPO3\CMS\Form\Controller\FormController:
tx_form_Controller_Form

Public Member Functions

 initialize (array $typoscript)
 
 execute ()
 

Protected Member Functions

 showForm ()
 
 showConfirmation ()
 

Protected Attributes

 $typoscript = array()
 
 $typoscriptFactory
 
 $localizationHandler
 
 $requestHandler
 
 $layoutHandler
 
 $validate
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Main controller for Forms. All requests come through this class and are routed to the model and view layers for processing.

Author
Patrick Broens patri.nosp@m.ck@p.nosp@m.atric.nosp@m.kbro.nosp@m.ens.n.nosp@m.l

Definition at line 23 of file FormController.php.

Member Function Documentation

◆ execute()

TYPO3\CMS\Form\Controller\FormController::execute ( )

Build the models and views and renders the output from the views

Returns
string HTML Output

Definition at line 125 of file FormController.php.

References TYPO3\CMS\Form\Controller\FormController\showConfirmation(), and TYPO3\CMS\Form\Controller\FormController\showForm().

Referenced by TYPO3\CMS\Form\Controller\FormController\initialize().

◆ initialize()

TYPO3\CMS\Form\Controller\FormController::initialize ( array  $typoscript)

◆ showConfirmation()

TYPO3\CMS\Form\Controller\FormController::showConfirmation ( )
protected

Check if the confirmation message needs to be displayed

This is TRUE when data has been submitted, the validation rules are valid, the confirmation screen has been configured in TypoScript and the confirmation screen has not been submitted

Returns
boolean TRUE when confirmation screen needs to be shown

Definition at line 186 of file FormController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Referenced by TYPO3\CMS\Form\Controller\FormController\execute().

◆ showForm()

TYPO3\CMS\Form\Controller\FormController::showForm ( )
protected

Check if the form needs to be displayed

This is TRUE when nothing has been submitted, when data has been submitted but the validation rules do not fit or when the user returns from the confirmation screen.

Returns
boolean TRUE when form needs to be shown

Definition at line 146 of file FormController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Referenced by TYPO3\CMS\Form\Controller\FormController\execute().

Member Data Documentation

◆ $layoutHandler

TYPO3\CMS\Form\Controller\FormController::$layoutHandler
protected

Definition at line 50 of file FormController.php.

◆ $localizationHandler

TYPO3\CMS\Form\Controller\FormController::$localizationHandler
protected

Definition at line 40 of file FormController.php.

◆ $requestHandler

TYPO3\CMS\Form\Controller\FormController::$requestHandler
protected

Definition at line 45 of file FormController.php.

◆ $typoscript

TYPO3\CMS\Form\Controller\FormController::$typoscript = array()
protected

◆ $typoscriptFactory

TYPO3\CMS\Form\Controller\FormController::$typoscriptFactory
protected

Definition at line 35 of file FormController.php.

◆ $validate

TYPO3\CMS\Form\Controller\FormController::$validate
protected

Definition at line 55 of file FormController.php.