W3cubDocs

/Symfony 2.7

Symfony\Component\Finder\Adapter\GnuFindAdapter

class GnuFindAdapter extends AbstractFindAdapter

Shell engine implementation using GNU find command.

Methods

bool isSupported()

Tests adapter support for current platform.

from AbstractAdapter
AdapterInterface setFollowLinks(bool $followLinks) from AbstractAdapter
AdapterInterface setMode(int $mode) from AbstractAdapter
AdapterInterface setDepths(array $depths) from AbstractAdapter
AdapterInterface setExclude(array $exclude) from AbstractAdapter
AdapterInterface setNames(array $names) from AbstractAdapter
AdapterInterface setNotNames(array $notNames) from AbstractAdapter
AdapterInterface setContains(array $contains) from AbstractAdapter
AdapterInterface setNotContains(array $notContains) from AbstractAdapter
AdapterInterface setSizes(array $sizes) from AbstractAdapter
AdapterInterface setDates(array $dates) from AbstractAdapter
AdapterInterface setFilters(array $filters) from AbstractAdapter
AdapterInterface setSort(Closure|int $sort) from AbstractAdapter
AdapterInterface setPath(array $paths) from AbstractAdapter
AdapterInterface setNotPath(array $notPaths) from AbstractAdapter
AdapterInterface ignoreUnreadableDirs(bool $ignore = true) from AbstractAdapter
__construct()

Constructor.

from AbstractFindAdapter
Iterator searchInDirectory(string $dir) from AbstractFindAdapter
string getName()

Returns adapter name.

Details

public bool isSupported()

Tests adapter support for current platform.

Return Value

bool

Parameters

bool $followLinks

Return Value

AdapterInterface Current instance

public AdapterInterface setMode(int $mode)

Parameters

int $mode

Return Value

AdapterInterface Current instance

public AdapterInterface setDepths(array $depths)

Parameters

array $depths

Return Value

AdapterInterface Current instance

public AdapterInterface setExclude(array $exclude)

Parameters

array $exclude

Return Value

AdapterInterface Current instance

public AdapterInterface setNames(array $names)

Parameters

array $names

Return Value

AdapterInterface Current instance

public AdapterInterface setNotNames(array $notNames)

Parameters

array $notNames

Return Value

AdapterInterface Current instance

public AdapterInterface setContains(array $contains)

Parameters

array $contains

Return Value

AdapterInterface Current instance

public AdapterInterface setNotContains(array $notContains)

Parameters

array $notContains

Return Value

AdapterInterface Current instance

public AdapterInterface setSizes(array $sizes)

Parameters

array $sizes

Return Value

AdapterInterface Current instance

public AdapterInterface setDates(array $dates)

Parameters

array $dates

Return Value

AdapterInterface Current instance

public AdapterInterface setFilters(array $filters)

Parameters

array $filters

Return Value

AdapterInterface Current instance

public AdapterInterface setSort(Closure|int $sort)

Parameters

Closure|int $sort

Return Value

AdapterInterface Current instance

public AdapterInterface setPath(array $paths)

Parameters

array $paths

Return Value

AdapterInterface Current instance

public AdapterInterface setNotPath(array $notPaths)

Parameters

array $notPaths

Return Value

AdapterInterface Current instance

public AdapterInterface ignoreUnreadableDirs(bool $ignore = true)

Parameters

bool $ignore

Return Value

AdapterInterface Current instance

public __construct()

Constructor.

public Iterator searchInDirectory(string $dir)

Parameters

string $dir

Return Value

Iterator Result iterator

public string getName()

Returns adapter name.

Return Value

string

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Finder/Adapter/GnuFindAdapter.html