Class CriticalI_Globber

Description

A utility for searching the file system for filenames matching a

pattern. The only significant difference between this utility and the glob() function is that multiple patterns can be passed in if they are separated by a comma and then matched against a single starting directory. Whitespace is also trimmed from patterns, allowing for easier creation of long pattern sets.

Located in /Core/lib/CriticalI/Globber.php (line 14)


	
			
Method Summary
 static array match (string $origin, string $pattern)
Methods
static match (line 24)

Return an array of pathnames matching the provided pattern and origin directory. Returned filenames are complete paths (not relative to the origin). The returned filenames are not sorted.

  • access: public
array match (string $origin, string $pattern)
  • string $origin: The origin directory (or an empty string)
  • string $pattern: The pattern to match

Documentation generated on Wed, 25 Apr 2012 09:46:43 -0700 by phpDocumentor 1.4.3