\Horde_Release_Website

Class for interfacing with the version DB of the Horde website.

Summary

Methods
Properties
Constants
__construct()
addNewVersion()
No public properties found
No constants found
_stateFromVersion()
$_db
N/A
No private methods found
No private properties found
N/A

Properties

$_db

$_db : \PDO

Database handle.

Type

\PDO

Methods

__construct()

__construct(\PDO  $db) 

Constructor.

Parameters

\PDO $db

Database handle.

addNewVersion()

addNewVersion(array  $info = array()) 

Adds a new version to an application.

Parameters

array $info

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".

Throws

\Horde_Exception

_stateFromVersion()

_stateFromVersion(string  $version) : string

Returns the release stability of a version.

Parameters

string $version

A version string.

Throws

\Horde_Exception

on invalid version string.

Returns

string —

Release stability information.