Свойство | Type | Description | |
---|---|---|---|
$_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 |
Méthode | Description | |
---|---|---|
__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. |
Méthode | Description | |
---|---|---|
_ensureInitialized ( ) | ||
_getLog ( string $rev = null ) | ||
_init ( ) |
public __construct ( string $filename, array $opts = [] ) | ||
$filename | string | Full path (inside the source root) to this file. |
$opts | array | Additional parameters: - 'branch': (string) |
public getBlob ( $revision ) |
public getFileName ( ) : string | ||
Résultat | string | Filename without repository extension |
abstract public getLastLog ( ) : Horde_Vcs_QuickLog | ||
Résultat | Horde_Vcs_QuickLog | Log object of the last entry in the file. |
public getPreviousRevision ( string $rev ) : string | ||
$rev | string | A revision. |
Résultat | string | The previous revision or null if the first revision. |
public getRevision ( ) : string | ||
Résultat | string | Last revision of the current file. |
public getSourcerootPath ( ) : string | ||
Résultat | string | Pathname relative to the sourceroot. |
public sortByRevision ( $a, $b ) |
protected bool $_initialized | ||
Résultat | boolean |