Свойство | Type | Description | |
---|---|---|---|
$_paths | array | Paths this scanner should scan. |
Méthode | 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. |
Méthode | 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 | ||
Résultat | void |
protected _expandPrefix ( string $path ) : string | ||
$path | string | Path to resolve |
Résultat | string | resolved path |
protected _generateTree ( string $path ) : array | ||
$path | string | The path to search |
Résultat | array | Array of subdirectories. |
protected _normalizePath ( string $name, type $ds ) : string | ||
$name | string | Path to normalize |
$ds | type | Directory Separator to be used |
Résultat | string | Normalized path |
protected _normalizePaths ( ) : void | ||
Résultat | void |
protected array $_paths | ||
Résultat | array |