Lines Matching full:pattern
22 * Performs a recursive-enabled glob search with the given pattern.
24 * @param string $pattern
25 * The pattern passed to glob(). If the pattern contains "**", then it
31 * An array of files that match the recursive pattern given.
33 public function recursiveGlob($pattern, $flags = 0) argument
36 $files = glob($pattern, $flags);
39 if (strpos($pattern, '**') !== FALSE) {
40 $dirs = glob(dirname($pattern).DIRECTORY_SEPARATOR.'*', GLOB_ONLYDIR|GLOB_NOSORT);
43 …s = array_merge($files, $this->recursiveGlob($dir.DIRECTORY_SEPARATOR.basename($pattern), $flags));
52 * Performs a recursive glob search for files with the given pattern.
54 * @param string $pattern
55 * The pattern passed to glob().
60 * An array of files that match the recursive pattern given.
62 public function recursiveGlobFiles($pattern, $flags = 0) argument
64 $files = $this->recursiveGlob($pattern, $flags);