Class rex_finder

Finder.

rex_finder implements IteratorAggregate, Countable uses rex_factory_trait
Package: redaxo\core
Author: staabm
Author: gharlan
Located at redaxo/src/core/lib/util/finder.php

Methods summary

public static static
# factory( string $dir )

Returns a new finder object.

public mixed
# recursive( boolean $recursive = true )

Activate/Deactivate recursive directory scanning.

public mixed
# selfFirst( )

Fetch directory contents before recurse its subdirectories.

public mixed
# childFirst( )

Fetch child directories before their parent directory.

public mixed
# filesOnly( )

Fetch files only.

public mixed
# dirsOnly( )

Fetch dirs only.

public mixed
# ignoreFiles( string|array $glob, boolean $recursive = true )

Ignore all files which match the given glob pattern.

public mixed
# ignoreDirs( string|array $glob, boolean $recursive = true )

Ignore all directories which match the given glob pattern.

public mixed
# ignoreSystemStuff( boolean $ignoreSystemStuff = true )

Ignores system stuff (like .DS_Store, .svn, .git etc.).

public mixed
# sort( integer|callable $sort = rex_sortable_iterator::KEYS )

Sorts the elements.

public Iterator|SplFileInfo[]
# getIterator( )
public
# count( )

Methods used from rex_factory_trait

callFactoryClass(), getFactoryClass(), hasFactoryClass(), setFactoryClass()

Constants summary

string ALL
#'__ALL__'