OnlineMediaHelperRegistry implements SingletonInterface

Online Media Source Registry

Table of Contents

Interfaces

SingletonInterface
"empty" interface for singletons (marker interface pattern)

Methods

getOnlineMediaHelper()  : false|OnlineMediaHelperInterface
Get helper class for given File
getSupportedFileExtensions()  : array<string|int, 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() : array<string|int, string>
Return values
array<string|int, 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[, array<string|int, string> $allowedExtensions = [] ]) : File|null
Parameters
$url : string
$targetFolder : Folder
$allowedExtensions : array<string|int, string> = []
Return values
File|null

        
On this page

Search results