Overview

Packages

  • None
  • Vcs

Classes

  • Horde_Vcs
  • Horde_Vcs_Base
  • Horde_Vcs_Cvs
  • Horde_Vcs_Directory_Base
  • Horde_Vcs_Directory_Cvs
  • Horde_Vcs_Directory_Git
  • Horde_Vcs_Directory_Rcs
  • Horde_Vcs_Directory_Svn
  • Horde_Vcs_File_Base
  • Horde_Vcs_File_Cvs
  • Horde_Vcs_File_Git
  • Horde_Vcs_File_Rcs
  • Horde_Vcs_File_Svn
  • Horde_Vcs_Git
  • Horde_Vcs_Log_Base
  • Horde_Vcs_Log_Cvs
  • Horde_Vcs_Log_Git
  • Horde_Vcs_Log_Rcs
  • Horde_Vcs_Log_Svn
  • Horde_Vcs_Patchset
  • Horde_Vcs_Patchset_Base
  • Horde_Vcs_Patchset_Cvs
  • Horde_Vcs_Patchset_Git
  • Horde_Vcs_Patchset_Svn
  • Horde_Vcs_QuickLog_Base
  • Horde_Vcs_QuickLog_Cvs
  • Horde_Vcs_QuickLog_Git
  • Horde_Vcs_QuickLog_Rcs
  • Horde_Vcs_QuickLog_Svn
  • Horde_Vcs_Rcs
  • Horde_Vcs_Svn
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Vcs_Directory_Base

Base directory class that stores information about the files in a single directory in the repository.

Copyright 2008-2012 Horde LLC (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Direct known subclasses

Horde_Vcs_Directory_Git, Horde_Vcs_Directory_Rcs, Horde_Vcs_Directory_Svn

Indirect known subclasses

Horde_Vcs_Directory_Cvs
Abstract
Package: Vcs
Author: Anil Madhavapeddy anil@recoil.org
Author: Michael Slusarz slusarz@horde.org
Author: Jan Schneider jan@horde.org
Located at Horde/Vcs/Directory/Base.php
Methods summary
public
# __construct( Horde_Vcs_Base $rep, string $dn, array $opts = array() )

Constructor.

Constructor.

Parameters

$rep
A repository object.
$dn
Path to the directory.
$opts
Any additional options:

Throws

Horde_Vcs_Exception
public
# getDirectories( )

Returns a list of directories inside this directory.

Returns a list of directories inside this directory.

return array A (string) list of directories.

public array
# getFiles( mixed $showdeleted = false )

Returns a list of all files inside this directory.

Returns a list of all files inside this directory.

Returns

array
A list of Horde_Vcs_File_Base objects.
public
# applySort( integer $how = Horde_Vcs::SORT_NONE, integer $dir = Horde_Vcs::SORT_ASCENDING )

Sorts the the directory contents.

Sorts the the directory contents.

Parameters

$how
<p>A Horde_Vcs::SORT_* constant where * can be: NONE, NAME, AGE, REV for sorting by name, age or revision.</p>
$dir
<p>A Horde_Vcs::SORT_* constant where * can be: ASCENDING, DESCENDING for the order of the sort.</p>
public
# _fileAgeSort( mixed $a, mixed $b )

Sort function for ascending age.

Sort function for ascending age.

public
# _fileAuthorSort( mixed $a, mixed $b )

Sort function by author name.

Sort function by author name.

public
# _fileNameSort( mixed $a, mixed $b )

Sort function for ascending filename.

Sort function for ascending filename.

public
# _fileRevSort( mixed $a, mixed $b )

Sort function for ascending revision.

Sort function for ascending revision.

public array
# getBranches( )

Returns a list of all branches in this directory.

Returns a list of all branches in this directory.

Returns

array
A branch list.
API documentation generated by ApiGen