class Filelist (View source)

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

Properties

private $Context The Context.
private $options The options array.

Methods

__construct(Context $Context)

The constructor.

config(array $options)

Configure the filelist.

array
getFiles()

Return the files array.

Details

__construct(Context $Context)

The constructor.

Parameters

Context $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.