TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Form\PostProcess\RedirectPostProcessor Class Reference
Inheritance diagram for TYPO3\CMS\Form\PostProcess\RedirectPostProcessor:
TYPO3\CMS\Form\PostProcess\PostProcessorInterface

Public Member Functions

 __construct (\TYPO3\CMS\Form\Domain\Model\Form $form, array $typoScript)
 
 process ()
 

Protected Member Functions

 setDestination ()
 
 render ()
 

Protected Attributes

 $form
 
 $typoScript
 
 $requestHandler
 
 $destination
 
 $dirtyHeaders = array()
 

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! The redirect post processor

Definition at line 19 of file RedirectPostProcessor.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Form\PostProcess\RedirectPostProcessor::__construct ( \TYPO3\CMS\Form\Domain\Model\Form  $form,
array  $typoScript 
)

Constructor

Parameters
\TYPO3\CMS\Form\Domain\Model\Form$formForm domain model
array$typoScriptPost processor TypoScript settings

Implements TYPO3\CMS\Form\PostProcess\PostProcessorInterface.

Definition at line 52 of file RedirectPostProcessor.php.

References TYPO3\CMS\Form\PostProcess\RedirectPostProcessor\$form, TYPO3\CMS\Form\PostProcess\RedirectPostProcessor\$typoScript, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Member Function Documentation

◆ process()

TYPO3\CMS\Form\PostProcess\RedirectPostProcessor::process ( )

The main method called by the post processor

Returns
string HTML message from this processor

Implements TYPO3\CMS\Form\PostProcess\PostProcessorInterface.

Definition at line 63 of file RedirectPostProcessor.php.

References TYPO3\CMS\Form\PostProcess\RedirectPostProcessor\render(), and TYPO3\CMS\Form\PostProcess\RedirectPostProcessor\setDestination().

◆ render()

TYPO3\CMS\Form\PostProcess\RedirectPostProcessor::render ( )
protected

Render the message after trying to send the mail

Returns
string HTML message from the mail view

Definition at line 86 of file RedirectPostProcessor.php.

References TYPO3\CMS\Core\Utility\HttpUtility\redirect().

Referenced by TYPO3\CMS\Form\PostProcess\RedirectPostProcessor\process().

◆ setDestination()

TYPO3\CMS\Form\PostProcess\RedirectPostProcessor::setDestination ( )
protected

Sets the redirect destination

Returns
void

Definition at line 73 of file RedirectPostProcessor.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Form\PostProcess\RedirectPostProcessor\process().

Member Data Documentation

◆ $destination

TYPO3\CMS\Form\PostProcess\RedirectPostProcessor::$destination
protected

Definition at line 39 of file RedirectPostProcessor.php.

◆ $dirtyHeaders

TYPO3\CMS\Form\PostProcess\RedirectPostProcessor::$dirtyHeaders = array()
protected

Definition at line 44 of file RedirectPostProcessor.php.

◆ $form

TYPO3\CMS\Form\PostProcess\RedirectPostProcessor::$form
protected

◆ $requestHandler

TYPO3\CMS\Form\PostProcess\RedirectPostProcessor::$requestHandler
protected

Definition at line 34 of file RedirectPostProcessor.php.

◆ $typoScript

TYPO3\CMS\Form\PostProcess\RedirectPostProcessor::$typoScript
protected