ExecuteSchedulableCommandAdditionalFieldProvider implements AdditionalFieldProviderInterface
This class is a specific scheduler task implementation is not considered part of the Public TYPO3 API.
Table of Contents
Interfaces
- AdditionalFieldProviderInterface
- Interface for classes who want to provide additional fields when adding a task
Properties
- $schedulableCommands : array<string|int, Command>
- $task : ExecuteSchedulableCommandTask|null
Methods
- __construct() : mixed
- getAdditionalFields() : array<string|int, mixed>
- Render additional information fields within the scheduler backend.
- getLanguageService() : LanguageService
- saveAdditionalFields() : bool
- Saves additional field values
- validateAdditionalFields() : bool
- Validates additional selected fields
- getArgumentLabel() : string
- Get a human-readable label for a command argument
- getCommandArgumentFields() : array<string|int, mixed>
- Gets a set of fields covering arguments which can or must be used.
- getCommandDescriptionField() : array<string|int, mixed>
- Get description of selected command
- getCommandOptionFields() : array<string|int, mixed>
- Gets a set of fields covering options which can or must be used.
- getOptionLabel() : string
- Get a human-readable label for a command option
- getSchedulableCommandsField() : array<string|int, mixed>
- Gets a select field containing all possible schedulable commands
- renderArgumentField() : string
- Renders a field for defining an argument's value
- renderOptionField() : string
- Renders a field for defining an option's value
- renderSelectField() : string
Properties
$schedulableCommands
protected
array<string|int, Command>
$schedulableCommands
= []
$task
protected
ExecuteSchedulableCommandTask|null
$task
Methods
__construct()
public
__construct() : mixed
getAdditionalFields()
Render additional information fields within the scheduler backend.
public
getAdditionalFields(array<string|int, mixed> &$taskInfo, ExecuteSchedulableCommandTask|null $task, SchedulerModuleController $schedulerModule) : array<string|int, mixed>
Parameters
- $taskInfo : array<string|int, mixed>
-
Array information of task to return
- $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
Return values
array<string|int, mixed> —Additional fields
getLanguageService()
public
getLanguageService() : LanguageService
Return values
LanguageServicesaveAdditionalFields()
Saves additional field values
public
saveAdditionalFields(array<string|int, mixed> $submittedData, ExecuteSchedulableCommandTask $task) : bool
Parameters
- $submittedData : array<string|int, mixed>
- $task : ExecuteSchedulableCommandTask
Return values
boolvalidateAdditionalFields()
Validates additional selected fields
public
validateAdditionalFields(array<string|int, mixed> &$submittedData, SchedulerModuleController $schedulerModule) : bool
Parameters
- $submittedData : array<string|int, mixed>
- $schedulerModule : SchedulerModuleController
Return values
boolgetArgumentLabel()
Get a human-readable label for a command argument
protected
getArgumentLabel(InputArgument $argument) : string
Parameters
- $argument : InputArgument
Return values
stringgetCommandArgumentFields()
Gets a set of fields covering arguments which can or must be used.
protected
getCommandArgumentFields(InputDefinition $inputDefinition) : array<string|int, mixed>
Also registers the default values of those fields with the Task, allowing them to be read upon execution.
Parameters
- $inputDefinition : InputDefinition
Return values
array<string|int, mixed>getCommandDescriptionField()
Get description of selected command
protected
getCommandDescriptionField(string $description) : array<string|int, mixed>
Parameters
- $description : string
Return values
array<string|int, mixed>getCommandOptionFields()
Gets a set of fields covering options which can or must be used.
protected
getCommandOptionFields(InputDefinition $inputDefinition) : array<string|int, mixed>
Also registers the default values of those fields with the Task, allowing them to be read upon execution.
Parameters
- $inputDefinition : InputDefinition
Return values
array<string|int, mixed>getOptionLabel()
Get a human-readable label for a command option
protected
getOptionLabel(InputOption $option) : string
Parameters
- $option : InputOption
Return values
stringgetSchedulableCommandsField()
Gets a select field containing all possible schedulable commands
protected
getSchedulableCommandsField() : array<string|int, mixed>
Return values
array<string|int, mixed>renderArgumentField()
Renders a field for defining an argument's value
protected
renderArgumentField(InputArgument $argument, string $currentValue) : string
Parameters
- $argument : InputArgument
- $currentValue : string
Return values
stringrenderOptionField()
Renders a field for defining an option's value
protected
renderOptionField(InputOption $option, bool $enabled, string $currentValue) : string
Parameters
- $option : InputOption
- $enabled : bool
- $currentValue : string
Return values
stringrenderSelectField()
protected
renderSelectField(array<string|int, mixed> $options, string $selectedOptionValue) : string
Parameters
- $options : array<string|int, mixed>
- $selectedOptionValue : string