PHP Interface Plank\Mediable\UrlGenerators\UrlGeneratorInterface

Author: Sean Fraser ([email protected])
Show file Open project: plank/laravel-mediable

Public Methods

Method 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 method

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

getUrl() public method

Get a Url to the file.
public getUrl ( ) : string
return string

isPubliclyAccessible() public method

Disks configs should indicate this with the visibility key
public isPubliclyAccessible ( ) : boolean
return boolean

setMedia() public method

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