PHP Class Horde_Vcs_Directory_Cvs, horde
Copyright 2000-2016 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.
Show file
Open project: horde/horde
Class Usage Examples
Protected Properties
Property |
Type |
Description |
|
$_mergedFiles |
array |
A list of Horde_Vcs_File_Base objects representing all files inside this
and any Attic/ sub directory. |
|
Public Methods
Method |
Description |
|
__construct ( Horde_Vcs_Base $rep, string $dn, array $opts = [] ) |
Constructor. |
|
applySort ( integer $how = Horde_Vcs::SORT_NONE, integer $dir = Horde_Vcs::SORT_ASCENDING ) |
Sorts the the directory contents. |
|
getBranches ( ) : array |
Returns a list of all branches in this directory. |
|
getFiles ( $showdeleted = false ) : array |
Returns a list of all files inside this directory. |
|
Method Details
__construct()
public method
public __construct ( Horde_Vcs_Base $rep, string $dn, array $opts = [] ) |
$rep |
Horde_Vcs_Base |
A repository object. |
$dn |
string |
Path to the directory. |
$opts |
array |
Any additional options:
- 'showattic': (boolean) Parse any Attic/
sub-directory contents too. |
applySort()
public method
Sorts the the directory contents.
public applySort ( integer $how = Horde_Vcs::SORT_NONE, integer $dir = Horde_Vcs::SORT_ASCENDING ) |
$how |
integer |
A Horde_Vcs::SORT_* constant where * can be:
NONE, NAME, AGE, REV for sorting by name, age or
revision. |
$dir |
integer |
A Horde_Vcs::SORT_* constant where * can be:
ASCENDING, DESCENDING for the order of the sort. |
getBranches()
public method
Returns a list of all branches in this directory.
Returns a list of all files inside this directory.
public getFiles ( $showdeleted = false ) : array |
return |
array |
A list of Horde_Vcs_File_Base objects. |
Property Details
$_mergedFiles protected property
A list of Horde_Vcs_File_Base objects representing all files inside this
and any Attic/ sub directory.
protected array $_mergedFiles |
return |
array |
|