‪TYPO3CMS  ‪main
TYPO3\CMS\Reactions\Reaction\CreateRecordReaction Class Reference
Inheritance diagram for TYPO3\CMS\Reactions\Reaction\CreateRecordReaction:
TYPO3\CMS\Reactions\Reaction\ReactionInterface

Public Member Functions

 __construct (private readonly ResponseFactoryInterface $responseFactory, private readonly StreamFactoryInterface $streamFactory,)
 
 react (ServerRequestInterface $request, array $payload, ReactionInstruction $reaction)
 
 replacePlaceHolders (mixed $value, array $payload)
 

Static Public Member Functions

static getType ()
 
static getDescription ()
 
static getIconIdentifier ()
 

Protected Member Functions

 buildResponseFromDataHandler (DataHandler $dataHandler, int $successCode=200)
 
 jsonResponse (array $data, int $statusCode=200)
 

Private Member Functions

 getBackendUser ()
 

Detailed Description

A reaction that creates a database record based on the payload within a request.

This is a specific reaction implementation and is not considered part of the Public TYPO3 API.

Definition at line 38 of file CreateRecordReaction.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Reactions\Reaction\CreateRecordReaction::__construct ( private readonly ResponseFactoryInterface  $responseFactory,
private readonly StreamFactoryInterface  $streamFactory 
)

Definition at line 40 of file CreateRecordReaction.php.

Member Function Documentation

◆ buildResponseFromDataHandler()

TYPO3\CMS\Reactions\Reaction\CreateRecordReaction::buildResponseFromDataHandler ( DataHandler  $dataHandler,
int  $successCode = 200 
)
protected

◆ getBackendUser()

TYPO3\CMS\Reactions\Reaction\CreateRecordReaction::getBackendUser ( )
private

◆ getDescription()

static TYPO3\CMS\Reactions\Reaction\CreateRecordReaction::getDescription ( )
static

A meaningful description for the reaction

Implements TYPO3\CMS\Reactions\Reaction\ReactionInterface.

Definition at line 50 of file CreateRecordReaction.php.

◆ getIconIdentifier()

static TYPO3\CMS\Reactions\Reaction\CreateRecordReaction::getIconIdentifier ( )
static

An icon identifier for the reaction

Implements TYPO3\CMS\Reactions\Reaction\ReactionInterface.

Definition at line 55 of file CreateRecordReaction.php.

◆ getType()

static TYPO3\CMS\Reactions\Reaction\CreateRecordReaction::getType ( )
static

◆ jsonResponse()

TYPO3\CMS\Reactions\Reaction\CreateRecordReaction::jsonResponse ( array  $data,
int  $statusCode = 200 
)
protected

◆ react()

◆ replacePlaceHolders()

TYPO3\CMS\Reactions\Reaction\CreateRecordReaction::replacePlaceHolders ( mixed  $value,
array  $payload 
)