PHP Интерфейс Plank\Mediable\UrlGenerators\UrlGeneratorInterface

Автор: Sean Fraser ([email protected])
Показать файл Открыть проект

Открытые методы

Метод Описание
getAbsolutePath ( ) : string Retrieve the absolute path to the file.
getUrl ( ) : string Get a Url to the file.
isPubliclyAccessible ( ) : boolean Check if the file is publicly accessible.
setMedia ( Media $media ) Set the media instance for which urls are being generated.

Описание методов

getAbsolutePath() публичный Метод

For local files this should return a path For remote files this should return a url
public getAbsolutePath ( ) : string
Результат string

getUrl() публичный Метод

Get a Url to the file.
public getUrl ( ) : string
Результат string

isPubliclyAccessible() публичный Метод

Disks configs should indicate this with the visibility key
public isPubliclyAccessible ( ) : boolean
Результат boolean

setMedia() публичный Метод

Set the media instance for which urls are being generated.
public setMedia ( Media $media )
$media Plank\Mediable\Media