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

Public Member Functions

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

Protected Member Functions

string determineTargetFileExtension ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Resource\Processing\AbstractTask
array getChecksumData ()
 
bool isValidConfiguration (array $configuration)
 

Protected Attributes

string null $targetFileExtension
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Resource\Processing\AbstractTask
array $checksumData = array( )
 
Resource ProcessedFile $targetFile
 
Resource File $sourceFile
 
array $configuration
 
string $type
 
string $name
 
bool $executed = false
 
bool $successful
 

Detailed Description

Abstract base implementation of a task.

If you extend this class, make sure that you redefine the member variables $type and $name or set them in the constructor. Otherwise your task won't be recognized by the system and several things will fail.

Definition at line 25 of file AbstractGraphicalTask.php.

Member Function Documentation

◆ determineTargetFileExtension()

string TYPO3\CMS\Core\Resource\Processing\AbstractGraphicalTask::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.

Returns
‪string

Definition at line 66 of file AbstractGraphicalTask.php.

References TYPO3\CMS\Core\Resource\Processing\AbstractGraphicalTask\$targetFileExtension, TYPO3\CMS\Core\Resource\AbstractFile\getExtension(), and TYPO3\CMS\Core\Resource\Processing\AbstractTask\getSourceFile().

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

◆ getTargetFileExtension()

string TYPO3\CMS\Core\Resource\Processing\AbstractGraphicalTask::getTargetFileExtension ( )

◆ getTargetFilename()

string TYPO3\CMS\Core\Resource\Processing\AbstractGraphicalTask::getTargetFilename ( )

Member Data Documentation

◆ $targetFileExtension

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