1 | <?php |
||
7 | class LocalUrlGenerator extends BaseUrlGenerator |
||
8 | { |
||
9 | /** |
||
10 | * Get the url for the profile of a media item. |
||
11 | * |
||
12 | * @return string |
||
13 | * |
||
14 | * @throws \Spatie\MediaLibrary\Exceptions\UrlCannotBeDetermined |
||
15 | */ |
||
16 | public function getUrl(): string |
||
26 | |||
27 | /* |
||
28 | * Get the path for the profile of a media item. |
||
29 | */ |
||
30 | public function getPath(): string |
||
34 | |||
35 | /** |
||
36 | * Get the relative URL to the root of the public medialibrary directory. |
||
37 | * |
||
38 | * @throws UrlCannotBeDetermined |
||
39 | */ |
||
40 | protected function getBaseMediaDirectoryUrl(): string |
||
53 | |||
54 | /* |
||
55 | * Get the directory where all files of the media item are stored. |
||
56 | */ |
||
57 | protected function getBaseMediaDirectory(): string |
||
61 | |||
62 | /* |
||
63 | * Get the path where the whole medialibrary is stored. |
||
64 | */ |
||
65 | protected function getStoragePath() : string |
||
71 | |||
72 | protected function makeCompatibleForNonUnixHosts(string $url): string |
||
80 | |||
81 | public function rawUrlEncodeFilename(string $path = ''): string |
||
85 | } |
||
86 |