FileAccess Orion

Glob
in package

Wrapper for glob with fallback if GLOB_BRACE is not available.

Table of Contents

GLOB_BRACE  = 0x10
GLOB_ERR  = 0x40
GLOB_MARK  = 0x1
GLOB_NOCHECK  = 0x4
GLOB_NOESCAPE  = 0x8
GLOB_NOSORT  = 0x2
GLOB_ONLYDIR  = 0x20
glob()  : array<string|int, mixed>
Find pathnames matching a pattern.
fallbackGlob()  : array<string|int, mixed>
Expand braces manually, then use the system glob.
nextBraceSub()  : int|null
Find the end of the sub-pattern in a brace expression.
systemGlob()  : array<string|int, mixed>
Use the glob function provided by the system.

Constants

GLOB_BRACE

public mixed GLOB_BRACE = 0x10

GLOB_ERR

public mixed GLOB_ERR = 0x40

GLOB_MARK

public mixed GLOB_MARK = 0x1

GLOB_NOCHECK

public mixed GLOB_NOCHECK = 0x4

GLOB_NOESCAPE

public mixed GLOB_NOESCAPE = 0x8

GLOB_NOSORT

public mixed GLOB_NOSORT = 0x2

GLOB_ONLYDIR

public mixed GLOB_ONLYDIR = 0x20

Methods

glob()

Find pathnames matching a pattern.

public static glob(string $pattern, int $flags[, bool $forceFallback = false ]) : array<string|int, mixed>
Parameters
$pattern : string
$flags : int
$forceFallback : bool = false
Tags
see
http://docs.php.net/glob
throws
RuntimeException
Return values
array<string|int, mixed>

fallbackGlob()

Expand braces manually, then use the system glob.

protected static fallbackGlob(string $pattern, int $flags) : array<string|int, mixed>
Parameters
$pattern : string
$flags : int
Tags
throws
RuntimeException
Return values
array<string|int, mixed>

nextBraceSub()

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

protected static nextBraceSub(string $pattern, int $begin, int $flags) : int|null
Parameters
$pattern : string
$begin : int
$flags : int
Return values
int|null

systemGlob()

Use the glob function provided by the system.

protected static systemGlob(string $pattern, int $flags) : array<string|int, mixed>
Parameters
$pattern : string
$flags : int
Tags
throws
RuntimeException
Return values
array<string|int, mixed>

Search results