PHP Class Components_Helper_Version, horde

Afficher le fichier Open project: horde/horde Class Usage Examples

Méthodes publiques

Méthode Description
nextPearVersion ( string $version ) : string Increments the last part of a version number by one.
nextVersion ( string $version ) : string Increments the last part of a version number by one.
parsePearVersion ( string $version ) : object Converts the PEAR package version number to descriptive information.
pearToHordeWithBranch ( string $version, string $branch ) : string Convert the PEAR package version number to Horde style and take the branch name into account.
pearToTicketDescription ( string $version ) : string Converts the PEAR package version number to a descriptive tag used on bugs.horde.org.
validateApiStability ( string $version, string $stability ) Validates the version and api stability tuple.
validatePear ( string $version ) : string Validates and normalizes a version to be a valid PEAR version.
validateReleaseStability ( string $version, string $stability ) Validates the version and release stability tuple.

Method Details

nextPearVersion() public static méthode

Only increments if the old version is a stable version. Increments the release state suffix instead otherwise.
public static nextPearVersion ( string $version ) : string
$version string A version number.
Résultat string The incremented version number.

nextVersion() public static méthode

Also attaches -git suffix and increments only if the old version is a stable version.
public static nextVersion ( string $version ) : string
$version string A version number.
Résultat string The incremented version number.

parsePearVersion() public static méthode

1.1.0RC2 would become: { version: '1.1.0', description: 'Release Candidate', subversion: '2' }
public static parsePearVersion ( string $version ) : object
$version string The PEAR package version.
Résultat object An object with the properties: - version: The base version string. - description: A stability description. - subversion: The sub version within the stability level.

pearToHordeWithBranch() public static méthode

Convert the PEAR package version number to Horde style and take the branch name into account.
public static pearToHordeWithBranch ( string $version, string $branch ) : string
$version string The PEAR package version.
$branch string The Horde branch name.
Résultat string The Horde style version.

pearToTicketDescription() public static méthode

Converts the PEAR package version number to a descriptive tag used on bugs.horde.org.
public static pearToTicketDescription ( string $version ) : string
$version string The PEAR package version.
Résultat string The description for bugs.horde.org.

validateApiStability() public static méthode

Validates the version and api stability tuple.
public static validateApiStability ( string $version, string $stability )
$version string A version string.
$stability string Api stability information.

validatePear() public static méthode

Validates and normalizes a version to be a valid PEAR version.
public static validatePear ( string $version ) : string
$version string A version string.
Résultat string The normalized version string.

validateReleaseStability() public static méthode

Validates the version and release stability tuple.
public static validateReleaseStability ( string $version, string $stability )
$version string A version string.
$stability string Release stability information.