‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Resource\Processing\ImagePreviewTask Class Reference
Inheritance diagram for TYPO3\CMS\Core\Resource\Processing\ImagePreviewTask:
TYPO3\CMS\Core\Resource\Processing\AbstractTask TYPO3\CMS\Core\Resource\Processing\TaskInterface

Public Member Functions

 getType ()
 
 getName ()
 
 getTargetFilename ()
 
 getTargetFileExtension ()
 
 sanitizeConfiguration ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Resource\Processing\AbstractTask
 __construct (protected ProcessedFile $targetFile, protected array $configuration)
 
 getConfigurationChecksum ()
 
 getTargetFile ()
 
 getSourceFile ()
 
 getConfiguration ()
 
 isExecuted ()
 
 setExecuted (bool $successful)
 
 isSuccessful ()
 
 fileNeedsProcessing ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Resource\Processing\TaskInterface
 getTargetFileName ()
 

Protected Member Functions

 determineTargetFileExtension ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Resource\Processing\AbstractTask
 getChecksumData ()
 

Protected Attributes

string null $targetFileExtension
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Resource\Processing\AbstractTask
Resource File $sourceFile
 
bool $executed = false
 
bool $successful
 

Detailed Description

A task for generating an image preview.

Definition at line 26 of file ImagePreviewTask.php.

Member Function Documentation

◆ determineTargetFileExtension()

TYPO3\CMS\Core\Resource\Processing\ImagePreviewTask::determineTargetFileExtension ( )
protected

Gets the file extension the processed file should have in the filesystem by either using the configuration setting, or the extension of the original file.

Definition at line 69 of file ImagePreviewTask.php.

References $GLOBALS, TYPO3\CMS\Core\Resource\Processing\ImagePreviewTask\$targetFileExtension, TYPO3\CMS\Core\Resource\Processing\AbstractTask\getSourceFile(), and TYPO3\CMS\Core\Utility\GeneralUtility\inList().

Referenced by TYPO3\CMS\Core\Resource\Processing\ImagePreviewTask\getTargetFileExtension().

◆ getName()

TYPO3\CMS\Core\Resource\Processing\ImagePreviewTask::getName ( )

Returns the name of this task

Reimplemented from TYPO3\CMS\Core\Resource\Processing\AbstractTask.

Definition at line 35 of file ImagePreviewTask.php.

◆ getTargetFileExtension()

TYPO3\CMS\Core\Resource\Processing\ImagePreviewTask::getTargetFileExtension ( )

◆ getTargetFilename()

TYPO3\CMS\Core\Resource\Processing\ImagePreviewTask::getTargetFilename ( )

◆ getType()

TYPO3\CMS\Core\Resource\Processing\ImagePreviewTask::getType ( )

Returns the type of this task

Reimplemented from TYPO3\CMS\Core\Resource\Processing\AbstractTask.

Definition at line 30 of file ImagePreviewTask.php.

◆ sanitizeConfiguration()

TYPO3\CMS\Core\Resource\Processing\ImagePreviewTask::sanitizeConfiguration ( )

Enforce default configuration for preview processing here, to be sure we find already processed files below, which we wouldn't if we would change the configuration later, as configuration is part of the lookup.

Reimplemented from TYPO3\CMS\Core\Resource\Processing\AbstractTask.

Definition at line 91 of file ImagePreviewTask.php.

References TYPO3\CMS\Core\Utility\MathUtility\forceIntegerInRange().

Member Data Documentation

◆ $targetFileExtension

string null TYPO3\CMS\Core\Resource\Processing\ImagePreviewTask::$targetFileExtension
protected