TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
AbstractGraphicalTask Class Reference
Inheritance diagram for AbstractGraphicalTask:
AbstractTask TaskInterface ImageCropScaleMaskTask ImagePreviewTask

Public Member Functions

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

Protected Member Functions

 determineTargetFileExtension ()
 
- Protected Member Functions inherited from AbstractTask
 getChecksumData ()
 
 isValidConfiguration (array $configuration)
 

Protected Attributes

 $targetFileExtension
 
- Protected Attributes inherited from AbstractTask
 $checksumData = []
 
 $targetFile
 
 $sourceFile
 
 $configuration
 
 $type
 
 $name
 
 $executed = false
 
 $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 26 of file AbstractGraphicalTask.php.

Member Function Documentation

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 68 of file AbstractGraphicalTask.php.

References $GLOBALS, AbstractGraphicalTask\$targetFileExtension, AbstractFile\FILETYPE_IMAGE, AbstractTask\getSourceFile(), and AbstractTask\getType().

Referenced by AbstractGraphicalTask\getTargetFileExtension().

getTargetFileExtension ( )

Determines the file extension the processed file should have in the filesystem.

Returns
string

Implements TaskInterface.

Definition at line 52 of file AbstractGraphicalTask.php.

References AbstractGraphicalTask\$targetFileExtension, and AbstractGraphicalTask\determineTargetFileExtension().

Referenced by AbstractGraphicalTask\getTargetFilename().

getTargetFilename ( )

Returns the name the processed file should have in the filesystem.

Returns
string

Definition at line 39 of file AbstractGraphicalTask.php.

References AbstractTask\getConfigurationChecksum(), AbstractTask\getSourceFile(), and AbstractGraphicalTask\getTargetFileExtension().

Member Data Documentation

$targetFileExtension
protected