RecursiveDirectoryFilterIterator
extends RecursiveFilterIterator
in package
Class RecursiveDirectoryFilterIterator
Table of Contents
Properties
- $ignore_files : array<string|int, mixed>
- $ignore_folders : array<string|int, mixed>
- $root : string
Methods
- __construct() : mixed
- Create a RecursiveFilterIterator from a RecursiveIterator
- accept() : bool
- Check whether the current element of the iterator is acceptable
- getChildren() : RecursiveDirectoryFilterIterator|RecursiveFilterIterator
- matchesPattern() : bool
- Check if filename matches any pattern in the list
Properties
$ignore_files
protected
static array<string|int, mixed>
$ignore_files
$ignore_folders
protected
static array<string|int, mixed>
$ignore_folders
$root
protected
static string
$root
Methods
__construct()
Create a RecursiveFilterIterator from a RecursiveIterator
public
__construct(RecursiveIterator $iterator, string $root, array<string|int, mixed> $ignore_folders, array<string|int, mixed> $ignore_files) : mixed
Parameters
- $iterator : RecursiveIterator
- $root : string
- $ignore_folders : array<string|int, mixed>
- $ignore_files : array<string|int, mixed>
accept()
Check whether the current element of the iterator is acceptable
public
accept() : bool
Return values
bool —true if the current element is acceptable, otherwise false.
getChildren()
public
getChildren() : RecursiveDirectoryFilterIterator|RecursiveFilterIterator
Return values
RecursiveDirectoryFilterIterator|RecursiveFilterIteratormatchesPattern()
Check if filename matches any pattern in the list
protected
matchesPattern(string $filename, array<string|int, mixed> $patterns) : bool
Parameters
- $filename : string
- $patterns : array<string|int, mixed>