OnlineMediaHelperRegistry

class \TYPO3\CMS\Core\Resource\OnlineMedia\Helpers\OnlineMediaHelperRegistry

Online Media Source Registry

Table of Contents

Methods

getOnlineMediaHelper()  : false|OnlineMediaHelperInterface
Get helper class for given File
getSupportedFileExtensions()  : string[]
Get all file extensions that have an OnlineMediaHelper
hasOnlineMediaHelper()  : bool
Checks if there is a helper for this file extension
transformUrlToFile()  : File|null
Try to transform given URL to a File

Methods

getSupportedFileExtensions()

Get all file extensions that have an OnlineMediaHelper

public getSupportedFileExtensions() : string[]

Return values

string[]

hasOnlineMediaHelper()

Checks if there is a helper for this file extension

public hasOnlineMediaHelper(string $fileExtension) : bool

Parameters

$fileExtension : string

Return values

bool

transformUrlToFile()

Try to transform given URL to a File

public transformUrlToFile(string $url, Folder $targetFolder[, string[] $allowedExtensions = [] ]) : File|null

Parameters

$url : string
$targetFolder : Folder
$allowedExtensions : string[] = []

Return values

File|null
On this page