| 1 | <?php |
||
| 17 | class HierarchyTool |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Replaces all escaped slashes in a hierarchy path with @@@slash@@@ to afterwards |
||
| 21 | * only have slashes in the content that are real path separators. |
||
| 22 | * |
||
| 23 | * @param string $pathWithContentSlashes |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | public static function substituteSlashes(string $pathWithContentSlashes): string |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Replaces @@@slash@@@ with \/ to have the path usable for solr again. |
||
| 33 | * |
||
| 34 | * @param string $pathWithReplacedContentSlashes |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public static function unSubstituteSlashes(string $pathWithReplacedContentSlashes): string |
||
| 41 | } |