class Filelist (View source)

The Filelist object represents a set of files based on a file pattern depending on the current context.

Methods

__construct(object $Context)

The constructor.

config(array $options)

Configure the filelist.

array
getFiles()

Return the files array.

Details

__construct(object $Context)

The constructor.

Parameters

object $Context

config(array $options)

Configure the filelist.

Parameters

array $options

array getFiles()

Return the files array.

Note that the returned filelist depends on the current context. Changing the context will change the filelist as long as the glob pattern is relative.

Return Value

array The array of matched files.