LocalImageProcessor implements ProcessorInterface, LoggerAwareInterface uses LoggerAwareTrait
Processes Local Images files
Table of Contents
Interfaces
- ProcessorInterface
- Interface for file processors. All classes capable of processing a file have to implement this interface.
- LoggerAwareInterface
Methods
- canProcessTask() : bool
- Returns TRUE if this processor can process the given task.
- processTask() : void
- Processes the given task.
- processTaskWithLocalFile() : void
- Processes an image described in a task, but optionally uses a given local image
- checkForExistingTargetFile() : bool
- Check if the to be processed target file already exists if exist take info from that file and mark task as done
- getGraphicalFunctionsObject() : GraphicalFunctions
- getHelperByTaskName() : LocalCropScaleMaskHelper|LocalPreviewHelper
Methods
canProcessTask()
Returns TRUE if this processor can process the given task.
public
canProcessTask(TaskInterface $task) : bool
Parameters
- $task : TaskInterface
Return values
boolprocessTask()
Processes the given task.
public
processTask(TaskInterface $task) : void
Parameters
- $task : TaskInterface
Tags
processTaskWithLocalFile()
Processes an image described in a task, but optionally uses a given local image
public
processTaskWithLocalFile(TaskInterface $task, string|null $localFile) : void
Parameters
- $task : TaskInterface
- $localFile : string|null
Tags
checkForExistingTargetFile()
Check if the to be processed target file already exists if exist take info from that file and mark task as done
protected
checkForExistingTargetFile(TaskInterface $task) : bool
Parameters
- $task : TaskInterface
Return values
boolgetGraphicalFunctionsObject()
protected
getGraphicalFunctionsObject() : GraphicalFunctions
Return values
GraphicalFunctionsgetHelperByTaskName()
protected
getHelperByTaskName(string $taskName) : LocalCropScaleMaskHelper|LocalPreviewHelper
Parameters
- $taskName : string