Property | Type | Description | |
---|---|---|---|
$extensions | array | Allowed file extensions. | |
$files | array | $key is the file name or relative path. $value is the file full path. | |
$paths | array | List of given/registered paths. |
Method | Description | |
---|---|---|
addPaths ( array $paths ) | Register multiple file paths. | |
find ( string $name ) : string | Returns the file path. | |
getFiles ( ) : array | Return a list of found files. | |
getPaths ( ) : array | Return a list of registered paths. |
Method | Description | |
---|---|---|
addPath ( string $key, string $path ) | Register a path. | |
findInPaths ( string $name, array $paths ) : array | Look after a file in registered paths. | |
getPossibleFiles ( string $name ) : array | Returns a list of possible file names. |
protected getPossibleFiles ( string $name ) : array | ||
$name | string | The file name or relative path. |
return | array |
protected array $files | ||
return | array |