Property | Type | Description | |
---|---|---|---|
$_paths | array | Paths this scanner should scan. |
Method | Description | |
---|---|---|
__construct ( array $paths ) | Constructor. | |
find ( string $file ) : mixed | Find a file in the connected paths, and check for its existance. | |
paths ( ) : array | Accessor for paths. |
Method | Description | |
---|---|---|
_expandPaths ( ) : void | Expands constants and glob() patterns in the searchPaths. | |
_expandPrefix ( string $path ) : string | Path resolution hook. Used by framework integrations to add in framework module paths. | |
_generateTree ( string $path ) : array | Discover all the sub directories for a given path. | |
_normalizePath ( string $name, type $ds ) : string | Normalize a file path to the specified Directory Separator ($ds) | |
_normalizePaths ( ) : void | Ensure all paths end in a directory separator and expand any APP/WEBROOT constants. |
public __construct ( array $paths ) | ||
$paths | array | The paths to scan. |
protected _expandPaths ( ) : void | ||
return | void |
protected _expandPrefix ( string $path ) : string | ||
$path | string | Path to resolve |
return | string | resolved path |
protected _generateTree ( string $path ) : array | ||
$path | string | The path to search |
return | array | Array of subdirectories. |
protected _normalizePath ( string $name, type $ds ) : string | ||
$name | string | Path to normalize |
$ds | type | Directory Separator to be used |
return | string | Normalized path |
protected _normalizePaths ( ) : void | ||
return | void |