1 | <?php |
||
10 | class Path |
||
11 | { |
||
12 | /** |
||
13 | * Normalizes the given path. |
||
14 | * |
||
15 | * @param string $path |
||
16 | * |
||
17 | * @return string |
||
18 | */ |
||
19 | public static function normalize($path) |
||
45 | |||
46 | /** |
||
47 | * Indicates whether the given path is absolute or not. |
||
48 | * |
||
49 | * @param string $path A normalized path |
||
50 | * |
||
51 | * @return bool |
||
52 | */ |
||
53 | public static function isAbsolute($path) |
||
57 | |||
58 | /** |
||
59 | * Returns the absolute prefix of the given path. |
||
60 | * |
||
61 | * @param string $path A normalized path |
||
62 | * |
||
63 | * @return string |
||
64 | */ |
||
65 | public static function getAbsolutePrefix($path) |
||
75 | |||
76 | /** |
||
77 | * Wrap native dirname function in order to handle only UNIX-style paths |
||
78 | * |
||
79 | * @param string $path |
||
80 | * |
||
81 | * @return string |
||
82 | * |
||
83 | * @see http://php.net/manual/en/function.dirname.php |
||
84 | */ |
||
85 | public static function dirname($path) |
||
89 | } |
||
90 |