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

Propertypublic  $dir= ''

Base directory for this file list.

Details
Type
Propertypublic  $filenames= 'array'

Array containing all filenames.

Default valuearrayDetails
Type
Propertypublic  $listfile= ''

PhingFile that contains a list of files (one per line).

Details
Type

Methods

methodpublic  __construct(  $filelist = null ) :
Construct a new FileList.
Parameters
Name Type Description
$filelist
methodpublic  getDir(  $p ) : \PhingFile
Get the basedir for files in list.
Parameters
Name Type Description
$p
Returns
Type Description
\PhingFile
methodpublic  getFiles( \Project $p ) : array
Returns the list of files represented by this FileList.
Parameters
Name Type Description
$p \Project
Returns
Type Description
array
methodpublic  getListFile( \Project $p ) : \PhingFile
Get the source "list" file that contains file names.
Parameters
Name Type Description
$p \Project
Returns
Type Description
\PhingFile
methodpublic  getRef( \Project $p ) :
Performs the check for circular references and returns the referenced FileSet.
Parameters
Name Type Description
$p \Project
methodprivate  readListFile( \Project $p ) :
Reads file names from a file and adds them to the files array.
Parameters
Name Type Description
$p \Project
methodpublic  setDir( \PhingFile $dir ) :
Base directory for files in list.
Parameters
Name Type Description
$dir \PhingFile
methodpublic  setFiles( array $filenames ) :
Set the array of files in list.
Parameters
Name Type Description
$filenames array
methodpublic  setListFile( string $file ) :
Sets a source "list" file that contains filenames to add -- one per line.
Parameters
Name Type Description
$file string
methodpublic  setRefid(  $r ) :
Makes this instance in effect a reference to another FileList instance.
Parameters
Name Type Description
$r
Documentation was generated by DocBlox 0.13.1.