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