classes/phing/types/FileList.php
\FileList
FileList represents an explicitly named list of files. FileLists are useful when you want to capture a list of files regardless of whether they currently exist.
OR
(or a mixture of files="" and listfile="" can be used)
- Extends from
- \DataType
- author
- Hans Lellelid
- package
- phing.types
- version
- $Revision: 526 $
Properties
Methods

__construct(
$filelist
=
null
)
:
Construct a new FileList.
| Name | Type | Description |
|---|---|---|
| $filelist |

getDir(
$p
)
:
\PhingFileGet the basedir for files in list.
| Name | Type | Description |
|---|---|---|
| $p |
| Type | Description |
|---|---|
| \PhingFile |

getFiles(
\Project $p
)
:
arrayReturns the list of files represented by this FileList.
| Name | Type | Description |
|---|---|---|
| $p | \Project |
| Type | Description |
|---|---|
| array |

getListFile(
\Project $p
)
:
\PhingFileGet the source "list" file that contains file names.
| Name | Type | Description |
|---|---|---|
| $p | \Project |
| Type | Description |
|---|---|
| \PhingFile |

getRef(
\Project $p
)
:
Performs the check for circular references and returns the
referenced FileSet.
| Name | Type | Description |
|---|---|---|
| $p | \Project |

readListFile(
\Project $p
)
:
Reads file names from a file and adds them to the files array.
| Name | Type | Description |
|---|---|---|
| $p | \Project |

setDir(
\PhingFile $dir
)
:
Base directory for files in list.
| Name | Type | Description |
|---|---|---|
| $dir | \PhingFile |

setFiles(
array $filenames
)
:
Set the array of files in list.
| Name | Type | Description |
|---|---|---|
| $filenames | array |

setListFile(
string $file
)
:
Sets a source "list" file that contains filenames to add -- one per line.
| Name | Type | Description |
|---|---|---|
| $file | string |