class FileListing (View source)

Functions for listing directories

Methods

__construct()

No description

array|bool
getDirContent(string $dir, string $expression = '')

Returns array of filtered file names

string|false
getFileSelectOptions(string $dir, string $extensions = '', string $active = '')

Returns options of filtered file names

string
supportedDecompressions()

Get currently supported decompressions.

Details

__construct()

No description

array|bool getDirContent(string $dir, string $expression = '')

Returns array of filtered file names

Parameters

string $dir

directory to list

string $expression

regular expression to match files

Return Value

array|bool

sorted file list on success, false on failure

string|false getFileSelectOptions(string $dir, string $extensions = '', string $active = '')

Returns options of filtered file names

Parameters

string $dir

directory to list

string $extensions

regular expression to match files

string $active

currently active choice

Return Value

string|false

Html

string supportedDecompressions()

Get currently supported decompressions.

Return Value

string

separated list of extensions usable in getDirContent