PHP Interface Plank\Mediable\UrlGenerators\UrlGeneratorInterface

Author: Sean Fraser ([email protected])
Afficher le fichier Open project: plank/laravel-mediable

Méthodes publiques

Méthode Description
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.

Method Details

getAbsolutePath() public méthode

For local files this should return a path For remote files this should return a url
public getAbsolutePath ( ) : string
Résultat string

getUrl() public méthode

Get a Url to the file.
public getUrl ( ) : string
Résultat string

isPubliclyAccessible() public méthode

Disks configs should indicate this with the visibility key
public isPubliclyAccessible ( ) : boolean
Résultat boolean

setMedia() public méthode

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