@@ 73-79 (lines=7) @@ | ||
70 | * |
|
71 | * @param string $path |
|
72 | */ |
|
73 | public static function addPath($path) |
|
74 | { |
|
75 | $path = str_replace('//', '/', rtrim($path, '/')); |
|
76 | if (is_dir($path) && !in_array($path, self::$paths)) { |
|
77 | array_unshift(self::$paths, $path); |
|
78 | } |
|
79 | } |
|
80 | ||
81 | /** |
|
82 | * Prepends a searchable path to available paths list. |
|
@@ 86-92 (lines=7) @@ | ||
83 | * |
|
84 | * @param string $path |
|
85 | */ |
|
86 | public static function appendPath($path) |
|
87 | { |
|
88 | $path = str_replace('//', '/', rtrim($path, '/')); |
|
89 | if (is_dir($path) && !in_array($path, self::$paths)) { |
|
90 | array_push(self::$paths, $path); |
|
91 | } |
|
92 | } |
|
93 | ||
94 | /** |
|
95 | * Gets the list of defined paths |