Class VC_Directory_cvs

Description

VC_cvs directory class.

Copyright Anil Madhavapeddy, <anil@recoil.org>

Located in /VC/VC/cvs.php (line 339)


	
			
Variable Summary
 mixed $atticFiles
 mixed $dirName
 mixed $dirs
 mixed $files
 mixed $mergedFiles
 mixed $moduleName
 mixed $parent
 mixed $rep
 mixed $sortDir
Method Summary
 VC_Directory_cvs VC_Directory_cvs (VC_cvs $rep, string $dn, [VC_Directory_cvs $pn = ''])
 void applySort ([integer $how = VC_SORT_NONE], [integer $dir = VC_SORT_ASCENDING])
 boolean|object browseDir ([ $cache = null], [ $quicklog = true], [ $showattic = false])
 void doFileSort ( &$fileList, [ $how = VC_SORT_NONE], [ $dir = VC_SORT_ASCENDING])
 void fileAgeSort ( $a,  $b)
 void fileAuthorSort ( $a,  $b)
 void fileNameSort ( $a,  $b)
 void fileRevSort ( $a,  $b)
 string queryDir ()
 void &queryDirList ()
 void &queryFileList ([ $showattic = false])
Variables
mixed $atticFiles (line 344)
mixed $dirName (line 342)
mixed $dirs (line 346)
mixed $files (line 343)
mixed $mergedFiles (line 345)
mixed $moduleName (line 348)
mixed $parent (line 347)
mixed $rep (line 341)
mixed $sortDir (line 349)
Methods
Constructor VC_Directory_cvs (line 359)

Creates a CVS Directory object to store information about the files in a single directory in the repository.

VC_Directory_cvs VC_Directory_cvs (VC_cvs $rep, string $dn, [VC_Directory_cvs $pn = ''])
  • VC_cvs $rep: A repository object
  • string $dn: Path to the directory.
  • VC_Directory_cvs $pn: The parent VC_Directory to this one.
applySort (line 465)

Sort the contents of the directory in a given fashion and order.

void applySort ([integer $how = VC_SORT_NONE], [integer $dir = VC_SORT_ASCENDING])
  • integer $how: Of the form VC_SORT_* where * can be: NONE, NAME, AGE, REV for sorting by name, age or revision.
  • integer $dir: Of the form VC_SORT_* where * can be: ASCENDING, DESCENDING for the order of the sort.
browseDir (line 402)

Tell the object to open and browse its current directory, and retrieve a list of all the objects in there. It then populates the file/directory stack and makes it available for retrieval.

  • return: PEAR_Error object on an error, true on success.
boolean|object browseDir ([ $cache = null], [ $quicklog = true], [ $showattic = false])
  • $cache
  • $quicklog
  • $showattic
doFileSort (line 479)
void doFileSort ( &$fileList, [ $how = VC_SORT_NONE], [ $dir = VC_SORT_ASCENDING])
  • &$fileList
  • $how
  • $dir
fileAgeSort (line 507)

Sort function for file age.

void fileAgeSort ( $a,  $b)
  • $a
  • $b
fileAuthorSort (line 523)

Sort function by author name.

void fileAuthorSort ( $a,  $b)
  • $a
  • $b
fileNameSort (line 539)

Sort function for filename.

void fileNameSort ( $a,  $b)
  • $a
  • $b
fileRevSort (line 551)

Sort function for revision.

void fileRevSort ( $a,  $b)
  • $a
  • $b
queryDir (line 375)

Return fully qualified pathname to this directory with no trailing /.

  • return: Pathname of this directory
string queryDir ()
queryDirList (line 380)
void &queryDirList ()
queryFileList (line 386)
void &queryFileList ([ $showattic = false])
  • $showattic

Documentation generated on Sun, 30 Jan 2011 05:16:16 +0000 by phpDocumentor 1.4.3