TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
LocalImageProcessor Class Reference
Inheritance diagram for LocalImageProcessor:
ProcessorInterface

Public Member Functions

 canProcessTask (TaskInterface $task)
 
 processTask (TaskInterface $task)
 
 getTemporaryImageWithText ($filename, $textline1, $textline2, $textline3)
 

Protected Member Functions

 checkForExistingTargetFile (TaskInterface $task)
 
 getHelperByTaskName ($taskName)
 
 getGraphicalFunctionsObject ()
 

Protected Attributes

 $logger
 

Detailed Description

Processes Local Images files

Definition at line 22 of file LocalImageProcessor.php.

Member Function Documentation

canProcessTask ( TaskInterface  $task)

Returns TRUE if this processor can process the given task.

Parameters
TaskInterface$task
Returns
bool

Implements ProcessorInterface.

Definition at line 45 of file LocalImageProcessor.php.

References TaskInterface\getName(), and TaskInterface\getType().

Referenced by LocalImageProcessor\processTask().

checkForExistingTargetFile ( TaskInterface  $task)
protected

Check if the to be processed target file already exists if exist take info from that file and mark task as done

Parameters
TaskInterface$task
Returns
bool

Definition at line 105 of file LocalImageProcessor.php.

References TaskInterface\getConfigurationChecksum(), LocalImageProcessor\getGraphicalFunctionsObject(), TaskInterface\getTargetFile(), TaskInterface\getTargetFileName(), and TaskInterface\setExecuted().

Referenced by LocalImageProcessor\processTask().

getGraphicalFunctionsObject ( )
protected
getHelperByTaskName (   $taskName)
protected
Parameters
string$taskName
Returns
LocalCropScaleMaskHelper|LocalPreviewHelper
Exceptions
\InvalidArgumentException

Definition at line 142 of file LocalImageProcessor.php.

References GeneralUtility\makeInstance().

Referenced by LocalImageProcessor\processTask().

getTemporaryImageWithText (   $filename,
  $textline1,
  $textline2,
  $textline3 
)

Creates error image based on gfx/notfound_thumb.png Requires GD lib enabled, otherwise it will exit with the three textstrings outputted as text. Outputs the image stream to browser and exits!

Parameters
string$filenameName of the file
string$textline1Text line 1
string$textline2Text line 2
string$textline3Text line 3
Returns
void
Exceptions
\RuntimeException
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8. Use ::getTemporaryImageWithText() instead.

Definition at line 172 of file LocalImageProcessor.php.

References $filename, LocalImageProcessor\getGraphicalFunctionsObject(), and GeneralUtility\logDeprecatedFunction().

processTask ( TaskInterface  $task)

Member Data Documentation

$logger
protected

Definition at line 27 of file LocalImageProcessor.php.