PHP_Compat
[ class tree: PHP_Compat ] [ index: PHP_Compat ] [ all elements ]

File: glob.php

Source Location: /PHP_Compat-1.6.0a3/Compat/Function/glob.php

Classes:

Page Details:


GLOB_BRACE [line 18]

GLOB_BRACE = 1024

[ Top ]



GLOB_ERR [line 3]

GLOB_ERR = 1

[ Top ]



GLOB_MARK [line 6]

GLOB_MARK = 2

[ Top ]



GLOB_NOCHECK [line 12]

GLOB_NOCHECK = 16

[ Top ]



GLOB_NOESCAPE [line 15]

GLOB_NOESCAPE = 64

[ Top ]



GLOB_NOSORT [line 9]

GLOB_NOSORT = 4

[ Top ]



GLOB_ONLYDIR [line 21]

GLOB_ONLYDIR = 8192

[ Top ]



glob [line 361]

void glob( $pattern, [ $flags = 0])



Parameters

   $pattern  
   $flags  
[ Top ]



php_compat_glob [line 37]

void php_compat_glob( $pattern, [ $flags = 0])

Replace glob()
  • Author: Arpad Ray <arpad@php.net>
  • Version: $Revision: 269597 $
  • Copyright: 2004-2007 Aidan Lister <aidan@php.net>, Arpad Ray <arpad@php.net>
  • Link: http://php.net/glob
  • Since: PHP 4.3.0
  • License: LGPL


Parameters

   $pattern  
   $flags  
[ Top ]



php_compat_glob_brace_helper [line 261]

string php_compat_glob_brace_helper( string $brace, int $flags)

Converts glob braces
  • Return: a PCRE subpattern of alternatives


Parameters

string   $brace   the contents of the braces to convert
int   $flags   the flags passed to glob()
[ Top ]



php_compat_glob_brace_nosort_helper [line 347]

void php_compat_glob_brace_nosort_helper( $a, $b)

Callback sort function for (GLOB_BRACE | GLOB_NOSORT)

Receives the same arguments php_compat_glob_brace_sort_helper()



Parameters

   $a  
   $b  
[ Top ]



php_compat_glob_brace_sort_helper [line 334]

void php_compat_glob_brace_sort_helper( $a, $b)

Callback sort function for GLOB_BRACE

Each argument should be an array where the first element is the file path, and the second is its rank. The rank is the number of alternatives between this match and the beginning of the brace.



Parameters

   $a  
   $b  
[ Top ]



php_compat_glob_charclass_helper [line 280]

string php_compat_glob_charclass_helper( string $class, int $flags)

Converts glob character classes
  • Return: a PCRE character class


Parameters

string   $class   the contents of the class to convert
int   $flags   the flags passed to glob()
[ Top ]



php_compat_glob_convert_helper [line 198]

string php_compat_glob_convert_helper( string $input, int $flags)

Converts a section of a glob pattern to a PCRE pattern
  • Return: the escaped input


Parameters

string   $input   the pattern to convert
int   $flags   the flags passed to glob()
[ Top ]



php_compat_glob_nosort_helper [line 299]

void php_compat_glob_nosort_helper( $a, $b)

Callback sort function for GLOB_NOSORT

Sorts first by the base name, then in reverse by the extension



Parameters

   $a  
   $b  
[ Top ]



php_compat_glob_scan_helper [line 142]

mixed php_compat_glob_scan_helper( string $path, int $flags, [bool $recurse = false])

Scans a path
  • Return: an array of files in the given path where the key is the path, and the value is 1 if the file is a directory, 0 if it isn't. Returns false on unrecoverable errors, or all errors when GLOB_ERR is on.


Parameters

string   $path   the path to scan
int   $flags   the flags passed to glob()
bool   $recurse   true to scan recursively
[ Top ]



Documentation generated on Mon, 11 Mar 2019 15:39:39 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.