File_Iterator_Facade
in package
Façade implementation that uses File_Iterator_Factory to create a File_Iterator that operates on an AppendIterator that contains an RecursiveDirectoryIterator for each given path. The list of unique files is returned as an array.
Tags
Table of Contents
- getFilesAsArray() : array<string|int, mixed>
- getCommonPath() : string
- Returns the common path of a set of files.
Methods
getFilesAsArray()
public
getFilesAsArray(array<string|int, mixed>|string $paths[, array<string|int, mixed>|string $suffixes = '' ][, array<string|int, mixed>|string $prefixes = '' ][, array<string|int, mixed> $exclude = array() ][, bool $commonPath = FALSE ]) : array<string|int, mixed>
Parameters
- $paths : array<string|int, mixed>|string
- $suffixes : array<string|int, mixed>|string = ''
- $prefixes : array<string|int, mixed>|string = ''
- $exclude : array<string|int, mixed> = array()
- $commonPath : bool = FALSE
Return values
array<string|int, mixed> —getCommonPath()
Returns the common path of a set of files.
protected
getCommonPath(array<string|int, mixed> $files) : string
Parameters
- $files : array<string|int, mixed>