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.
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
Gets a set of fields covering arguments which can or must be used.
getCommandDescriptionField()  : array
Get description of selected command
getCommandOptionFields()  : array
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
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 Command[] $schedulableCommands = []

Methods

getAdditionalFields()

Render additional information fields within the scheduler backend.

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

Parameters

$taskInfo : array

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

see
AdditionalFieldProviderInterface::getAdditionalFields

Return values

array —

Additional fields

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

getCommandDescriptionField()

Get description of selected command

protected getCommandDescriptionField(string $description) : array

Parameters

$description : string

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

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

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) : string

Parameters

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

Return values

string

renderSelectField()

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

Parameters

$options : array
$selectedOptionValue : string

Return values

string
On this page