classes/phing/tasks/ext/pearpackage/Fileset.php
Builds list of files for PEAR_PackageFileManager using a Phing FileSet.
Some code here is taken from PEAR_PackageFileManager_File -- getting results from flat array into the assoc array expected from getFileList().
- author
- Greg Beaver
- author
- Hans Lellelid
- package
- phing.tasks.ext.pearpackage
- version
- $Revision: 772 $
\PEAR_PackageFileManager_Fileset
Builds list of files for PEAR_PackageFileManager using a Phing FileSet.
Some code here is taken from PEAR_PackageFileManager_File -- getting results from flat array into the assoc array expected from getFileList().
- author
- Greg Beaver
- author
- Hans Lellelid
- package
- phing.tasks.ext.pearpackage
- version
- $Revision: 772 $
Properties
Methods

__construct(
$options
)
:
'project' and 'filesets' are the only options that this class uses.
| Name | Type | Description |
|---|---|---|
| $options | PEAR_PackageFileManager |

getFileList(
)
:
arrayThis function performs the backend generation of the array containing all files in this package
| Type | Description |
|---|---|
| array |

setDir(
$dir, $contents
)
:
array| Name | Type | Description |
|---|---|---|
| $dir | array | |
| $contents | array |
| Type | Description |
|---|---|
| array |

setupDirs(
array $struc, array $dir, $contents
)
:
arrayThe contents of $struc have many indexes like 'dir/subdir/subdir2'. This function converts them to array('dir' => array('subdir' => array('subdir2')))
| Name | Type | Description |
|---|---|---|
| $struc | array | struc is array('dir' => array of files in dir, 'dir/subdir' => array of files in dir/subdir,...) |
| $dir | array | array form of 'dir/subdir/subdir2' array('dir','subdir','subdir2') |
| $contents |
| Type | Description |
|---|---|
| array |