SchedulerTaskPersistenceValidator

Read onlyYes
FinalYes

DataHandler hook to validate incoming task parameters and execution_details when creating or updating a task.

Internal

This is an internal hook implementation and is not considered part of the Public TYPO3 API.

Attributes
#[Autoconfigure]
$public: true

Table of Contents

Methods

__construct()  : mixed
processDatamap_preProcessFieldArray()  : void
If the task is not valid, this hook will create an error log message AND make the incomingFieldArray a non-array (e.g. false) to skip saving this record.
addErrorMessage()  : void
convertErrorMessagesToDataHandlerLog()  : void
getLanguageService()  : LanguageService
getTimestampFromDateString()  : int
Convert input to DateTime and retrieve timestamp.
isSubmittedTaskDataValid()  : bool

Methods

processDatamap_preProcessFieldArray()

If the task is not valid, this hook will create an error log message AND make the incomingFieldArray a non-array (e.g. false) to skip saving this record.

public processDatamap_preProcessFieldArray(mixed &$incomingFieldArray, mixed $table, mixed $id, DataHandler $dataHandler) : void
Parameters
$incomingFieldArray : mixed
$table : mixed
$id : mixed
$dataHandler : DataHandler

addErrorMessage()

protected addErrorMessage(DataHandler $dataHandler, string|int $taskId, string $message, mixed ...$args) : void
Parameters
$dataHandler : DataHandler
$taskId : string|int
$message : string
$args : mixed

convertErrorMessagesToDataHandlerLog()

protected convertErrorMessagesToDataHandlerLog(DataHandler $dataHandler, string|int $taskId) : void
Parameters
$dataHandler : DataHandler
$taskId : string|int

getTimestampFromDateString()

Convert input to DateTime and retrieve timestamp.

protected getTimestampFromDateString(int|string $input) : int
Parameters
$input : int|string
Tags
throws
InvalidDateException
Return values
int

isSubmittedTaskDataValid()

protected isSubmittedTaskDataValid(DataHandler $dataHandler, string|int $taskId, array<string|int, mixed> $parsedBody, string $taskType) : bool
Parameters
$dataHandler : DataHandler
$taskId : string|int
$parsedBody : array<string|int, mixed>
$taskType : string
Return values
bool

        
On this page

Search results