TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Form\PostProcess\PostProcessor Class Reference
Inheritance diagram for TYPO3\CMS\Form\PostProcess\PostProcessor:
tx_form_System_Postprocessor

Public Member Functions

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

Protected Attributes

 $form
 
 $typoscriptFactory
 

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 post processor

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

Definition at line 22 of file PostProcessor.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Form\PostProcess\PostProcessor::__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

Definition at line 40 of file PostProcessor.php.

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

Member Function Documentation

◆ process()

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

The main method called by the controller

Iterates over the configured post processors and calls them with their own settings

Returns
string HTML messages from the called processors

Definition at line 54 of file PostProcessor.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\Core\TypoScript\TemplateService\sortedKeyList().

◆ sortTypoScriptKeyList()

TYPO3\CMS\Form\PostProcess\PostProcessor::sortTypoScriptKeyList ( )

Wrapper method for ::sortedKeyList (makes unit testing possible)

Returns
array
Deprecated:
in TYPO3 CMS 7, does not trigger deprecation log in 6.2

Definition at line 105 of file PostProcessor.php.

Member Data Documentation

◆ $form

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

◆ $typoscriptFactory

TYPO3\CMS\Form\PostProcess\PostProcessor::$typoscriptFactory
protected

Definition at line 32 of file PostProcessor.php.