PEAR_PackageFileManager
[ class tree: PEAR_PackageFileManager ] [ index: PEAR_PackageFileManager ] [ all elements ]

Class: PEAR_PackageFileManager_File

Source Location: /PEAR_PackageFileManager-1.6.3/PackageFileManager/File.php

Class Overview


Retrieve the files from a directory listing


Author(s):

Version:

  • Release: 1.6.3

Copyright:

  • 2003-2007 The PHP Group

Methods


Child classes:

PEAR_PackageFileManager_Perforce
Generate a file list from a Perforce checkout.
PEAR_PackageFileManager_Svn
Generate a file list from a Subversion checkout
PEAR_PackageFileManager_CVS
Generate a file list from a CVS checkout.

Inherited Variables

Inherited Methods


Class Details

[line 42]
Retrieve the files from a directory listing

This class is used to retrieve a raw directory listing. Use the PEAR_PackageFileManager_CVS class to only retrieve the contents of a cvs repository when generating the package.xml



[ Top ]


Method Detail

PEAR_PackageFileManager_File (Constructor)   [line 76]

void PEAR_PackageFileManager_File( object &$parent, array $options)

Set up the File filelist generator

'ignore' and 'include' are the only options that this class uses. See PEAR_PackageFileManager::setOptions() for more information and formatting of this option


Parameters:

object   &$parent   —  PEAR_PackageFileManager
array   $options   —  list of generation options

[ Top ]

dirList   [line 175]

array dirList( string $directory)

Retrieve a listing of every file in $directory and all subdirectories.

The return format is an array of full paths to files

  • Return: list of files in a directory
  • Throws: PEAR_PACKAGEFILEMANAGER_DIR_DOESNT_EXIST
  • Access: protected

Overridden in child classes as:

PEAR_PackageFileManager_Perforce::dirList()
Build a list of files based on the output of the 'p4 have' command.
PEAR_PackageFileManager_Svn::dirList()
Return a list of all files in the CVS repository
PEAR_PackageFileManager_CVS::dirList()
Return a list of all files in the CVS repository

Parameters:

string   $directory   —  full path to the directory you want the list of

[ Top ]

getFileList   [line 91]

array getFileList( )

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

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


[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:11:35 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.