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

Class: PEAR_PackageFileManager_Perforce

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

Class Overview

PEAR_PackageFileManager_File
   |
   --PEAR_PackageFileManager_Perforce

Generate a file list from a Perforce checkout.


Author(s):

Version:

  • Release: 1.6.3

Copyright:

  • 2003-2007 The PHP Group

Methods


Inherited Variables

Inherited Methods

Class: PEAR_PackageFileManager_File

PEAR_PackageFileManager_File::PEAR_PackageFileManager_File()
Set up the File filelist generator
PEAR_PackageFileManager_File::dirList()
Retrieve a listing of every file in $directory and all subdirectories.
PEAR_PackageFileManager_File::getFileList()
Generate the <filelist></filelist> section of the package file.

Class Details

[line 44]
Generate a file list from a Perforce checkout.

This requires the 'p4' command line client, a properly-configured Perforce environment, and a connection to the Perforce server. Specifically, the 'p4 have' command is used to determine which local files are under Perforce's control.



[ Top ]


Method Detail

dirList   [line 54]

mixed dirList( string $directory)

Build a list of files based on the output of the 'p4 have' command.
  • Return: An array of full filenames or a PEAR_Error value if $directory does not exist.

Overrides PEAR_PackageFileManager_File::dirList() (Retrieve a listing of every file in $directory and all subdirectories.)

Parameters:

string   $directory     The directory in which to list the files.

[ Top ]


Documentation generated on Tue, 20 Nov 2007 15:30:23 -0500 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.