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 hans@xmpl.org

package

phing.tasks.ext.pearpackage

version

$Id: 02feea959e30c5f2af3e9d07fdbe62c5df3764e0 $

Methods

Set up the FileSet filelist generator

__construct( $options) 

'project' and 'filesets' are the only options that this class uses.

Arguments

$options

Generate the <filelist></filelist> section of the package file.

getFileList() : array

This function performs the backend generation of the array containing all files in this package

Response

array

structure of all files to include

mystrucsort

mystrucsort( $a,  $b) 

Arguments

$a

$b

Recursively add all the subdirectories of $contents to $dir without erasing anything in $dir

setDir( $dir,  $contents) : array

Arguments

$dir

$contents

Response

array

processed $dir

Recursively move contents of $struc into associative array

setupDirs( $struc,  $dir,  $contents) : array

The contents of $struc have many indexes like 'dir/subdir/subdir2'. This function converts them to array('dir' => array('subdir' => array('subdir2')))

Arguments

$struc

$dir

$contents

Response

array

same as struc but with array('dir' =>

         array(file1,file2,'subdir' => array(file1,...)))

Sorting functions for the file list

sortfiles( $a,  $b) 
access

private

Arguments

$a

$b

Properties

Curent Phing Project.

project : \Project
var

Type(s)

\Project

FileSets to use.

filesets : array
var

FileSet[]

Type(s)

array