[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/phing/tasks/ext/pearpackage/ -> Fileset.php (sommaire)

(pas de description)

Poids: 231 lignes (8 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

PEAR_PackageFileManager_Fileset:: (6 méthodes):
  __construct()
  getFileList()
  setupDirs()
  setDir()
  sortfiles()
  mystrucsort()


Classe: PEAR_PackageFileManager_Fileset  - X-Ref

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().

__construct($parent, $options)   X-Ref
Set up the FileSet filelist generator

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

param: PEAR_PackageFileManager
param: array

getFileList()   X-Ref
Generate the <filelist></filelist> section
of the package file.

This function performs the backend generation of the array
containing all files in this package
return: array structure of all files to include

setupDirs($struc, $dir, $contents)   X-Ref
Recursively move contents of $struc into associative array

The contents of $struc have many indexes like 'dir/subdir/subdir2'.
This function converts them to
array('dir' => array('subdir' => array('subdir2')))
param: array struc is array('dir' => array of files in dir,
param: array array form of 'dir/subdir/subdir2' array('dir','subdir','subdir2')
return: array same as struc but with array('dir' =>

setDir($dir, $contents)   X-Ref
Recursively add all the subdirectories of $contents to $dir without erasing anything in
$dir

param: array
param: array
return: array processed $dir

sortfiles($a, $b)   X-Ref
Sorting functions for the file list

param: string
param: string

mystrucsort($a, $b)   X-Ref
Pas de description



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7