Documentation

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

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.

matchesPattern()

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>
Return values
bool

        
On this page

Search results