Base file class.
Copyright 2008-2012 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.
Methods summary
public
|
#
__construct( string $filename, array $opts = array() )
Constructor.
Parameters
- $filename
- Full path (inside the source root) to this file.
- $opts
- <p>Additional parameters:
- 'branch': (string)</p>
|
public
|
#
__sleep( )
When serializing, don't return the repository object
When serializing, don't return the repository object
|
public
|
|
public
|
#
getBlob( mixed $revision )
TODO - better name, wrap an object around this?
TODO - better name, wrap an object around this?
|
public
boolean
|
#
isDeleted( )
Has the file been deleted?
Has the file been deleted?
Returns
boolean Is this file deleted?
|
public
string
|
#
getFileName( )
Returns name of the current file without the repository extensions.
Returns name of the current file without the repository extensions.
Returns
string Filename without repository extension
|
public
string
|
#
getRevision( )
Returns the last revision of the current file on the HEAD branch.
Returns the last revision of the current file on the HEAD branch.
Returns
string Last revision of the current file.
Throws
|
public
string
|
#
getPreviousRevision( string $rev )
Returns the revision before the specified revision.
Returns the revision before the specified revision.
Parameters
Returns
string The previous revision or null if the first revision.
|
abstract public
Horde_Vcs_QuickLog
|
#
getLastLog( )
Returns a log object for the most recent log entry of this file.
Returns a log object for the most recent log entry of this file.
Returns
Horde_Vcs_QuickLog Log object of the last entry in the file.
Throws
|
public
|
#
applySort( integer $how = Horde_Vcs::SORT_REV )
Sort the list of Horde_Vcs_Log objects that this file contains.
Sort the list of Horde_Vcs_Log objects that this file contains.
Parameters
- $how
- <p>Horde_Vcs::SORT_REV (sort by revision),
Horde_Vcs::SORT_NAME (sort by author name), or
Horde_Vcs::SORT_AGE (sort by commit date).</p>
|
public
|
#
sortByRevision( mixed $a, mixed $b )
The sortBy*() functions are internally used by applySort.
The sortBy*() functions are internally used by applySort.
|
public
|
|
public
|
|
public
string
|
#
getSourcerootPath( )
Return the filename relative to its sourceroot.
Return the filename relative to its sourceroot.
Returns
string Pathname relative to the sourceroot.
|
public
string
|
#
getPath( )
Return the "base" filename (i.e. the filename needed by the various
command line utilities).
Return the "base" filename (i.e. the filename needed by the various
command line utilities).
Returns
string A filename.
|
public
|
|
public
|
|
public
|
|
public
|
|