@@ 134-147 (lines=14) @@ | ||
131 | * @param string $path |
|
132 | * @param boolean $clearCache |
|
133 | */ |
|
134 | public function addPath($path, $clearCache = true, $group = '__DEFAULT__') |
|
135 | { |
|
136 | //var_dump(func_get_args()); |
|
137 | $path = $this->normalizePath($path); |
|
138 | ||
139 | // This is done for easy reference and |
|
140 | // eliminates the need to check for doubles |
|
141 | $this->paths[$group][$path] = $path; |
|
142 | ||
143 | if ($clearCache) |
|
144 | { |
|
145 | $this->cache = []; |
|
146 | } |
|
147 | } |
|
148 | ||
149 | /** |
|
150 | * Removes paths to look in |
|
@@ 244-253 (lines=10) @@ | ||
241 | * |
|
242 | * @param array $paths |
|
243 | */ |
|
244 | public function setPaths(array $paths, $clearCache = true, $group = '__DEFAULT__') |
|
245 | { |
|
246 | $this->paths[$group] = []; |
|
247 | $this->addPaths($paths, false, $group); |
|
248 | ||
249 | if ($clearCache) |
|
250 | { |
|
251 | $this->cache = []; |
|
252 | } |
|
253 | } |
|
254 | ||
255 | /** |
|
256 | * Finds all files with a given name/subpath. |