PHP 클래스 Horde_Vcs_File_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.
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_branch string TODO
$_dir string The directory of this file.
$_driver string The current driver.
$_initialized boolean Have we initalized logs and revisions?
$_logs array TODO
$_name string The name of this file.
$_rep TODO
$_revs array TODO

공개 메소드들

메소드 설명
__construct ( string $filename, array $opts = [] ) Constructor.
__sleep ( ) When serializing, don't return the repository object
applySort ( integer $how = Horde_Vcs::SORT_REV ) Sort the list of Horde_Vcs_Log objects that this file contains.
getBlob ( $revision ) TODO - better name, wrap an object around this?
getBranches ( ) TODO
getFileName ( ) : string Returns name of the current file without the repository extensions.
getLastLog ( ) : Horde_Vcs_QuickLog Returns a log object for the most recent log entry of this file.
getLog ( $rev = null ) TODO
getPath ( ) : string Return the "base" filename (i.e. the filename needed by the various command line utilities).
getPreviousRevision ( string $rev ) : string Returns the revision before the specified revision.
getRevision ( ) : string Returns the last revision of the current file on the HEAD branch.
getSourcerootPath ( ) : string Return the filename relative to its sourceroot.
getTags ( ) TODO
isDeleted ( ) : boolean Has the file been deleted?
revisionCount ( ) TODO
setRepository ( $rep ) TODO
sortByAge ( $a, $b )
sortByName ( $a, $b )
sortByRevision ( $a, $b ) The sortBy*() functions are internally used by applySort.

보호된 메소드들

메소드 설명
_ensureInitialized ( )
_getLog ( string $rev = null )
_init ( )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $filename, array $opts = [] )
$filename string Full path (inside the source root) to this file.
$opts array Additional parameters: - 'branch': (string)

__sleep() 공개 메소드

When serializing, don't return the repository object
public __sleep ( )

_ensureInitialized() 보호된 메소드

protected _ensureInitialized ( )

_getLog() 보호된 메소드

protected _getLog ( string $rev = null )
$rev string The revision identifier.

_init() 추상적인 보호된 메소드

abstract protected _init ( )

applySort() 공개 메소드

Sort the list of Horde_Vcs_Log objects that this file contains.
public applySort ( integer $how = Horde_Vcs::SORT_REV )
$how integer Horde_Vcs::SORT_REV (sort by revision), Horde_Vcs::SORT_NAME (sort by author name), or Horde_Vcs::SORT_AGE (sort by commit date).

getBlob() 공개 메소드

TODO - better name, wrap an object around this?
public getBlob ( $revision )

getBranches() 공개 메소드

TODO
public getBranches ( )

getFileName() 공개 메소드

Returns name of the current file without the repository extensions.
public getFileName ( ) : string
리턴 string Filename without repository extension

getLastLog() 추상적인 공개 메소드

Returns a log object for the most recent log entry of this file.
abstract public getLastLog ( ) : Horde_Vcs_QuickLog
리턴 Horde_Vcs_QuickLog Log object of the last entry in the file.

getLog() 공개 메소드

TODO
public getLog ( $rev = null )

getPath() 공개 메소드

Return the "base" filename (i.e. the filename needed by the various command line utilities).
public getPath ( ) : string
리턴 string A filename.

getPreviousRevision() 공개 메소드

Returns the revision before the specified revision.
public getPreviousRevision ( string $rev ) : string
$rev string A revision.
리턴 string The previous revision or null if the first revision.

getRevision() 공개 메소드

Returns the last revision of the current file on the HEAD branch.
public getRevision ( ) : string
리턴 string Last revision of the current file.

getSourcerootPath() 공개 메소드

Return the filename relative to its sourceroot.
public getSourcerootPath ( ) : string
리턴 string Pathname relative to the sourceroot.

getTags() 공개 메소드

TODO
public getTags ( )

isDeleted() 공개 메소드

Has the file been deleted?
public isDeleted ( ) : boolean
리턴 boolean Is this file deleted?

revisionCount() 공개 메소드

TODO
public revisionCount ( )

setRepository() 공개 메소드

TODO
public setRepository ( $rep )

sortByAge() 공개 메소드

public sortByAge ( $a, $b )

sortByName() 공개 메소드

public sortByName ( $a, $b )

sortByRevision() 공개 메소드

The sortBy*() functions are internally used by applySort.
public sortByRevision ( $a, $b )

프로퍼티 상세

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

TODO
protected string $_branch
리턴 string

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

The directory of this file.
protected string $_dir
리턴 string

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

The current driver.
protected string $_driver
리턴 string

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

Have we initalized logs and revisions?
protected bool $_initialized
리턴 boolean

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

TODO
protected array $_logs
리턴 array

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

The name of this file.
protected string $_name
리턴 string

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

TODO
protected $_rep

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

TODO
protected array $_revs
리턴 array