PHP Class Spatie\MediaLibrary\UrlGenerator\LocalUrlGenerator

Inheritance: extends BaseUrlGenerator, implements Spatie\MediaLibrary\UrlGenerator\UrlGenerator
显示文件 Open project: spatie/laravel-medialibrary

Public Methods

Method Description
getPath ( ) : string * Get the path for the profile of a media item.
getUrl ( ) : string Get the url for the profile of a media item.
rawUrlEncodeFilename ( string $path = '' ) : string

Protected Methods

Method Description
getBaseMediaDirectory ( ) : Str * Get the directory where all files of the media item are stored.
getStoragePath ( ) : string * Get the path where the whole medialibrary is stored.
makeCompatibleForNonUnixHosts ( string $url ) : string

Method Details

getBaseMediaDirectory() protected method

* Get the directory where all files of the media item are stored.
protected getBaseMediaDirectory ( ) : Str
return Spatie\String\Str

getPath() public method

* Get the path for the profile of a media item.
public getPath ( ) : string
return string

getStoragePath() protected method

* Get the path where the whole medialibrary is stored.
protected getStoragePath ( ) : string
return string

getUrl() public method

Get the url for the profile of a media item.
public getUrl ( ) : string
return string

makeCompatibleForNonUnixHosts() protected method

protected makeCompatibleForNonUnixHosts ( string $url ) : string
$url string
return string

rawUrlEncodeFilename() public method

public rawUrlEncodeFilename ( string $path = '' ) : string
$path string
return string