Iterator/Filter/FileExtension.php
- Classes
- Kwf_Iterator_Filter_FileExtension
\Kwf_Iterator_Filter_FileExtension
- Extends from
- \FilterIterator
-
Properties
- $it
-
Methods
- __construct
- accept
Description
FilterIterator that filters based on file extension
Usage Example:
$it = new RecursiveDirectoryIterator('.');
$it = new RecursiveIteratorIterator($it);
$it = new Kwf_Iterator_Filter_FileExtension($it, array('js', 'css'));
Properties
$it = ''
Details
- visibility
- protected
- default
- final
- false
- static
- false
Methods
__construct(
$iterator, \string/array $extensions
)
:
Arguments
- $iterator
- $extensions
- \string/array
Extension(s) that should be accepted
Details
- visibility
- public
- final
- false
- static
- false
accept(
)
:
Details
- visibility
- public
- final
- false
- static
- false