34 throw new \InvalidArgumentException(
'Task not of type FileStorageExtractionTask', 1384275696);
36 $additionalFields[
'scheduler_fileStorageIndexing_storage'] = $this->getAllStoragesField($task);
37 return $additionalFields;
50 foreach ($storages as $storage) {
51 if ($task != NULL && $task->storageUid === $storage->getUid()) {
52 $options[] =
'<option value="' . $storage->getUid() .
'" selected="selected">' . $storage->getName() .
'</option>';
54 $options[] =
'<option value="' . $storage->getUid() .
'">' . $storage->getName() .
'</option>';
58 $fieldName =
'tx_scheduler[scheduler_fileStorageIndexing_storage]';
59 $fieldId =
'scheduler_fileStorageIndexing_storage';
60 $fieldHtml =
'<select name="' . $fieldName .
'" id="' . $fieldId .
'">' . implode(
"\n", $options) .
'</select>';
62 $fieldConfiguration = array(
64 'label' =>
'LLL:EXT:scheduler/mod1/locallang.xlf:label.fileStorageIndexing.storage',
65 'cshKey' =>
'_MOD_system_txschedulerM1',
66 'cshLabel' => $fieldId
68 return $fieldConfiguration;
79 $value = $submittedData[
'scheduler_fileStorageIndexing_storage'];
98 throw new \InvalidArgumentException(
'Task not of type FileStorageExtractionTask', 1384275697);
100 $task->storageUid = (int)$submittedData[
'scheduler_fileStorageIndexing_storage'];
static canBeInterpretedAsInteger($var)
static makeInstance($className)
validateAdditionalFields(array &$submittedData, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $parentObject)
getAdditionalFields(array &$taskInfo, $task, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $parentObject)
saveAdditionalFields(array $submittedData, \TYPO3\CMS\Scheduler\Task\AbstractTask $task)