Property | Type | Description | |
---|---|---|---|
$_dirName | string | The directory's path inside the repository. | |
$_dirs | array | A (string) list of directories inside this directory. | |
$_files | array | A list of Horde_Vcs_File_Base objects representing all files inside this directory. | |
$_rep | Horde_Vcs_Base | The directory's repository object. |
Method | Description | |
---|---|---|
__construct ( Horde_Vcs_Base $rep, string $dn, array $opts = [] ) | Constructor. | |
_fileAgeSort ( $a, $b ) | Sort function for ascending age. | |
_fileAuthorSort ( $a, $b ) | Sort function by author name. | |
_fileNameSort ( $a, $b ) | Sort function for ascending filename. | |
_fileRevSort ( $a, $b ) | Sort function for ascending revision. | |
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. | |
getDirectories ( ) | Returns a list of directories inside this directory. | |
getFiles ( $showdeleted = false ) : array | Returns a list of all files inside this directory. |
Method | Description | |
---|---|---|
_doFileSort ( array &$fileList, integer $how = Horde_Vcs::SORT_NONE ) | Sorts a list files. |
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: |
protected _doFileSort ( array &$fileList, integer $how = Horde_Vcs::SORT_NONE ) | ||
$fileList | array | A list of files. |
$how | integer | A Horde_Vcs::SORT_* constant. |
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. |
public getBranches ( ) : array | ||
return | array | A branch list. |
public getDirectories ( ) |
protected string $_dirName | ||
return | string |
protected array $_dirs | ||
return | array |
protected array $_files | ||
return | array |