Zend Framework  3.0
Static Public Member Functions | Public Attributes | Static Protected Member Functions | List of all members
Glob Class Reference

Wrapper for glob with fallback if GLOB_BRACE is not available. More...

Static Public Member Functions

static glob ($pattern, $flags=0, $forceFallback=false)
 #@-
 

Public Attributes

const GLOB_MARK = 0x01
 #@+ Glob constants.
 
const GLOB_NOSORT = 0x02
 
const GLOB_NOCHECK = 0x04
 
const GLOB_NOESCAPE = 0x08
 
const GLOB_BRACE = 0x10
 
const GLOB_ONLYDIR = 0x20
 
const GLOB_ERR = 0x40
 

Static Protected Member Functions

static systemGlob ($pattern, $flags)
 Use the glob function provided by the system.
 
static fallbackGlob ($pattern, $flags)
 Expand braces manually, then use the system glob.
 
static nextBraceSub ($pattern, $begin, $flags)
 Find the end of the sub-pattern in a brace expression.
 

Detailed Description

Wrapper for glob with fallback if GLOB_BRACE is not available.

Member Function Documentation

static fallbackGlob (   $pattern,
  $flags 
)
staticprotected

Expand braces manually, then use the system glob.

Parameters
string$pattern
int$flags
Returns
array
Exceptions
Exception\RuntimeException
static glob (   $pattern,
  $flags = 0,
  $forceFallback = false 
)
static

#@-

Find pathnames matching a pattern.

See Also
http://docs.php.net/glob
Parameters
string$pattern
int$flags
bool$forceFallback
Returns
array
Exceptions
Exception\RuntimeException
static nextBraceSub (   $pattern,
  $begin,
  $flags 
)
staticprotected

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

Parameters
string$pattern
int$begin
int$flags
Returns
int|null
static systemGlob (   $pattern,
  $flags 
)
staticprotected

Use the glob function provided by the system.

Parameters
string$pattern
int$flags
Returns
array
Exceptions
Exception\RuntimeException

Member Data Documentation

const GLOB_BRACE = 0x10
const GLOB_ERR = 0x40
const GLOB_MARK = 0x01

#@+ Glob constants.

const GLOB_NOCHECK = 0x04
const GLOB_NOESCAPE = 0x08
const GLOB_NOSORT = 0x02
const GLOB_ONLYDIR = 0x20