‪TYPO3CMS  ‪main
TYPO3\CMS\Form\Domain\Finishers\FinisherContext Class Reference

Public Member Functions

 __construct (FormRuntime $formRuntime, Request $request)
 
 cancel ()
 
 isCancelled ()
 
 getFormRuntime ()
 
 getFormValues ()
 
 getFinisherVariableProvider ()
 
 getRequest ()
 

Protected Attributes

bool $cancelled = false
 
FormRuntime $formRuntime
 
FinisherVariableProvider $finisherVariableProvider
 

Private Attributes

Request $request
 

Detailed Description

The context that is passed to each finisher when executed. It acts like an EventObject that is able to stop propagation.

Scope: frontend This class is NOT meant to be sub classed by developers.

Definition at line 36 of file FinisherContext.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Form\Domain\Finishers\FinisherContext::__construct ( FormRuntime  $formRuntime,
Request  $request 
)

Member Function Documentation

◆ cancel()

TYPO3\CMS\Form\Domain\Finishers\FinisherContext::cancel ( )

Cancels the finisher invocation after the current finisher

Definition at line 69 of file FinisherContext.php.

◆ getFinisherVariableProvider()

TYPO3\CMS\Form\Domain\Finishers\FinisherContext::getFinisherVariableProvider ( )

◆ getFormRuntime()

TYPO3\CMS\Form\Domain\Finishers\FinisherContext::getFormRuntime ( )

The Form Runtime that is associated with the current finisher

Definition at line 87 of file FinisherContext.php.

References TYPO3\CMS\Form\Domain\Finishers\FinisherContext\$formRuntime.

◆ getFormValues()

TYPO3\CMS\Form\Domain\Finishers\FinisherContext::getFormValues ( )

The values of the submitted form (after validation and property mapping)

Definition at line 95 of file FinisherContext.php.

◆ getRequest()

TYPO3\CMS\Form\Domain\Finishers\FinisherContext::getRequest ( )

◆ isCancelled()

TYPO3\CMS\Form\Domain\Finishers\FinisherContext::isCancelled ( )

TRUE if no further finishers should be invoked. Defaults to FALSE

Definition at line 79 of file FinisherContext.php.

References TYPO3\CMS\Form\Domain\Finishers\FinisherContext\$cancelled.

Member Data Documentation

◆ $cancelled

bool TYPO3\CMS\Form\Domain\Finishers\FinisherContext::$cancelled = false
protected

If TRUE further finishers won't be invoked

Definition at line 42 of file FinisherContext.php.

Referenced by TYPO3\CMS\Form\Domain\Finishers\FinisherContext\isCancelled().

◆ $finisherVariableProvider

FinisherVariableProvider TYPO3\CMS\Form\Domain\Finishers\FinisherContext::$finisherVariableProvider
protected

The assigned controller context which might be needed by the finisher.

Definition at line 52 of file FinisherContext.php.

Referenced by TYPO3\CMS\Form\Domain\Finishers\FinisherContext\getFinisherVariableProvider().

◆ $formRuntime

FormRuntime TYPO3\CMS\Form\Domain\Finishers\FinisherContext::$formRuntime
protected

◆ $request

Request TYPO3\CMS\Form\Domain\Finishers\FinisherContext::$request
private