/** * Render additional information fields within the scheduler backend. * * @param array &$taskInfo Array information of task to return * @param mixed $task \TYPO3\CMS\Scheduler\Task\AbstractTask or \TYPO3\CMS\Scheduler\Execution instance * @param \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $schedulerModule Reference to the calling object (BE module of the Scheduler) * @return array Additional fields * @see \TYPO3\CMS\Scheduler\AdditionalFieldProvider#getAdditionalFields($taskInfo, $task, $schedulerModule) */ public function getAdditionalFields(array &$taskInfo, $task, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $schedulerModule) { $this->task = $task; if ($this->task !== NULL) { $this->task->setScheduler(); } $fields = array(); $fields['action'] = $this->getCommandControllerActionField(); if ($this->task !== NULL && $this->task->getCommandIdentifier()) { $command = $this->commandManager->getCommandByIdentifier($this->task->getCommandIdentifier()); $fields['description'] = $this->getCommandControllerActionDescriptionField(); $argumentFields = $this->getCommandControllerActionArgumentFields($command->getArgumentDefinitions()); $fields = array_merge($fields, $argumentFields); $this->task->save(); } return $fields; }