Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • CustomFilterIterator
  • DateRangeFilterIterator
  • DepthRangeFilterIterator
  • ExcludeDirectoryFilterIterator
  • FilecontentFilterIterator
  • FilenameFilterIterator
  • FilePathsIterator
  • FileTypeFilterIterator
  • FilterIterator
  • MultiplePcreFilterIterator
  • PathFilterIterator
  • RecursiveDirectoryIterator
  • SizeRangeFilterIterator
  • SortableIterator
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class CustomFilterIterator

CustomFilterIterator filters files by applying anonymous functions.

The anonymous function receives a \SplFileInfo and must return false to remove files.

IteratorIterator implements Iterator, Traversable, OuterIterator
Extended by FilterIterator
Extended by Symfony\Component\Finder\Iterator\FilterIterator
Extended by Symfony\Component\Finder\Iterator\CustomFilterIterator
Namespace: Symfony\Component\Finder\Iterator
Author: Fabien Potencier <fabien@symfony.com>
Located at finder/Symfony/Component/Finder/Iterator/CustomFilterIterator.php
Methods summary
public
# __construct( Iterator $iterator, array $filters )

Constructor.

Constructor.

Parameters

$iterator
Iterator
$iterator The Iterator to filter
$filters
array
$filters An array of PHP callbacks

Throws

InvalidArgumentException

Overrides

FilterIterator::__construct()
public Boolean
# accept( )

Filters the iterator values.

Filters the iterator values.

Returns

Boolean
true if the value should be kept, false otherwise
Methods inherited from Symfony\Component\Finder\Iterator\FilterIterator
rewind()
Methods inherited from FilterIterator
current(), getInnerIterator(), key(), next(), valid()
php-coveralls API documentation generated by ApiGen 2.8.0