PreviewProcessing implements ProcessorInterface
FinalYes
Preview of Online Media item Processing
Table of Contents
Interfaces
- ProcessorInterface
- Interface for file processors. All classes capable of processing a file have to implement this interface.
Properties
- $eventDispatcher : EventDispatcherInterface
- $localImageProcessor : LocalImageProcessor
- $onlineMediaHelperRegistry : OnlineMediaHelperRegistry
Methods
- __construct() : mixed
- canProcessTask() : bool
- Returns TRUE if this processor can process the given task.
- processTask() : void
- Processes the given task and sets the processing result in the task object.
- getPreviewImageFromOnlineMedia() : string
Properties
$eventDispatcher read-only
        protected
            EventDispatcherInterface
    $eventDispatcher
    
    
    
    
    
    
$localImageProcessor read-only
        protected
            LocalImageProcessor
    $localImageProcessor
    
    
    
    
    
    
$onlineMediaHelperRegistry read-only
        protected
            OnlineMediaHelperRegistry
    $onlineMediaHelperRegistry
    
    
    
    
    
    
Methods
__construct()
    public
                    __construct(OnlineMediaHelperRegistry $onlineMediaHelperRegistry, EventDispatcherInterface $eventDispatcher, LocalImageProcessor $localImageProcessor) : mixed
    Parameters
- $onlineMediaHelperRegistry : OnlineMediaHelperRegistry
- $eventDispatcher : EventDispatcherInterface
- $localImageProcessor : LocalImageProcessor
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 and sets the processing result in the task object.
    public
                    processTask(TaskInterface $task) : void
    Parameters
- $task : TaskInterface
getPreviewImageFromOnlineMedia()
    protected
                    getPreviewImageFromOnlineMedia(File $file) : string
    Parameters
- $file : File