Property | Type | Description | |
---|---|---|---|
$collection | |||
$dirs | |||
$excludeDirs | |||
$exiftool | |||
$extensions | |||
$extensionsToggle | |||
$files | |||
$followSymLinks | |||
$ignoreDotFile | |||
$parser | |||
$readers | |||
$recursive | |||
$sort |
Method | Description | |
---|---|---|
__construct ( |
Constructor | |
__destruct ( ) | ||
all ( ) : |
Perform the scan and returns all the results | |
append ( |
Append a reader to this one. | |
create ( Psr\Log\LoggerInterface $logger ) | ||
exclude ( string | array $dirs ) : |
Exclude directories from scan | |
extensions ( string | array $extensions, boolean $restrict = true ) : |
Restrict / Discard files based on extensions Extensions are case insensitive | |
files ( string | array $files ) : |
Add files to scan | |
first ( ) : |
Return the first result. If no result available, throws an exception | |
followSymLinks ( ) : |
Toggle to enable follow Symbolic Links | |
getIterator ( ) : Iterator | Implements \IteratorAggregate Interface | |
getOneOrNull ( ) : |
Return the first result. If no result available, null is returned | |
ignoreDotFiles ( ) : |
Ignore files starting with a dot (.) | |
in ( string | array $dirs ) : |
Add dirs to scan | |
notRecursive ( ) : |
Disable recursivity in directories scan. | |
reset ( ) | ||
sort ( string | array $by ) : |
Sort results with one or many criteria |
Method | Description | |
---|---|---|
buildQuery ( ) : string | Build query from criterias | |
buildQueryAndExecute ( ) : |
Build the command returns an ArrayCollection of FileEntity | |
computeExcludeDirs ( string $rawExcludeDirs, $rawSearchDirs ) : array | Compute raw exclude rules to simple ones, based on exclude dirs and search dirs | |
resetResults ( ) : |
Reset any computed result |
public __construct ( |
||
$exiftool | ||
$parser |
public all ( ) : |
||
return |
public append ( |
||
$reader | The reader to append | |
return |
protected buildQuery ( ) : string | ||
return | string |
protected buildQueryAndExecute ( ) : |
||
return |
protected computeExcludeDirs ( string $rawExcludeDirs, $rawSearchDirs ) : array | ||
$rawExcludeDirs | string | |
return | array |
public static create ( Psr\Log\LoggerInterface $logger ) | ||
$logger | Psr\Log\LoggerInterface |
public first ( ) : |
||
return |
public followSymLinks ( ) : |
||
return |
public getIterator ( ) : Iterator | ||
return | Iterator |
public getOneOrNull ( ) : |
||
return |
public ignoreDotFiles ( ) : |
||
return |
public notRecursive ( ) : |
||
return |
protected resetResults ( ) : |
||
return |
protected ArrayCollection,Doctrine\Common\Collections $collection | ||
return |