[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/ -> VC.php (sommaire)

Sorting options

Poids: 498 lignes (15 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 5 classes

VC:: (5 méthodes):
  sourceroot()
  getPath()
  getUsers()
  factory()
  singleton()

VC_Diff:: (1 méthode):
  humanReadable()

VC_File:: (1 méthode):
  setRepository()

VC_Patchset:: (1 méthode):
  setRepository()

VC_Revision:: (7 méthodes):
  valid()
  strip()
  sizeof()
  branchPoint()
  cmp()
  prev()
  toBranch()


Classe: VC  - X-Ref

Version Control generalized library.

$Horde: framework/VC/VC.php,v 1.12.8.12 2006/05/31 17:06:37 selsky Exp $

sourceroot()   X-Ref
Return the source root for this repository, with no trailing /

return: string  Source root for this repository.

getPath($binary)   X-Ref
Returns the location of the specified binary.

param: string $binary  An external program name.
return: boolean|string  The location of the external program or false if

getUsers($usersfile)   X-Ref
Parse the users file, if present in the source root, and return
a hash containing the requisite information, keyed on the
username, and with the 'desc','name', and 'mail' values inside.

return: boolean|array  False if the file is not present, otherwise

factory($driver, $params = array()   X-Ref
Attempts to return a concrete VC instance based on $driver.

param: mixed $driver  The type of concrete VC subclass to return.
param: array $params  A hash containing any additional configuration
return: VC  The newly created concrete VC instance, or PEAR_Error on

singleton($driver, $params = array()   X-Ref
Attempts to return a reference to a concrete VC instance based
on $driver. It will only create a new instance if no VC
instance with the same parameters currently exists.

This should be used if multiple types of file backends (and,
thus, multiple VC instances) are required.

This method must be invoked as: $var = &VC::singleton()

param: mixed $driver  The type of concrete VC subclass to return.
param: array $params  A hash containing any additional configuration
return: VC  The concrete VC reference, or PEAR_Error on failure.

Classe: VC_Diff  - X-Ref


humanReadable($raw)   X-Ref
Obtain a tree containing information about the changes between
two revisions.

param: array $raw  An array of lines of the raw unified diff,
return: array

Classe: VC_File  - X-Ref


setRepository($rep)   X-Ref
Pas de description

Classe: VC_Patchset  - X-Ref

VC patchset class.

setRepository($rep)   X-Ref
Pas de description

Classe: VC_Revision  - X-Ref

VC revisions class.

Copyright Anil Madhavapeddy, <anil@recoil.org>

valid($val)   X-Ref
Validation function to ensure that a revision number is of the
right form.

param: string $val  Value to check.
return: boolean  True if it is a revision number

strip($val, $amount)   X-Ref
Given a revision number, remove a given number of portions from
it. For example, if we remove 2 portions of 1.2.3.4, we are
left with 1.2.

param: string $val      Input revision
param: integer $amount  Number of portions to strip
return: string  Stripped revision number

sizeof($val)   X-Ref
The size of a revision number is the number of portions it has.
For example, 1,2.3.4 is of size 4.

param: string $val  Revision number to determine size of
return: integer  Size of revision number

branchPoint($val)   X-Ref
Given a valid revision number, this will return the revision
number from which it branched. If it cannot be determined, then
false is returned.

param: string $val  Revision number.
return: string|boolean  Branch point revision, or false.

cmp($rev1, $rev2)   X-Ref
Given two SVN revision numbers, this figures out which one is
greater than the other by stepping along the decimal points
until a difference is found, at which point a sign comparison
of the two is returned.

param: string $rev1  Period delimited revision number
param: string $rev2  Second period delimited revision number
return: integer  1 if the first is greater, -1 if the second if greater,

prev($rev)   X-Ref
Return the logical revision before this one. Normally, this
will be the revision minus one, but in the case of a new
branch, we strip off the last two decimal places to return the
original branch point.

param: string $rev  Revision number to decrement.
return: string|boolean  Revision number, or false if none could be

toBranch($rev)   X-Ref
Given a revision number of the form x.y.0.z, this remaps it
into the appropriate branch number, which is x.y.z

param: string $rev  Even-digit revision number of a branch
return: string  Odd-digit Branch number



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7