ExecuteSchedulableCommandAdditionalFieldProvider

class \TYPO3\CMS\Scheduler\Task\ExecuteSchedulableCommandAdditionalFieldProvider

Implements
AdditionalFieldProviderInterface

Table of Contents

Interfaces

AdditionalFieldProviderInterface
Interface for classes who want to provide additional fields when adding a task

Properties

$schedulableCommands  : Command[]
$task  : ExecuteSchedulableCommandTask|null

Methods

__construct()  : mixed
getAdditionalFields()  : array
Render additional information fields within the scheduler backend.
saveAdditionalFields()  : bool
Saves additional field values
validateAdditionalFields()  : bool
Validates additional selected fields
getArgumentDescription()  : string
Get the description of a command argument
getArgumentLabel()  : string
Get a human-readable label for a command argument
getCommandArgumentFields()  : array
Gets a set of fields covering arguments which can or must be used.
getCommandOptionFields()  : array
Gets a set of fields covering options which can or must be used.
getLanguageService()  : LanguageService
getOptionDescription()  : string
Get the description of a command option
getOptionLabel()  : string
Get a human-readable label for a command option
getSchedulableCommandsField()  : array
Gets a select field containing all possible schedulable commands
renderArgumentField()  : string
Renders a field for defining an argument's value
renderOptionField()  : array
Renders a field for defining an option's value
renderSelectField()  : string

Properties

$schedulableCommands

protected Command[] $schedulableCommands = []

Methods

getAdditionalFields()

Render additional information fields within the scheduler backend.

public getAdditionalFields(array &$txSchedulerPostData, ExecuteSchedulableCommandTask|null $task, SchedulerModuleController $schedulerModule) : array

Parameters

$txSchedulerPostData : array

Incoming tx_scheduler POST data

$task : ExecuteSchedulableCommandTask|null

When editing, reference to the current task. NULL when adding.

$schedulerModule : SchedulerModuleController

Reference to the calling object (BE module of the Scheduler)

Tags

see
AdditionalFieldProviderInterface::getAdditionalFields

Return values

array —

Additional fields

validateAdditionalFields()

Validates additional selected fields

public validateAdditionalFields(array &$submittedData, SchedulerModuleController $schedulerModule) : bool

Parameters

$submittedData : array

An array containing the data submitted by the add/edit task form

$schedulerModule : SchedulerModuleController

Reference to the scheduler backend module

Return values

bool —

TRUE if validation was ok (or selected class is not relevant), FALSE otherwise

getArgumentDescription()

Get the description of a command argument

protected getArgumentDescription(InputArgument $argument) : string

Parameters

$argument : InputArgument

Return values

string

getArgumentLabel()

Get a human-readable label for a command argument

protected getArgumentLabel(InputArgument $argument) : string

Parameters

$argument : InputArgument

Return values

string

getCommandArgumentFields()

Gets a set of fields covering arguments which can or must be used.

protected getCommandArgumentFields(InputDefinition $inputDefinition) : array

Also registers the default values of those fields with the Task, allowing them to be read upon execution.

Parameters

$inputDefinition : InputDefinition

Return values

array

getCommandOptionFields()

Gets a set of fields covering options which can or must be used.

protected getCommandOptionFields(InputDefinition $inputDefinition) : array

Also registers the default values of those fields with the Task, allowing them to be read upon execution.

Parameters

$inputDefinition : InputDefinition

Return values

array

getOptionDescription()

Get the description of a command option

protected getOptionDescription(InputOption $option) : string

Parameters

$option : InputOption

Return values

string

getOptionLabel()

Get a human-readable label for a command option

protected getOptionLabel(InputOption $option) : string

Parameters

$option : InputOption

Return values

string

getSchedulableCommandsField()

Gets a select field containing all possible schedulable commands

protected getSchedulableCommandsField(array $txSchedulerPostData) : array

Parameters

$txSchedulerPostData : array

Return values

array

renderArgumentField()

Renders a field for defining an argument's value

protected renderArgumentField(InputArgument $argument, string $currentValue) : string

Parameters

$argument : InputArgument
$currentValue : string

Return values

string

renderOptionField()

Renders a field for defining an option's value

protected renderOptionField(InputOption $option, bool $enabled, string $currentValue) : array

Parameters

$option : InputOption
$enabled : bool
$currentValue : string

Return values

array

renderSelectField()

protected renderSelectField(array $options, string $selectedOptionValue) : string

Parameters

$options : array
$selectedOptionValue : string

Return values

string
On this page