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 PathFilterIterator

PathFilterIterator filters files by path patterns (e.g. some/special/dir).

IteratorIterator implements Iterator, Traversable, OuterIterator
Extended by FilterIterator
Extended by Symfony\Component\Finder\Iterator\FilterIterator
Extended by Symfony\Component\Finder\Iterator\MultiplePcreFilterIterator
Extended by Symfony\Component\Finder\Iterator\PathFilterIterator
Namespace: Symfony\Component\Finder\Iterator
Author: Fabien Potencier <fabien@symfony.com>
Author: Włodzimierz Gajda <gajdaw@gajdaw.pl>
Located at finder/Symfony/Component/Finder/Iterator/PathFilterIterator.php
Methods summary
public Boolean
# accept( )

Filters the iterator values.

Filters the iterator values.

Returns

Boolean
true if the value should be kept, false otherwise
protected string
# toRegex( string $str )

Converts strings to regexp.

Converts strings to regexp.

PCRE patterns are left unchanged.

Default conversion: 'lorem/ipsum/dolor' ==> 'lorem\/ipsum\/dolor/'

Use only / as directory separator (on Windows also).

Parameters

$str
string
$str Pattern: regexp or dirname.

Returns

string
regexp corresponding to a given string or regexp
Methods inherited from Symfony\Component\Finder\Iterator\MultiplePcreFilterIterator
__construct(), isRegex()
Methods inherited from Symfony\Component\Finder\Iterator\FilterIterator
rewind()
Methods inherited from FilterIterator
current(), getInnerIterator(), key(), next(), valid()
Properties inherited from Symfony\Component\Finder\Iterator\MultiplePcreFilterIterator
$matchRegexps, $noMatchRegexps
php-coveralls API documentation generated by ApiGen 2.8.0