PHP Class Horde_Vcs_Svn, horde

Constructor args:
'sourceroot': The source root for this repository
'paths': Hash with the locations of all necessary binaries: 'svn', 'diff'
Copyright 2000-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.
Author: Anil Madhavapeddy ([email protected])
Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_Vcs_Base
Afficher le fichier Open project: horde/horde

Protected Properties

Свойство Type Description
$_driver string The current driver.
$_features array Driver features.
$_password string SVN password.
$_username string SVN username.

Méthodes publiques

Méthode Description
__construct ( array $params = [] ) Constructor.
annotate ( $fileob, $rev ) TODO
checkout ( string $fullname, string $rev ) : resource Function which returns a file pointing to the head of the requested revision of a file.
getCommand ( ) TODO
getRevisionRange ( Horde_Vcs_File_Base $file, string $r1, string $r2 ) : array Create a range of revisions between two revision numbers.
isValidRevision ( $rev ) TODO

Méthodes protégées

Méthode Description
_diff ( Horde_Vcs_File_Base $file, string $rev1, string $rev2, array $opts ) : string | boolean Obtain the differences between two revisions of a file.

Method Details

__construct() public méthode

Constructor.
public __construct ( array $params = [] )
$params array Required parameters (see above).

_diff() protected méthode

Obtain the differences between two revisions of a file.
protected _diff ( Horde_Vcs_File_Base $file, string $rev1, string $rev2, array $opts ) : string | boolean
$file Horde_Vcs_File_Base The desired file.
$rev1 string Original revision number to compare from.
$rev2 string New revision number to compare against.
$opts array The following optional options: - 'num': (integer) DEFAULT: 3 - 'type': (string) DEFAULT: 'unified' - 'ws': (boolean) DEFAULT: true
Résultat string | boolean False on failure, or a string containing the diff on success.

annotate() public méthode

TODO
public annotate ( $fileob, $rev )

checkout() public méthode

Function which returns a file pointing to the head of the requested revision of a file.
public checkout ( string $fullname, string $rev ) : resource
$fullname string Fully qualified pathname of the desired file to checkout
$rev string Revision number to check out
Résultat resource A stream pointer to the head of the checkout.

getCommand() public méthode

TODO
public getCommand ( )

getRevisionRange() public méthode

Create a range of revisions between two revision numbers.
public getRevisionRange ( Horde_Vcs_File_Base $file, string $r1, string $r2 ) : array
$file Horde_Vcs_File_Base The desired file.
$r1 string The initial revision.
$r2 string The ending revision.
Résultat array The revision range, or empty if there is no straight line path between the revisions.

isValidRevision() public méthode

TODO
public isValidRevision ( $rev )

Property Details

$_driver protected_oe property

The current driver.
protected string $_driver
Résultat string

$_features protected_oe property

Driver features.
protected array $_features
Résultat array

$_password protected_oe property

SVN password.
protected string $_password
Résultat string

$_username protected_oe property

SVN username.
protected string $_username
Résultat string