1 | <?php |
||
7 | class LocalUrlGenerator extends BaseUrlGenerator implements UrlGenerator |
||
8 | { |
||
9 | /** |
||
10 | * Get the url for the profile of a media item. |
||
11 | * |
||
12 | * @return string |
||
13 | * |
||
14 | * @throws \Spatie\MediaLibrary\Exceptions\UrlCouldNotBeDetermined |
||
15 | */ |
||
16 | public function getUrl() |
||
26 | |||
27 | /** |
||
28 | * Get the full url for the profile of a media item. |
||
29 | * |
||
30 | * @return string |
||
31 | * |
||
32 | * @throws \Spatie\MediaLibrary\Exceptions\UrlCouldNotBeDetermined |
||
33 | */ |
||
34 | public function getFullUrl() |
||
38 | |||
39 | /** |
||
40 | * Get the path for the profile of a media item. |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getPath() |
||
48 | |||
49 | /** |
||
50 | * Get the directory where all files of the media item are stored. |
||
51 | * |
||
52 | * @return \Spatie\String\Str |
||
53 | */ |
||
54 | protected function getBaseMediaDirectory() |
||
60 | |||
61 | /** |
||
62 | * Get the path where the whole medialibrary is stored. |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | protected function getStoragePath() |
||
72 | |||
73 | /** |
||
74 | * @param string $url |
||
75 | * |
||
76 | * @return string |
||
77 | */ |
||
78 | protected function makeCompatibleForNonUnixHosts($url) |
||
86 | } |
||
87 |