Horde_Release_Website
in package
Class for interfacing with the version DB of the Horde website.
Tags
Table of Contents
- $_db : PDO
- Database handle.
- __construct() : mixed
- Constructor.
- addNewVersion() : mixed
- Adds a new version to an application.
- _stateFromVersion() : string
- Returns the release stability of a version.
Properties
$_db
Database handle.
protected
PDO
$_db
Methods
__construct()
Constructor.
public
__construct(PDO $db) : mixed
Parameters
- $db : PDO
-
Database handle.
Return values
mixed —addNewVersion()
Adds a new version to an application.
public
addNewVersion([array<string|int, mixed> $info = array() ]) : mixed
Parameters
- $info : array<string|int, mixed> = array()
-
Hash with the version information. Possible keys:
- application: (string) The name of the application.
- version: (string) The version string.
- state: (string) The version state. One of "stable", "dev", "three". By default automatically detected from "version.
- date: (DateTime) The release date. Defaults to today.
- pear: (boolean) A PEAR release? Defaults to true.
- dir: (string) Optional website directory, if not "application".
Tags
Return values
mixed —_stateFromVersion()
Returns the release stability of a version.
protected
_stateFromVersion(string $version) : string
Parameters
- $version : string
-
A version string.
Tags
Return values
string —Release stability information.