PHP 클래스 Components_Helper_Version, horde

파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

nextPearVersion() 공개 정적인 메소드

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.
리턴 string The incremented version number.

nextVersion() 공개 정적인 메소드

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.
리턴 string The incremented version number.

parsePearVersion() 공개 정적인 메소드

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.
리턴 object An object with the properties: - version: The base version string. - description: A stability description. - subversion: The sub version within the stability level.

pearToHordeWithBranch() 공개 정적인 메소드

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.
리턴 string The Horde style version.

pearToTicketDescription() 공개 정적인 메소드

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.
리턴 string The description for bugs.horde.org.

validateApiStability() 공개 정적인 메소드

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() 공개 정적인 메소드

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

validateReleaseStability() 공개 정적인 메소드

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