PHP 클래스 Horde_Vcs_Directory_Base, horde

Copyright 2008-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.
저자: Anil Madhavapeddy ([email protected])
저자: Michael Slusarz ([email protected])
저자: Jan Schneider ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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.

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
_doFileSort ( array &$fileList, integer $how = Horde_Vcs::SORT_NONE ) Sorts a list files.

메소드 상세

__construct() 공개 메소드

Constructor.
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:

_doFileSort() 보호된 메소드

Sorts a list files.
또한 보기: applySort()
protected _doFileSort ( array &$fileList, integer $how = Horde_Vcs::SORT_NONE )
$fileList array A list of files.
$how integer A Horde_Vcs::SORT_* constant.

_fileAgeSort() 공개 메소드

Sort function for ascending age.
public _fileAgeSort ( $a, $b )

_fileAuthorSort() 공개 메소드

Sort function by author name.
public _fileAuthorSort ( $a, $b )

_fileNameSort() 공개 메소드

Sort function for ascending filename.
public _fileNameSort ( $a, $b )

_fileRevSort() 공개 메소드

Sort function for ascending revision.
public _fileRevSort ( $a, $b )

applySort() 공개 메소드

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() 공개 메소드

Returns a list of all branches in this directory.
public getBranches ( ) : array
리턴 array A branch list.

getDirectories() 공개 메소드

return array A (string) list of directories.
public getDirectories ( )

getFiles() 공개 메소드

Returns a list of all files inside this directory.
public getFiles ( $showdeleted = false ) : array
리턴 array A list of Horde_Vcs_File_Base objects.

프로퍼티 상세

$_dirName 보호되어 있는 프로퍼티

The directory's path inside the repository.
protected string $_dirName
리턴 string

$_dirs 보호되어 있는 프로퍼티

A (string) list of directories inside this directory.
protected array $_dirs
리턴 array

$_files 보호되어 있는 프로퍼티

A list of Horde_Vcs_File_Base objects representing all files inside this directory.
protected array $_files
리턴 array

$_rep 보호되어 있는 프로퍼티

The directory's repository object.
protected Horde_Vcs_Base $_rep
리턴 Horde_Vcs_Base