Wrapper for glob with fallback if GLOB_BRACE is not available.

 Methods

Find pathnames matching a pattern.

glob(string $pattern, int $flags, bool $forceFallback) : array

see \Zend\Stdlib\http://docs.php.net/glob

Parameters

$pattern

string

$flags

int

$forceFallback

bool

Exceptions

\Zend\Stdlib\Exception\RuntimeException

Returns

array

Expand braces manually, then use the system glob.

fallbackGlob(string $pattern, int $flags) : array

Parameters

$pattern

string

$flags

int

Exceptions

\Zend\Stdlib\Exception\RuntimeException

Returns

array

Find the end of the sub-pattern in a brace expression.

nextBraceSub(string $pattern, int $begin, int $flags) : int | null

Parameters

$pattern

string

$begin

int

$flags

int

Returns

intnull

Use the glob function provided by the system.

systemGlob(string $pattern, int $flags) : array

Parameters

$pattern

string

$flags

int

Exceptions

\Zend\Stdlib\Exception\RuntimeException

Returns

array

 Constants

 

GLOB_BRACE

GLOB_BRACE 

 

GLOB_ERR

GLOB_ERR 

 

GLOB_MARK

GLOB_MARK 

 

GLOB_NOCHECK

GLOB_NOCHECK 

 

GLOB_NOESCAPE

GLOB_NOESCAPE 

 

GLOB_NOSORT

GLOB_NOSORT 

 

GLOB_ONLYDIR

GLOB_ONLYDIR