| 1 | <?php |
||
| 19 | class ExtensionManagementUtility |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Returns the relative path to the extension as measured from the public web path |
||
| 23 | * If the extension is not loaded the function will die with an error message |
||
| 24 | * Useful for images and links from the frontend |
||
| 25 | * |
||
| 26 | * @param string $key Extension key |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | public static function siteRelPath($key) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Strip first part of a path, equal to the length of public web path including trailing slash |
||
| 36 | * |
||
| 37 | * @param string $path |
||
| 38 | * @return string |
||
| 39 | * @internal |
||
| 40 | */ |
||
| 41 | public static function stripPathSitePrefix($path) |
||
| 45 | |||
| 46 | } |
||
| 47 |