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 SortableIterator

SortableIterator applies a sort on a given Iterator.

Symfony\Component\Finder\Iterator\SortableIterator implements IteratorAggregate
Namespace: Symfony\Component\Finder\Iterator
Author: Fabien Potencier <fabien@symfony.com>
Located at finder/Symfony/Component/Finder/Iterator/SortableIterator.php
Methods summary
public
# __construct( Traversable $iterator, integer|callable $sort )

Constructor.

Constructor.

Parameters

$iterator
Traversable
$iterator The Iterator to filter
$sort
integer|callable
$sort The sort type (SORT_BY_NAME, SORT_BY_TYPE, or a PHP callback)

Throws

InvalidArgumentException
public
# getIterator( )

Implementation of

IteratorAggregate::getIterator()
Constants summary
integer SORT_BY_NAME 1
#
integer SORT_BY_TYPE 2
#
integer SORT_BY_ACCESSED_TIME 3
#
integer SORT_BY_CHANGED_TIME 4
#
integer SORT_BY_MODIFIED_TIME 5
#
php-coveralls API documentation generated by ApiGen 2.8.0