43 throw new \InvalidArgumentException(
'Task not of type FileStorageExtractionTask', 1384275695);
45 $additionalFields[
'scheduler_fileStorageIndexing_storage'] = $this->getAllStoragesField($task);
46 $additionalFields[
'scheduler_fileStorageIndexing_fileCount'] = $this->
getFileCountField($task);
47 $additionalFields[
'scheduler_fileStorageIndexing_registeredExtractors'] = $this->getRegisteredExtractorsField($task);
48 return $additionalFields;
61 foreach ($storages as $storage) {
62 if ($task !== NULL && $task->storageUid === $storage->getUid()) {
63 $options[] =
'<option value="' . $storage->getUid() .
'" selected="selected">' . $storage->getName() .
'</option>';
65 $options[] =
'<option value="' . $storage->getUid() .
'">' . $storage->getName() .
'</option>';
69 $fieldName =
'tx_scheduler[scheduler_fileStorageIndexing_storage]';
70 $fieldId =
'scheduler_fileStorageIndexing_storage';
71 $fieldHtml =
'<select name="' . $fieldName .
'" id="' . $fieldId .
'">' . implode(
"\n", $options) .
'</select>';
73 $fieldConfiguration = array(
75 'label' =>
'LLL:EXT:scheduler/mod1/locallang.xlf:label.fileStorageIndexing.storage',
76 'cshKey' =>
'_MOD_system_txschedulerM1',
77 'cshLabel' => $fieldId
79 return $fieldConfiguration;
89 $fieldName =
'tx_scheduler[scheduler_fileStorageIndexing_fileCount]';
90 $fieldId =
'scheduler_fileStorageIndexing_fileCount';
91 $fieldValue = $task !== NULL ? (int)$task->maxFileCount : 100;
92 $fieldHtml =
'<input type="text" name="' . $fieldName .
'" id="' . $fieldId .
'" value="' . htmlspecialchars($fieldValue) .
'" />';
94 $fieldConfiguration = array(
96 'label' =>
'LLL:EXT:scheduler/mod1/locallang.xlf:label.fileStorageExtraction.fileCount',
97 'cshKey' =>
'_MOD_system_txschedulerM1',
98 'cshLabel' => $fieldId
100 return $fieldConfiguration;
112 if (empty($extractors)) {
113 $labelKey =
'LLL:EXT:scheduler/mod1/locallang.xlf:label.fileStorageExtraction.registeredExtractors.without_extractors';
116 'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
121 $content = $flashMessage->render();
124 $labelKey =
'LLL:EXT:scheduler/mod1/locallang.xlf:label.fileStorageExtraction.registeredExtractors.extractor';
126 foreach ($extractors as $extractor) {
127 $bullets[] = sprintf(
128 '<li title="%s">%s</li>',
129 get_class($extractor),
135 $labelKey =
'LLL:EXT:scheduler/mod1/locallang.xlf:label.fileStorageExtraction.registeredExtractors.with_extractors';
138 'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
139 '<ul>' . implode(LF, $bullets) .
'</ul>',
143 $content = $flashMessage->render();
146 $fieldConfiguration = array(
148 'label' =>
'LLL:EXT:scheduler/mod1/locallang.xlf:label.fileStorageExtraction.registeredExtractors',
149 'cshKey' =>
'_MOD_system_txschedulerM1',
150 'cshLabel' =>
'scheduler_fileStorageIndexing_registeredExtractors' 152 return $fieldConfiguration;
184 throw new \InvalidArgumentException(
'Task not of type FileStorageExtractionTask', 1384275698);
186 $task->storageUid = (int)$submittedData[
'scheduler_fileStorageIndexing_storage'];
187 $task->maxFileCount = (int)$submittedData[
'scheduler_fileStorageIndexing_fileCount'];
198 $extractorParts = explode(
'\\', get_class($extractor));
199 return array_pop($extractorParts);
static canBeInterpretedAsInteger($var)
static makeInstance($className)
static isIntegerInRange($value, $minimum, $maximum)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]