W3cubDocs

/Symfony 2.8

Symfony\Component\Finder\Iterator\FilePathsIterator

class FilePathsIterator extends ArrayIterator

Iterate over shell command result.

Methods

__construct(array $paths, string $baseDir)
mixed __call(string $name, array $arguments)
SplFileInfo current()

Return an instance of SplFileInfo with support for relative paths.

string key()
next()
rewind()
string getSubPath()
string getSubPathname()

Details

public __construct(array $paths, string $baseDir)

Parameters

array $paths List of paths returned by shell command
string $baseDir Base dir for relative path building

public mixed __call(string $name, array $arguments)

Parameters

string $name
array $arguments

Return Value

mixed

public SplFileInfo current()

Return an instance of SplFileInfo with support for relative paths.

Return Value

SplFileInfo File information

public string key()

Return Value

string

public next()

public rewind()

public string getSubPath()

Return Value

string

public string getSubPathname()

Return Value

string

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Finder/Iterator/FilePathsIterator.html